On 3/30/06, Imran Shafiq <[EMAIL PROTECTED]> wrote: > Michael, > > When you install the BDK, BAPI32.dll (wrapper) along > with the delphi library (wrapped by the dll) is placed > into the %windir%\system folder e.g. > C:\Windows\System\ > > I tried using the LoadLibrary(...) Windows API in > VisualC++.Net (Visual Studio.Net 2005) to load the > BAPI32.dll a week ago.. but i had to give up on it. > My guess is the dll was generated probably in > vicualc++ 98 (6.0) or maybe visualc++ 5.0 .. things > have changed since then.. maybe something is fishy in > the DLLMain(..) entry point.. not consistent with the > dlls generated nowadays by the modern compilers.. as > vc++ 2005. If someone has the source code to > BAPI32.dll i am sure it can be recompiled with some > changes in the source code to mak eit work. Or if > anyone has already made it work plz inform.
It seems that Borland uses a different calling pattern for its functions than VisualC++ does. It seems like one of those format wars. Borland says that they are fully ANSI compliant, so I suspect that Microsoft has "enhanced" things a bit leading to the incompatibility. I have had trouble with this before. But you are right, a recompile would be good. Kevin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members