 |
GETTING STARTED WITH MICROSOFT C/C++ ≥7.0
FOR WINDOWS
PROGRAMMING > GETTING STARTED >
Compatibility
The instruNet interface for Microsoft C/C++ is compatible with C Version ≥7.0 (including Visual Studio .Net 7), which requires a ≥ 80386 PC / PC Compatible Computer running Windows ≥ 95 and ≥8 MB Ram.
Getting Started
To get started with Microsoft C/C++, please do the following steps:
- Make sure you have done Tutorial in its entirety.
- Install Microsoft C/C++ onto your hard disk, load an example program, compile, and then run to verify that your C/C++ is set up properly.
- Duplicate the "instruNet \ Programming Interfaces \ Visual C" directory -- we will run/modify the files in the duplicate copy.. It contains the following source files: Inet_int.c, Inet_int.h, Inet_Ex1.c, Inet_Ex2.c, and iNet_mcs.h.
- Open "Inet32_ExampleN.sln" (or ".dsp" with C version 5) with the Microsoft Developer Studio, select Set Default Configuration under Build, choose Win32 Debug, press OK, select Debug > Step Into under Build and watch it compile. You should not get any compiler errors or warnings. If it builds properly, it will begin to run under the debugger. Press the Step Over under Debug (i.e. F10) button to step through the example program.
- Step through the example program to verify that the compiler, example files, driver, and computer are all working well together. Some lines of code open the instruNet World window, and pass control to instruNet World (until the user closes the instruNet World window to return back to the example program). Don't let this freak you out.
- Read the example program source code and comments to get a feel for instruNet programming.
- Modify the Example source code to meet your own needs.
- If you want to operate instruNet from another C program, copy files Inet_int.c, Inet_int.h, and iNet_mcs.h to your target project source directory, add Inet_int.c to your project, call any of the iNet_mcs.h macros from your own source code, call any of the Inet_int.c subroutines from your own source code, copy any of the useful subroutines in Inet_ExN.c into your own source code, and away you go.
- Click Programming to learn more.
|
 |