Re: exporting classes in a DLL
- From: "Rodrigo Corral [MVP]" <corral_glez@xxxxxxxxxxx>
- Date: Tue, 19 Jul 2005 11:44:19 +0200
// 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.
--
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
.
- Follow-Ups:
- Re: exporting classes in a DLL
- From: Alfonso Morra
- Re: exporting classes in a DLL
- References:
- exporting classes in a DLL
- From: Alfonso Morra
- exporting classes in a DLL
- Prev by Date: Re: How does STL map deal with scoping and memory persistance
- Next by Date: Re: Drawing an Image over Another
- Previous by thread: exporting classes in a DLL
- Next by thread: Re: exporting classes in a DLL
- Index(es):
Relevant Pages
|
Loading