Einzelnen Beitrag anzeigen

static_cast

Registriert seit: 19. Okt 2003
Ort: Peine
300 Beiträge
 
#1

VC-Dll Projekt im BCB kompilieren

  Alt 5. Mai 2007, 12:55
Hallo,

ich versuche gerade mein VisualStudio Projket im Borland Builder 2006 zu kompilieren, das geht auch soweit gut bis ich dann
Zitat:
"Do not prefix underbars to exported symbol names (-vu)"
anschalte, ab dann mag der Linker nicht mehr tun. Es kommt bei jedem Export
Zitat:
"[Linker Error] Error: Public symbol for EXPDEF '<exportname>' not found in module <file>"
hat jemand eine Idee?

Nachtesten lässt es sich auch ganz einfach in einem neuen Projekt, einfach New->Other->DLL, als C++ ohne VCL, aber Multithreaded und VC++ Style.

Code:
//---------------------------------------------------------------------------

#include <windows.h>

//---------------------------------------------------------------------------

#define DllExport extern "C" __declspec(dllexport)

//---------------------------------------------------------------------------

DllExport int BCBTest()
{
    return 1234;
}

//---------------------------------------------------------------------------

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fwdreason, LPVOID lpvReserved)
{
    return 1;
}

//---------------------------------------------------------------------------
Gruß,
Daniel
Daniel M.
"The WM_NULL message performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore."
  Mit Zitat antworten Zitat