Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Toolbar in dialog based project Pin
Mark Salsbery7-May-08 7:01
Mark Salsbery7-May-08 7:01 
QuestionCapturing a video using opencv on MFC Pin
Collin Xie7-May-08 4:18
Collin Xie7-May-08 4:18 
AnswerRe: Capturing a video using opencv on MFC Pin
srisuwan917-Jan-10 20:56
srisuwan917-Jan-10 20:56 
QuestionMFC Application and Web service Pin
BadJerry7-May-08 4:05
BadJerry7-May-08 4:05 
AnswerRe: MFC Application and Web service Pin
led mike7-May-08 4:28
led mike7-May-08 4:28 
GeneralRe: MFC Application and Web service Pin
BadJerry7-May-08 4:40
BadJerry7-May-08 4:40 
GeneralRe: MFC Application and Web service Pin
led mike7-May-08 5:05
led mike7-May-08 5:05 
AnswerRe: MFC Application and Web service Pin
Christopher Duncan7-May-08 14:20
Christopher Duncan7-May-08 14:20 
Hi, Jerry.

You're looking at a multi part solution. First, create a new C# Web Service project in Visual Studio. If you're comfortable with C#, writing the web service code is pretty straightforward. Just be sure to keep the member functions public and use the [WebMethod] tag for the routines you want to make publicly available via the service.

After you've created your web service, go to your C++ app and in the Solution Explorer of Visual Studio, add a Web Reference pointing to your web service (you'll get a dialog prompting you for services in this project, on local host, or a remote url).

This web reference creates a C++ proxy class header file. You can then use this class in your C++ app to talk to the web service API. You'll need to use BSTRs instead of CStrings, etc., but by looking at the proxy header file the params will be obvious to you.

I don't have any ready articles to point you to, but if you search for them on each of the steps I've mentioned, you should find plenty of starter code to get you going.

Hope this helps,


GeneralRe: MFC Application and Web service Pin
BadJerry7-May-08 23:13
BadJerry7-May-08 23:13 
GeneralRe: MFC Application and Web service Pin
Christopher Duncan8-May-08 6:04
Christopher Duncan8-May-08 6:04 
GeneralRe: MFC Application and Web service Pin
BadJerry8-May-08 6:59
BadJerry8-May-08 6:59 
GeneralRe: MFC Application and Web service Pin
Christopher Duncan8-May-08 7:27
Christopher Duncan8-May-08 7:27 
GeneralRe: MFC Application and Web service Pin
BadJerry8-May-08 10:13
BadJerry8-May-08 10:13 
QuestionWM_TIMER & MessageBox Pin
CPallini7-May-08 3:58
mveCPallini7-May-08 3:58 
AnswerRe: WM_TIMER & MessageBox Pin
BadJerry7-May-08 4:09
BadJerry7-May-08 4:09 
QuestionRe: WM_TIMER & MessageBox Pin
CPallini7-May-08 4:17
mveCPallini7-May-08 4:17 
AnswerRe: WM_TIMER & MessageBox Pin
BadJerry7-May-08 4:35
BadJerry7-May-08 4:35 
QuestionRe: WM_TIMER & MessageBox Pin
CPallini7-May-08 4:46
mveCPallini7-May-08 4:46 
AnswerRe: WM_TIMER & MessageBox Pin
BadJerry7-May-08 4:53
BadJerry7-May-08 4:53 
GeneralRe: WM_TIMER & MessageBox Pin
CPallini7-May-08 5:05
mveCPallini7-May-08 5:05 
QuestionError compiling dll Pin
alex7867-May-08 3:46
alex7867-May-08 3:46 
AnswerRe: Error compiling dll Pin
Matthew Faithfull7-May-08 3:58
Matthew Faithfull7-May-08 3:58 
GeneralRe: Error compiling dll Pin
alex7867-May-08 18:35
alex7867-May-08 18:35 
QuestionRe: Error compiling dll Pin
David Crow7-May-08 4:02
David Crow7-May-08 4:02 
Questionplz help me write this program Pin
Umair Zuberi7-May-08 3:26
Umair Zuberi7-May-08 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.