Board index » delphi » Calling 32-bit DLLs from Delphi 1.0?
Stefan.Hoffmeis...@Uni-Passau.De (Stefan Hoffmeister)
![]() Delphi Developer |
Tue, 17 Aug 1999 03:00:00 GMT
Calling 32-bit DLLs from Delphi 1.0?Hi, Steve Teixeira has posted a nice unit to do this a while back: Quote>Newsgroups: comp.lang.pascal.delphi.misc In Delphi 1.0 I am trying to: uses WoW16; { unit posted by Steve Teixeira } procedure TForm1.Button1Click(Sender: TObject); Strangely, sometimes (1 out of 10?) it seems to work, somehow. if A32Handle = 0 then ShowMessage('Yes!'); FreeLibrary32W(A32Handle); and the C code of the (BC++ 5.01) Win32 DLL is just: // Pasted from a BC++ example: C DLL -> Delphi 2. #if defined( __cplusplus) CFUNC bool __export __stdcall Message(const char * msg) Quote} works well with Delphi 2, BTW), but the same problems remain. I do want to have a 32 bit DLL and a 16 bit executable. Any ideas? |