Marshal.GetHINSTANCE

  • Thread starter Thread starter Shan
  • Start date Start date
S

Shan

Hello,

I am developing an application for pocket PC. I tried to use the
System.Runtime.InteropSerices.Marshal class. But I could not use the
GetHINSTANCE method in my code. I received an error saying
"'System.Runtime.InteropSerices.Marshal' does not contain a definition
for GetHINSTANCE. Any pointers will be helpful

Thanks,

Shan
 
Shan,

I would take this to mean that the GetHINSTANCE method is not supported
on the compact framework. You will have to find some other way of getting
the application instance handle and passing it to whatever API you are
calling.

What are you trying to do?
 
I am trying to read data from a sensor to the pocket pc through a
flash interface. The sensor came with a DLL which exports the basic
functions for data acqusition from the sensor. To initialize the
sensor, I have to pass the calling app's application handle to the
sensor APIs. How can I do that?

Thanks,
Shan


Nicholas Paldino said:
Shan,

I would take this to mean that the GetHINSTANCE method is not supported
on the compact framework. You will have to find some other way of getting
the application instance handle and passing it to whatever API you are
calling.

What are you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Shan said:
Hello,

I am developing an application for pocket PC. I tried to use the
System.Runtime.InteropSerices.Marshal class. But I could not use the
GetHINSTANCE method in my code. I received an error saying
"'System.Runtime.InteropSerices.Marshal' does not contain a definition
for GetHINSTANCE. Any pointers will be helpful

Thanks,

Shan
 
Back
Top