Setting up VC++ 6 for generating DOS executables from Code gen

Last Modified: 3rd Jan 2013
Category: Mathematics and Simulation > VisSim
Article Ref.: 1C7A
»Return to previous search
»Print friendly version of this article.
1 person has found this article useful.

VisSim 1C7A Three stages are required to create an EXE from C-code gen Stage 1 - Declaring project Go to FILE Select NEW Select Project tab Enter project name in box on top RHC Pick on CONSOLE application Select target directory (preferably not a directory with a name longer than 8 characters or with spaces, otherwise you cannot acces it via DOS) Click on OK Stage 2 - Inputing neccassary files Go to PROJECT Select ADD TO PROJECT, FILES Using the browser Select source code (generated from Code gen) Select CG32.LIB or CGDLL32.LIB (for dll generation) Select VISSIM32.LIB These should be in the CG or VSDK LIB directories contained within VISSIM40 directory Stage 3 - Set up project configuration settings Go to PROJECT Select SETTINGS ALT+F7 Click on C/C++ Select PREPROCESSOR from drop down window In the Additonal Include directories box, specify path to the INCLUDE libraries E.g. C:\VISSIM40\VSDK\INCLUDE,C:\VISSIM40\CG\INCLUDE Go back to the main settings box and click on the LINK tab Under categories specify INPUT Under ignore libraries enter LIBC.LIB Click on the OK button You are now in a position to add code to source code, when this is complete press BUILD Select File Go to project Select add to project Select files Use browser to select VisSim en

If you can't find a solution on the Knowledge Base then please contact us on the Technical Support Request Form or by email or by telephone on +44 (0) 203 695 7810

For the time being we are unable to offer the following product ranges although we are currently working hard to increase the number of products we can offer in the future. Please contact us to talk about alternative products that we may be able to offer you.