Hey there, I'm a newbie to microsoft visual c++ and I am having some problems compiling this example code provided by a company called Analytical Graphics for their STK software. Here's the quote from their help files that I can't fully understand:
"All AgConnect applications must be compiled with the AGCONNECT system/ preprocessor definition. The _AFXDLL preprocessor definition is also required. If the AGCONNECT flag isn't defined, the compiler doesn't recognize several internal variable types defined in AgUtMsgCommon.h. In addition to source and header files, AgConnect is shipped with a library file, AgConnect.lib that must be linked when generating any AgConnect executables. "
I have all the header files included in the folder with the source code. I have also fooled around with entering the preprocessor things, _AFXDLL, in the options under project settings, and also linked the .lib file. But I also have a .dll and .exp file that I don't know what to do with.
I'm having the compiling errors in exactly the file it says in the quote, AgUtMsgcommon.h. The example code I'm using doesn't have any errors in itself. Can anyone help me out in getting this to work. Thanks in advance.
"All AgConnect applications must be compiled with the AGCONNECT system/ preprocessor definition. The _AFXDLL preprocessor definition is also required. If the AGCONNECT flag isn't defined, the compiler doesn't recognize several internal variable types defined in AgUtMsgCommon.h. In addition to source and header files, AgConnect is shipped with a library file, AgConnect.lib that must be linked when generating any AgConnect executables. "
I have all the header files included in the folder with the source code. I have also fooled around with entering the preprocessor things, _AFXDLL, in the options under project settings, and also linked the .lib file. But I also have a .dll and .exp file that I don't know what to do with.
I'm having the compiling errors in exactly the file it says in the quote, AgUtMsgcommon.h. The example code I'm using doesn't have any errors in itself. Can anyone help me out in getting this to work. Thanks in advance.