Convert .exe to .dll
-
How to convert an .exe to .dll? I tried to add project>files to add .cpp and .h files. But when I compile it, I got an error "fatal error C1189: #error : include 'stdafx.h' before including this file for PCH" Sorry if my question is too newbie, I cant find any solution in my VC++ reference book. Thanks.
-
How to convert an .exe to .dll? I tried to add project>files to add .cpp and .h files. But when I compile it, I got an error "fatal error C1189: #error : include 'stdafx.h' before including this file for PCH" Sorry if my question is too newbie, I cant find any solution in my VC++ reference book. Thanks.
First you should make a project, which would make dlls, this option you would have to select, while making the project itself. And when you write the .cpp files, the first #include should be #include stdafx.h, to avoid PCH (pre compiled headers) problems, then on you can include other header files. And you would have to add some keywords with the functions you are exposing in the dll. For this, refer to some dll examples. - Shailesh
-
How to convert an .exe to .dll? I tried to add project>files to add .cpp and .h files. But when I compile it, I got an error "fatal error C1189: #error : include 'stdafx.h' before including this file for PCH" Sorry if my question is too newbie, I cant find any solution in my VC++ reference book. Thanks.
See question 2.5[^] in the FAQ. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ----