By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

WAPI

P: n/a
I have a WAPI function which return a pointer address. I always get
Odd number of the memory address. I called the provider of the WAPI,
they said their function have no problem in VC++. Some some experts
double check my vb.net WAPI declare?

Provider VC++ declare:

DLLimport DWORD WINAPI HICAP200_dw_LockWait4GetImageAddrEx
(DWORD IN_dwChannel,
DWORD *IN_dwImageAddr,
DWORD IN_dw4CC,
DWORD IN_dwBLOCKFlag,
DWORD IN_dwWaitmSec);
My declare in VB.NET:

<DllImport("xyz.dll",
EntryPoint:="_HICAP200_dw_LockWait4GetImageAddrEx@ 20")> _
Private Shared Function HICAP200_dw_LockWait4GetImageAddrEx _
(ByVal IN_dwChannel As Integer, ByRef IN_dwImageAddr As Integer, _
ByVal IN_dw4CC As Integer, ByVal IN_dwBLOCKFlag As Integer, _
ByVal IN_dwWaitmSec As Integer) As Integer
End Function
The parameter IN_dwImageAddr is the pointer address that I want. It is
an Odd number in vb.net. Thanks.
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.