Hello,
after days of searching, I couldn't find my problem anywhere else, so i hope you can help me with it.
I am trying to import a DLL like this:
Read.h:
dll.h:Code:#define _WIN32_DCOM #define USING_WRAPPER_CLASS #include "dll.h" class ReadData {... }
Read.cpp:Code:#if 1 #ifdef USING_WRAPPER_CLASS #import "Read.dll" no_namespace named_guids #else #import "Read.dll" no_namespace, raw_interfaces_only,\ raw_native_types, named_guids #endif #else #include "Read.tlh" #endif void CheckHRESULT(HRESULT hr, char* str = NULL) { if( SUCCEEDED(hr) ){ if( str )printf("%s\n\r",str); else printf("Success!\n\r"); } else printf("Failed...(0x%08X)\n\r",hr); }
So far it works fine, but when I am going to include the Read.h in some other *.cpp file, I get the Linker-Error mentioned above.Code:#include "ReadData.h" ReadData::ReadData(void) {... }
I hope I explained the problem enough, I really dont know how to solve it.



LinkBack URL
About LinkBacks


