Re: DLL API Calling Issue




"Wyne" <Wyne@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:21EEDC60-E732-4D23-842E-59A7DE382FC9@xxxxxxxxxxxxxxxx
The intermediate C DLL does use _StdCall convention. But I don't know
about
the original dll provided by the equipment vender, because no source code
available.

<snipped>

(Though you can 'name' any file anything you want.) It has to be using
StdCall or it wouldn't be a DLL, nor likely to be providing a LIB.

Again run "dumpbin /exports xxxxx.dll > junk.txt" and publish the first 20
lines. That will confirm it is a dll and is exporting calls. Also it will
tell us if they are extern C or not (perhaps managling is an issue here),
and confirm the correct spelling, etc.
Also publish an edited piece of the header file. Leave as much of the #if...
& curly brace blocks as you can, just leave one or two function declarations
so we can see what it looks like.
Also when you created your intermediate C++ DLL, how did you access
xxxxx.dll, did you ... never mind just publish your build string.

We can keep guessing, but it is more productive to have information.

-ralph


.



Relevant Pages

  • Re: how create a dll callback ?
    ... Declare a variable of procedural type in the DLL, ... orthodoxy prescribes the use of stdcall. ...
    (alt.comp.lang.borland-delphi)
  • Re: Problems linking a BCB-DLL (.lib) under MSVC
    ... I agree with you, Borland's implib is excellent. ... DLL file, exporting pure C functions, and you ... extern "C" with __stdcall, unless a DEF file is present. ... must have a DEF file, in order to prevent the name mangling. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: dll call that sometimes works...
    ... > information, you could try 'stdcall', should give the same result but the ... I know that the c dll is using cdecl, but I might try changing to ... and hardcode the filename to open, the call (in it's proper place, ... __declspecvoid estimate (int NumberofTimeCells, ...
    (comp.lang.pascal.delphi.misc)
  • Re: How to export afunction in class?
    ... CONCURRENTLY with the fetch of the top of stack to the IP, so it all occurs in a SINGLE ... But if it wants stdcall, the cdecl will definitely screw the stack over. ... the calling convention required by Visual Basic clients to call ... C-interface DLL code. ...
    (microsoft.public.vc.mfc)
  • Re: cannot find dll entry point on some exported functions.
    ... In the .c and .h files, I use stdcall of the type ... this is not the best way if you are authoring the c dll yourself. ... Which was Microsoft's earlier version of an IDL file. ... different function exports and noted no differences on the VB side. ...
    (microsoft.public.vb.winapi)

Loading