Dear all,
I have the following standard call function hosted in the "test.dll"

TDisplaySample=function(style, outWidth, outHeight, margin: DWORD): HBITMAP; stdcall;

I am looking desesperately how to declare it correctly in a vb project

My trial would be :
public Declare function TDisplaySample lib"test.dll" (byref style as long,byref outwidth as long, byref outheight as long, byref margin as long) as HBITMAP

any of you can confirm ? And if any of you could explain me how to use it to display something on a picturebox it would be perfect (with code snippet) I would be very very thankfull
Best regards