FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ajuda com DLL Function
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Ajuda com DLL Function
Posted: Sun Oct 25, 2009 08:51 AM

//GrCapRawImageToHandle(unsigned char* rawImage, unsigned int width, unsigned int height, HDC hdc, HBITMAP &handle);

Dll Function CapRawImageToHandle (RawImage AS CHAR ,;
width AS LONG ,;
height AS LONG ,;
hdc AS HDC ,;
@handler As LPSTR ) AS LONG PASCAL;
FROM "_GrCapRawImageToHandle@20" Lib cdll

estoy hacendo errrado ?

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Ajuda com DLL Function
Posted: Sun Oct 25, 2009 11:54 AM
Try this:

Code (fw): Select all Collapse
Dll Function CAPRAWIMAGETOHANDLE (RawImage AS LPSTR  ,;
                                  width AS LONG  ,;
                                  height AS LONG  ,;
                                  hdc AS LONG  ,;
                                  @handler AS PTR ) AS LONG PASCAL;
                                  FROM "_GrCapRawImageToHandle@20" Lib cdll


What is assigned to cdll?

EMG
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: Ajuda com DLL Function
Posted: Sun Oct 25, 2009 08:18 PM

funcction main

cdll := loadlibrary("finger.dll")

....

FreeLibrary(cdll)

return

i will try and return result thanks

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Ajuda com DLL Function
Posted: Sun Oct 25, 2009 08:20 PM

Ok, it should work with my sample.

EMG

Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: Ajuda com DLL Function
Posted: Sun Oct 25, 2009 10:37 PM

Erico,

Thanks for you samples, this work fine !!!

Thanks so much. :lol:

Continue the discussion