this thread is related to thread222-505842, started by EwS
my question relates to converting a not known data type from C++ to VB.
the thread in question is asking about the CERAPIInvoke function (which i understand is something to do with windows CE, a topic i know nothing about)
The following is info gathered from MSDN and the internet!!
CERAPIInvoke declaration (C++)
HRESULT STDAPICALLTYPE CeRapiInvoke(LPCWSTR lpwszDll,
LPCWSTR lpwszFunc,
DWORD dwInputCount,
LPBYTE pcbIn,
WORD *pcbOutput,
LPBYTE *ppbOutput,
IRAPIStream *ppStream,
DWORD dwReserved)
now most of this is pretty standard to convert to VB {i]except[/i] the IRAPIStream bit...
now again from MSDN:-
IRAPIStream *ppStream is a pointer to the adress of a IRAPIStream interface
the IRAPIStream interface has two methods SetRAPIStat and GetRapiStat
SetRapiStat(
RAPISTREAMFLAG Flag,
DWORD dwValue);
GetRapiStat(
RAPISTREAMFLAG Flag,
DWORD *pdwValue);
my suggestion to was as follows:-
public Type SetRAPISTAT
RapiFlag as boolean
dwVal as long
end type
public type GetRAPISTAT
RapiFlag as boolean
pdwVal as Long
end type
public type IrapIStream
SetRAPI as setRapistat
getRAPI as getRapistat
end type
dim StructureToSend as IrapIStream
now assuming my above assumption was correct (which im not sure it is) How would i/we pass this parameter to a c++ dll (ie byref, byval)
if anyone can provide some input you will help me understand converting C++ dlls more and solve EwS problem in one shot!
any input greatly appreciated!!
(on a side not i will make sure this thread is linked to all previosly started threads on this subject!..[all 4 of them] LOL) If somethings hard to do, its not worth doing - Homer Simpson
my question relates to converting a not known data type from C++ to VB.
the thread in question is asking about the CERAPIInvoke function (which i understand is something to do with windows CE, a topic i know nothing about)
The following is info gathered from MSDN and the internet!!
CERAPIInvoke declaration (C++)
HRESULT STDAPICALLTYPE CeRapiInvoke(LPCWSTR lpwszDll,
LPCWSTR lpwszFunc,
DWORD dwInputCount,
LPBYTE pcbIn,
WORD *pcbOutput,
LPBYTE *ppbOutput,
IRAPIStream *ppStream,
DWORD dwReserved)
now most of this is pretty standard to convert to VB {i]except[/i] the IRAPIStream bit...
now again from MSDN:-
IRAPIStream *ppStream is a pointer to the adress of a IRAPIStream interface
the IRAPIStream interface has two methods SetRAPIStat and GetRapiStat
SetRapiStat(
RAPISTREAMFLAG Flag,
DWORD dwValue);
GetRapiStat(
RAPISTREAMFLAG Flag,
DWORD *pdwValue);
my suggestion to was as follows:-
public Type SetRAPISTAT
RapiFlag as boolean
dwVal as long
end type
public type GetRAPISTAT
RapiFlag as boolean
pdwVal as Long
end type
public type IrapIStream
SetRAPI as setRapistat
getRAPI as getRapistat
end type
dim StructureToSend as IrapIStream
now assuming my above assumption was correct (which im not sure it is) How would i/we pass this parameter to a c++ dll (ie byref, byval)
if anyone can provide some input you will help me understand converting C++ dlls more and solve EwS problem in one shot!
any input greatly appreciated!!
(on a side not i will make sure this thread is linked to all previosly started threads on this subject!..[all 4 of them] LOL) If somethings hard to do, its not worth doing - Homer Simpson