 |
| |  |
Home In This Issue Email a Friend EasyPrint
 | |
|
Coding Domino server tasks in C (continued)
To install all this software, just follow the instructions. There's no special installation required. On the C API Toolkit, you'll find there's no installer. You just unzip the files to a directory on your machine. If you get a hold of a CD-ROM copy of the toolkit, there's one thing to be careful of. If you use Windows Explorer to copy the files instead of a command line XCOPY, all the files will have the read-only attribute set, and this will cause you lots of problems. Therefore, make sure you read the "readme.pc" file before you start.
Because we're going to use the VC++6 IDE, you don't need to setup any DOS environment variables, whatever the toolkit instructions say. The toolkit sample programs all assume you'll be compiling from the command line, so that's why you need to follow some extra steps when you have completed installing the software listed above to compile and link the sample program.
Creating a VC++6 project As this article is about server tasks, let's start with the C API Toolkit sample program called "addin." Start VC++6 and choose New from the File menu. In the dialog box that pops up, you need the Projects tab. Select the "Win32 Console Application" as a project type. For the purposes of this first test, we're going to set up the project so we use the Lotus sample program in place. So in the "Location" box, navigate to "C:\notesapi\SAMPLES\SERVER". The exact path obviously depends on your own setup, but for this article I'll assume you used c:\notesapi to put the C API Toolkit in. For the Project Name box, type "addin" so that we use the same folder as the sample program. The other settings in this dialog box can be left at the defaults, so "supported platforms" has "Win32" checked and "Create Workspace" is enabled. You can now select the "OK" button.
The next dialog for the application type can be left set to "An empty project," and you can now hit the finish button. You then see another dialog that just confirms that VC++6 will create the project you've just defined. Once you've clicked OK, the project is set up for you. To add the sample code into your project, use the Project->Add to project->Files menu command. You should see addin.c listed as the file type defaults to C and C++ source files. Select addin.c and click OK. If you don't see addin.c, you probably set up the project in the wrong directory. Have a look at the files and directories in Windows Explorer and try to identify what you did wrong. Usually it's specifying c:\notesapi\samples\server\addin as the location when it should be c:\notesapi\samples\server, because VC++6 will put its own files in a subdirectory with the same name as the project ("addin" in our case).
You should now be able to use the left hand frame in VC++6 to select either the "class view" or "file view" and double click (single click doesn't work here for some reason) the class or file listed to see the source code. I tend to work from the "file view," but it's the same code either way.
[ Prev | Next ]
|
|
-- Advertisement --
AUTOMATE LOTUS NOTES USER ID MANAGEMENT
ID Manager 4.5 from HELP Software provides a new level of automaton for managing Lotus Notes IDs. ID Manager lets Lotus Notes administrators get out of the business of creating and managing user IDs. Use our ROI calculator to see how quickly ID Manager will pay for itself.
Learn more about HELP Software products |
-- Advertisement --
How good are your Notes Reports?
Integra for Notes provides high value reporting and data analysis from Lotus Notes databases using Microsoft Word, Excel and PDF files.
- Enhance traditional static reports with Excel data analysis, pivot tables, macros
- Report from any Lotus Notes databases without changes to database design
- Runs reports through a Lotus Notes client and a web browser
- Enables Report scheduling or distribution by e-mail, printing or storing in a Notes database
- Allows use of LotusScript for advanced data manipulation
Enables self service reporting capabilities to end-users.
Click For More Info. |
Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
|