Mr Harris:
I am not sure where to post this but the forum software advised me not to post a reply, but to start a new topic.
I have visual c++ 6.0 with sp6 and I have not had problems compiling projects.
I used the ide method, starting a new empty dll project; and a command line attempt using the exact string given in the post.
Same error message is received using either method. The tutorial mentioned a zip file for the code but I did see one
so I copied each of the seven files using cut and paste.
I appreciate your work trying to use c and c++ in parallel with powerbasic and I hope you have more to post along
these lines when you get the urge.
Here is the error msg I got:
Deleting intermediate files and output files for project 'ComTut1 - Win32 Debug'.
--------------------Configuration: ComTut1 - Win32 Debug--------------------
Compiling...
server.cpp
ca.cpp
Registry.cpp
Linking...
CA.def : error LNK2001: unresolved external symbol DllReg
Debug/CA.lib : fatal error LNK1120: 1 unresolved externals
LINK : fatal error LNK1141: failure during build of exports file
Error executing link.exe.
CA.dll - 3 error(s), 0 warning(s)
thanks,
Paul Breen
Hello Paul!
I'm really sorry it took me this long to notice your post of July 27! I need to check back more for sure.
Anyway, in the VC++ 6 Ide did you add CA.def under the 'Source Files' node in 'File View'? Certainly the dreaded unresolved externals linker error stems from some failure to include the exports during the linking process. Perhaps I can attach my VC++ workspace files and you could try them?
Fred
Oh geeez!
I just got examining the posted code and somehow or other the CA.def file got truncated!!!! Probably my fault but who knows! Anyway, the whole little file should look like this...
;//CA.def
LIBRARY "CA"
DESCRIPTION "CA Windows Dynamic Link Library"
EXPORTS
DllGetClassObject PRIVATE
DllCanUnloadNow PRIVATE
DllRegisterServer PRIVATE
DllUnregisterServer PRIVATE
I'll see if I can fix it in the post too. Now it should compile!!!
Fred
PS - ComTutorial1.zip is attached to the 3rd segment of the tutorial. I expect the .def file is OK in there too.