i used your code that was posted in msdn help and support for sending sms in mobile using asp.net. but i found these following errors.
[DllImport("sms.dll")] private static extern INTPTR SmsOpen(String ptsMessageProtocol, IntPtr dwMessageModes, ref IntPtr psmshHandle, IntPtr phMessageAvailableEvent);
[DllImport("sms.dll")] private static extern INTPTR SmsSendMessage(IntPtr smshHandle, IntPtr psmsaSMSCAddress, IntPtr psmsaDestinationAddress, IntPtr pstValidityPeriod, BYTE[] pbData, IntPtr dwDataSize, BYTE[] pbProviderSpecificData, IntPtr dwProviderSpecificDataSize, SMS_DATA_ENCODING smsdeDataEncoding, IntPtr dwOptions, IntPtr psmsmidMessageID);
[DllImport("sms.dll")] private static extern INTPTR SmsClose(IntPtr smshHandle);
the CAPITALISED lines shows error..
Error 1 Expected class, delegate, enum, interface, or struct Error 3 Identifier expected Error 8 The modifier 'extern' is not valid for this item Error 9 The namespace '<global namespace>' already contains a definition for '?'
i would be extremly grateful to you if you help me sir.
|
| Author: Arun Jacob 29 Nov 2008 | Member Level: Gold | Rating:  Points: 1 |
Refer this link,
http://www.codeproject.com/KB/dotnet/SMSService.aspx
:-)
Arun Jacob http://codepronet.blogspot.com/
|
| Author: katheeja 30 Nov 2008 | Member Level: Bronze | Rating:  Points: 4 |
hi sir, thks for ur reply..but i need to use webservice method instead of gsm..the code n sms.dll is available in this link..xxxx://support.microsoft.com/kb/555578..
the webservice method given in code project.com isnt working..is there any other code for sending sms through webservice..
|