exporting classes in a DLL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am familiar with creating lean and mean WIN32 DLLS and exporting C functions via a DEF file (or cconv decorators), but I am wndering how I can export my C++ objects from my DLLs?

Ideally, I would be able to use the classes (and their methods) by calling the objects and invoking their methods - is this possible, given the fact that the C++ compiler decorates names ?

looking forward to an informed answer -tkx

.



Relevant Pages

  • Re: DLL: .def file versus __declspec(dllexport)
    ... of just "Func" that I get when exporting with .def file. ... Historically .DEF files precede __declspecspecifier. ... name decoration. ...
    (microsoft.public.vc.language)
  • Re: Queries about DLL Exports
    ... It's impractical to export a class via DEF file. ... exporting a class really means exporting every ... create a DLL project export a class with a few methods ... via __declspec, then use Dependency Walker ...
    (microsoft.public.vc.language)
  • Visual Studio .NET 2003 creating DLL: problems with exports
    ... problem is that Visual Studio 6 used to create a DEF file or templates ... construct) for exporting functions, ... decided to try exporting by manually creating a .DEF file in the ... this DLL is intended for use by another, commercial, ...
    (microsoft.public.vstudio.development)
  • Visual Studio .NET 2003 creating DLL: problems with exports
    ... problem is that Visual Studio 6 used to create a DEF file or templates ... construct) for exporting functions, ... decided to try exporting by manually creating a .DEF file in the ... this DLL is intended for use by another, commercial, ...
    (microsoft.public.vstudio.general)