Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

problem using functions from foreign DLL

borgiaborgia Member Posts: 3
I've took the WRAPI.DLL function library built with VC++ and have converted 3 header files into single unit. This unit contains
definitions for functions and data types.

I've started to test if my app will correctly use this function, however
it has failed with message :

The procedure entry point WRAPIEnumerateDevices could not be located in the dynamic link library WRAPI.dll.

Definition of function follows

function WRAPIEnumerateDevices (ppDeviceList : ppWRAPI_NDIS_DEVICE; plItems : pLongInt) : HRESULT; cdecl; external 'WRAPI.dll';

In main unit i call it with

hRes := WRAPIEnumerateDevices (@pDeviceList, @lItems);

If i add [ name 'WRAPIEnumerateDevices'; ] at end of function definition i get the same result.

If i add [ index 2 ] (i've checked, it's a correct index) app does not
load at all.

What am i doing wrong ?

Comments

  • pritaeaspritaeas Member Posts: 274
    : What am i doing wrong ?

    My guess is that you need to use WRAPI32.DLL which is the 32 bit version of WRAPI.DLL, which is 16 bit.

    hth
  • borgiaborgia Member Posts: 3
    : : What am i doing wrong ?
    :
    : My guess is that you need to use WRAPI32.DLL which is the 32 bit version of WRAPI.DLL, which is 16 bit.
    :
    : hth
    :

    There is no 16-bit version. This is all i have. There is a source for
    v2.0, but compilation requires DDK and VC++ which i don't have.

    If anyone has this v2.0 DLL compiled, please write here.
  • DevelopmentDevelopment Member Posts: 222
    [b][red]This message was edited by Development at 2005-8-9 12:51:3[/red][/b][hr]
    : : : What am i doing wrong ?
    : :
    : : My guess is that you need to use which is the 32 bit version of WRAPI.DLL, which is 16 bit.
    : :
    : : hth
    : :
    :
    : There is no 16-bit version. This is all i have. There is a source for
    : v2.0, but compilation requires DDK and VC++ which i don't have.
    :
    : If anyone has this v2.0 DLL compiled, please write here.
    :

    for WRAPI.DLL try
    http://sysnet.ucsd.edu/pawn/wrapi/download.html

    hope that helps

    Slewis



  • borgiaborgia Member Posts: 3
    : [b][red]This message was edited by Development at 2005-8-9 12:51:3[/red][/b][hr]
    : for WRAPI.DLL try
    : http://sysnet.ucsd.edu/pawn/wrapi/download.html
    :
    : hope that helps
    :
    : Slewis

    Well... I did took the whole wrapi project from there, i found with
    google. I did however subscribed there, so far nothing, not even a peep.
    Oh well ...
Sign In or Register to comment.