DllImport

  • Thread starter Thread starter yuen
  • Start date Start date
Y

yuen

How can I implement DllImport?
For example,

//
[DllImport("sms.dll")]
private static extern IntPtr SmsOpen(String ptsMessageProtocol,
IntPtr dwMessageModes, ref IntPtr psmshHandle, IntPtr
phMessageAvailableEvent);
//
Where should this statement be located in the program or in the project?
Moreover, How can I locate "sms.dll" ?
 
You can place this statement in any class of your project. Just dont forget
to "import" System.Runtime.InteropServices:
using System.Runtime.InteropServices;


sms.dll is available on PPC Devices (Phone Edition) and on SmartPhones.
 
THX
Alex Yakhnin said:
You can place this statement in any class of your project. Just dont forget
to "import" System.Runtime.InteropServices:
using System.Runtime.InteropServices;


sms.dll is available on PPC Devices (Phone Edition) and on SmartPhones.
--
Alex Yakhnin, Microsoft Embedded MVP
IntelliProg, Inc.
http://www.intelliprog.com

yuen said:
How can I implement DllImport?
For example,

//
[DllImport("sms.dll")]
private static extern IntPtr SmsOpen(String ptsMessageProtocol,
IntPtr dwMessageModes, ref IntPtr psmshHandle, IntPtr
phMessageAvailableEvent);
//
Where should this statement be located in the program or in the project?
Moreover, How can I locate "sms.dll" ?
 
Back
Top