Re: exporting classes in a DLL
- From: Alfonso Morra <sweet-science@xxxxxxxxxxxx>
- Date: Tue, 19 Jul 2005 10:05:07 +0000 (UTC)
Rodrigo Corral [MVP] wrote:
// in your header...
class __declspec(dllexport) CDllTest { public: CDllTest(){} ~CDllTest(){}
public: void SayHello(); };
// in your cpp...
void CDllTest::SayHello() { printf(_T("Hello World!!")); }
Another option: if you create a new dll project using VS it will create an example dummy exported class.
Thanks - but that's on the exporting side of things. I wanted to know how to use the exported classes in a seperate project that imports the classes and uses them. The code you gave above, only shows how to export the classes (which I already know how to do).
mtia
.
- Follow-Ups:
- Re: exporting classes in a DLL
- From: Nishant Sivakumar
- Re: exporting classes in a DLL
- References:
- exporting classes in a DLL
- From: Alfonso Morra
- Re: exporting classes in a DLL
- From: Rodrigo Corral [MVP]
- exporting classes in a DLL
- Prev by Date: Re: Drawing an Image over Another
- Next by Date: C++/CLI and fixed size buffers
- Previous by thread: Re: exporting classes in a DLL
- Next by thread: Re: exporting classes in a DLL
- Index(es):