Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Coding Domino server tasks in C (continued)

Setting toolkit directories for VC++6
There are some extra steps you need to take so that VC++6 projects can find the API Toolkit components. The good news is that this is a one-time-only setup and won't be necessary for any subsequent projects you create. Go to the menu again and select Tools->Options and then the "Directories" tab. Here's what you need to add here:

  • "Show directories for" Include files. Add C:\notesapi\INCLUDE by double-clicking the blank line below the last entry;

  • "Show directories for" Library files. Add C:\notesapi\LIB\MSWIN32 in the same way.

And finally, project settings
We're in the home stretch now. Select Project->Settings from the menu. There are some very specific changes that must be made here to make the sample program compile correctly. By default, VC++6 gives you two basic groups of settings, one for a "debuggable" program and a release one for programs you'll use when debugging is complete. Here's what to do.

First we need to make changes to both groups of settings, so change the "Settings for" box to All Configurations.

For the C/C++ tab with category set to "General," put a comma and then NT in the pre-processor definitions to define your OS. For the C/C++ tab with category set to "Code Generation," change "Struct Member Alignment" to 1 byte.

The following settings are made to the Link tab, with category set to General in Win32 Release Settings only:

  • At the start of "Object/Library modules," put in notes.lib notes0.obj notesai0.obj eparated by spaces. Don't use commas here. Separate with spaces;

  • In the "Output filename" box, change the name from the default from Release/addin.exe to Release/naddin.exe because under Windows all Domino server tasks start with "n".

The following settings are made to the Link tab, with category set to General in Win32 Debug Settings only:

  • At the start of "Object/Library modules," put in notes.lib notes0.obj. Notice that notesai.obj is not used in the debug version.

  • The output filename doesn't need to change.

Hold your breath, its compilation time
If you followed all those instructions, you should be ready to compile the sample program. Under the Build->Set Active Configuration menu, choose the Win32 Release configuration. At present, the Win32 Debug configuration won't link properly. More on that later. Now, choose Build->Rebuild All from the menu and VC++6 will compile and link your program with no errors. If you copy the naddin.exe file to the program directory of your Domino server, it should work just as Lotus describes in the readme.txt file in the addin sample program folder. For this particular sample program, you'll need to copy the addintst.nsf database from the toolkit's Notedata folder to the server's data directory.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Lotus Technologies > Domino (77 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   Sloppy analysis at the core of another Domino vs. SharePoint report
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login