calling a c++ ATL dll from a c++ test program
-
I wrote a c++ ATL dll, and now want to call it from another c++ app. What exactly do I need to do be able to call it? In the h file for the ATL dll STDMETHOD(MyFunction)(BSTR OutputDirectory, BSTR DlgTitle, BSTR BatchFileName, BSTR ResultsFileName, int ObjectStartNumber); plus other functions I tried to include this h file but got these errors: error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE' error C2239: unexpected token ':' following declaration of 'CSFilter' error C2059: syntax error : 'public' error C2448: '' : function-style initializer appears to be a function definition fatal error C1004: unexpected end of file found Error executing cl.exe. thanks, sb
-
I wrote a c++ ATL dll, and now want to call it from another c++ app. What exactly do I need to do be able to call it? In the h file for the ATL dll STDMETHOD(MyFunction)(BSTR OutputDirectory, BSTR DlgTitle, BSTR BatchFileName, BSTR ResultsFileName, int ObjectStartNumber); plus other functions I tried to include this h file but got these errors: error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE' error C2239: unexpected token ':' following declaration of 'CSFilter' error C2059: syntax error : 'public' error C2448: '' : function-style initializer appears to be a function definition fatal error C1004: unexpected end of file found Error executing cl.exe. thanks, sb
-
ns wrote:
I tried to include this h file but got these errors:
ns wrote:
error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE'
CSFilter Sorry, that is ATL_NO_VTABLE is undefined. You have not included the definition for it in your project.
-
I just took the .h file straight from my ATL dll project and did a #include in the test harness project. What is it I need to do? thanks, sb