PC Review


Reply
Thread Tools Rate Thread

API using emulator

 
 
Magic Gooddy
Guest
Posts: n/a
 
      10th May 2005
Hi!
Can I using WinAPI function in emulator?
 
Reply With Quote
 
 
 
 
Arun
Guest
Posts: n/a
 
      10th May 2005
Yes, You can PInvoke the WinAPI DLL signature in your application.
You can get almost all signatures in this link,
http://www.pinvoke.net/

Here is a sample Platform Invoke in C#
http://msdn.microsoft.com/library/de...vokeSample.asp

http://samples.gotdotnet.com/quickst...laysounds.aspx

Hope this helps,
Cheers,
Arun.

 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      10th May 2005
Yep, you can. Here you are some useful links for this topic:

"An Introduction to P/Invoke and Marshaling on the Microsoft .NET
Compact Framework"
http://msdn.microsoft.com/library/en...ntrointerp.asp

"Advanced P/Invoke on the Microsoft .NET Compact Framework"
http://msdn.microsoft.com/library/en...advinterop.asp

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Magic Gooddy wrote:
> Hi!
> Can I using WinAPI function in emulator?

 
Reply With Quote
 
Magic Gooddy
Guest
Posts: n/a
 
      10th May 2005
I don't understand how to work with PInvoke in emulator. I know about PInvoke, it is works fine on device. But in emulators I have errors.

"Arun" <(E-Mail Removed)> ???????/???????? ? ???????? ?????????: news:(E-Mail Removed)...

> Yes, You can PInvoke the WinAPI DLL signature in your application.
> You can get almost all signatures in this link,
> http://www.pinvoke.net/
>
> Here is a sample Platform Invoke in C#
> http://msdn.microsoft.com/library/de...vokeSample.asp
>
> http://samples.gotdotnet.com/quickst...laysounds.aspx
>
> Hope this helps,
> Cheers,
> Arun.
>
 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      10th May 2005
It will work if the same API is available on the emulator. As with any API,
you can't call it if it's not present. If you are targeting a Pocket PC
device and using the Pocket PC emulator, it should work. If not, you must
be specific in telling us *what API* you're having problems with.

If you are targeting some other type of device, the device vendor will have
to give you an emulator to use; we can't help you with that.

Paul T.

"Magic Gooddy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I don't understand how to work with PInvoke in emulator. I know about
>PInvoke, it is works fine on device. But in emulators I have errors.
>
> "Arun" <(E-Mail Removed)> ???????/???????? ? ????????
> ?????????: news:(E-Mail Removed)...
>> Yes, You can PInvoke the WinAPI DLL signature in your application.
>> You can get almost all signatures in this link,
>> http://www.pinvoke.net/
>>
>> Here is a sample Platform Invoke in C#
>> http://msdn.microsoft.com/library/de...vokeSample.asp
>>
>> http://samples.gotdotnet.com/quickst...laysounds.aspx
>>
>> Hope this helps,
>> Cheers,
>> Arun.
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registering a new emulator skin in Device Emulator Manager & VS 2005 AP Microsoft Dot NET Compact Framework 1 12th Jun 2006 01:12 PM
updating the vs.net 2003 emulator with compact framework sp3 (yes,the emulator) Tim Wilson Microsoft Dot NET Compact Framework 1 10th Sep 2005 05:41 PM
Emulator BUG: TimeSpan.Milliseconds not working on Pocket PC emulator pouchi Microsoft Dot NET Compact Framework 2 27th Jan 2004 02:36 AM
Differences between Gemini Emulator (MC 9000) & PPC 2003 Emulator shipped with Windows Mobile 2003 Vinay Microsoft Dot NET Compact Framework 0 26th Dec 2003 04:33 PM
Differences between Gemini Emulator (MC 9000) & PPC 2003 Emulator shipped with Windows Mobile 2003 Vinay Microsoft Dot NET Compact Framework 0 22nd Dec 2003 12:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:54 PM.