Re: Creating pascal header for a DLL



Nils Haeck wrote:

When you have C++ headers, you're f***ed :) C++ and Delphi are not
compatible. It would work if you have C headers (a so-called flat C
dll).

Well, perhaps maybe (a big perhaps) there are ways around this, but
the times I tried I gave up.

"Using C++ objects in Delphi"
http://rvelthuis.de/articles/articles-cppobjs.html

"Pitfalls of converting"
http://rvelthuis.de/articles/articles-convert.html


--
Rudy Velthuis [TeamB]

"The wireless music box has no imaginable commercial value. Who
would pay for a message sent to nobody in particular?"
-- David Sarnoff's associates in response to his urging for
investment in the radio in the 1920s.
.



Relevant Pages

  • Re: Creating pascal header for a DLL
    ... It would work if you have C headers (a so-called flat C dll). ... What you could also try is write an ActiveX wrapper in C++ (using Visual ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: [Q] How to speed up build process
    ... files that also get copied to the flat release directory. ... >> won't see the DLL in you Flat Release DIr (FRD) because it wasn't copied ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [LogoForum] arguments evaluation sequence
    ... > which automatically searches the function "registerPrimitives " in a user ... > that dll. ... that uses your DLL (i.e. no need to search for registered primitives). ... No other libraries or headers need to be installed, ...
    (comp.lang.logo)
  • Re: Subject: Forcing a .NET obj exposed as COM to use StdCall instead of CdCall
    ... I've seen these extension scripts in products like Mercator and PoepleSoft. ... They basically load a DLL and call a method in it by using GetProcAddress ... headers> // Windows Header Files: ...
    (microsoft.public.dotnet.general)
  • Re: how to export global variable in C dll?
    ... DLL will not link. ... Avoid including CRT/PSDK headers in your DLL headers. ... inside extern "C" block, they're still definitions. ... Now these globals are exported without name mangling ...
    (microsoft.public.vc.language)