Ajuda com DLL Function

Ajuda com DLL Function

Postby lailton.webmaster » Sun Oct 25, 2009 8: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 ?
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Ajuda com DLL Function

Postby Enrico Maria Giordano » Sun Oct 25, 2009 11:54 am

Try this:

Code: Select all  Expand view
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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Ajuda com DLL Function

Postby lailton.webmaster » Sun Oct 25, 2009 8:18 pm

funcction main

cdll := loadlibrary("finger.dll")

....

FreeLibrary(cdll)

return

i will try and return result thanks
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Ajuda com DLL Function

Postby Enrico Maria Giordano » Sun Oct 25, 2009 8:20 pm

Ok, it should work with my sample.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Ajuda com DLL Function

Postby lailton.webmaster » Sun Oct 25, 2009 10:37 pm

Erico,

Thanks for you samples, this work fine !!!

Thanks so much. :lol:
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 62 guests