C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

mobile prob..


Posted Date: 29 Nov 2008      Posted By: katheeja      Member Level: Bronze     Points: 1   Responses: 2



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.





Responses

Author: Arun Jacob    29 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 1

Refer this link,

http://www.codeproject.com/KB/dotnet/SMSService.aspx

:-)

Arun Jacob
http://codepronet.blogspot.com/



Author: katheeja    30 Nov 2008Member Level: BronzeRating: 2 out of 52 out of 5     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..



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Webparts
Previous : How to Send Email through SMTP ASP.NET 2.0
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use