Since I moved to CodeBlocks from Visual C++ I tryed to use custom .DEF files when i create DLLs for my apps. I want to export my functions using custom .DEF because with plain text names exported is easyer to write let's say C# wrappers for my DLL than when the DLL use mangled names.
for example if i have this C/C++ file
--- other code ---
class TTest
{
private:
m_Val;
public:
TTest(int x);
virtual ~TTest();
void ShowVal();
};
#ifdef __cplusplus
extern "C"
{
#endif
TTest * CreateTest(int x);
void DeleteTest(TTest * TestToDelete);
void ShowTestValue();
#ifdef __cplusplus
}
#endif
--- other code ---
and I want to use my .DEF
LIBRARY "TheDLL"
EXPORTS
CreateTest
DeleteTest
ShowTestValue
Hope you understand what I'm looking for
~Dr.Optix
PS: I know/feel that C::B don't want to be a Visual Studio clone and it more wants to be a competitor but in Visual Studio when you add a .DEF file tothe DLL project it automatically use it