Einzelnen Beitrag anzeigen
Alt 11.07.2001, 13:06   #11
SNo0py
Inventar
 
Registriert seit: 08.02.2000
Beiträge: 1.696


Standard

Ich habs so gemacht:

c_dll.cpp:
long APIENTRY xyz (long a) { return (a); }

c_dll.def:
LIBARY c_dll
EXPORTS
xyz @1

VB:
private declare function xyz lib "c_dll" (byval a as long)

Des funkt auch, is aber anders wie das oben -> gibts dadurch Probleme oder Unterschiede??

=======================================
Andere Frage: ist es auch möglich C-Klassen zu exportieren und in VB zu verwenden?
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
SNo0py ist offline   Mit Zitat antworten