AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

VC-Dll Projekt im BCB kompilieren

Ein Thema von static_cast · begonnen am 5. Mai 2007 · letzter Beitrag vom 6. Mai 2007
 
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
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:52 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz