|
Suggested Technique for Creating A Console Application within Microsoft Visual C++ 6.0
Microsoft Visual C++ can be used to create, compile, link, and debug Pro/INTRALINK Toolkit applications. The procedure to create a Win32 Console Application is as follows:
-
Create a Workspace
File, New, Workspaces, Blank Workspace.
Enter a name for the workspace under Workspace name, select a location for the workspace in
Location, and select Ok.
Note:This is an optional step, a workspace may be automatically created when creating the
Win32 Console Application project.
-
Create a Win32 Console Application Project
Select File, New, Projects, Win32 Console Application.
Enter a name for the project under Project name
, select a location for the project in Location, select Create new workspace to create a new workspace or Add to current workspace to add the project to the current workspace, and Ok.
In the Win32 Console Application wizard, select An empty project and Finish. In the New Project Information window, select Ok.
-
Customize Visual C++ to point to the Pro/INTRALINK Include and Library file location
Open the Options window by selecting Tools, Options, and Directories.
Select Include files from the Show directories for drop down box and add the following directory
locations in the Directories window:
- <Pro/INTRALINK Toolkit Library Loadpoint>\intralink\iltkapps\com_incs\inc
- <Pro/INTRALINK Toolkit Library Loadpoint>\intralink\ilapi\pdmcapi\inc
Select Library files from the Show directories for drop down box and add the following directory locations in the Directories window:
- <Pro/INTRALINK Toolkit Library Loadpoint>\intralink\iltkapps\iltk_demo\i486_nt\lib
-
Customize the project settings
Select Project and Settings to open the Project Settings window. Select All Configurations
in the Settings For drop down box, select the Link tab, and select the General category.
Make sure that the following libraries are included in Object/library modules:
proilcommon.lib proilbase.lib proilcspace.lib proilwspace.lib orasql8.lib orasqx8.lib imm32.lib advapi32.lib
wsock32.lib netapi32.lib kernel32.lib user32.lib oldnames.lib msvcrt.lib msvcirt.lib
Note:
Make sure that the libraries are entered with white spaces as delimiters.
Select Output under category and enter 8000000 and 8000 for the Stack
allocations for Reserve and Commit respectively.
-
At this point, your Visual C++ Console Application is setup for developing Pro/INTRALINK Toolkit
Applications. Refer to MicrosoftÆs Visual C++ UserÆs Guide for further information on the
Visual C++ Environment and to the Pro/INTRALINK Toolkit UserÆs Guide for further information
on Pro/INTRALINK Toolkit.
Note:
After successfully building the console application into an executable format, run your application
from within the Pro/INTRALINK Toolkit Environment batch file contained in the
<Pro/INTRALINK Toolkit Environment loadpoint>\bin directory. Refer to the
Pro/INTRALINK Toolkit User's Guide for further information.
|