Click here to Skip to main content
15,883,705 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Communication Problem Pin
bulg16-Apr-09 10:35
bulg16-Apr-09 10:35 
GeneralRe: Communication Problem Pin
Cedric Moonen16-Apr-09 20:00
Cedric Moonen16-Apr-09 20:00 
GeneralRe: Communication Problem Pin
led mike16-Apr-09 7:57
led mike16-Apr-09 7:57 
QuestionCombo Box Problem - the drop down list will not display Pin
Don Jones BNYMellon16-Apr-09 6:05
Don Jones BNYMellon16-Apr-09 6:05 
QuestionRe: Combo Box Problem - the drop down list will not display Pin
David Crow16-Apr-09 6:09
David Crow16-Apr-09 6:09 
AnswerRe: Combo Box Problem - the drop down list will not display Pin
Don Jones BNYMellon16-Apr-09 6:39
Don Jones BNYMellon16-Apr-09 6:39 
AnswerRe: Combo Box Problem - the drop down list will not display Pin
job198216-Apr-09 6:51
job198216-Apr-09 6:51 
QuestionConsumig WebService from C++. Pin
Mike Doner16-Apr-09 4:56
Mike Doner16-Apr-09 4:56 
Hi all,

I'm trying to find the best/easiest way to consume a WebService in my application which is written in C/C++. I've seen and tried numerous examples over the course of the last few days, and there seems to be pros and cons no matter which way I go. I thought I'd ask you folks your opinion.

I turned on the "/crl" option on in my project, and added a WebReference. I was able to call the WebService without any problems, but I'm unsure how to handle exceptions when something goes wrong (ie: address is no longer valid). If everything is up and running and things are successful, there are no problems.

Test_WSService      obtws;

try
{
  obtws.Url = "http://localhost:8088/mockObtain_WSSoapBinding1";
  obtws.UpdateObject ( "A", "B", "C" );
}
catch ( ??? )
{
}



With whatever route I go with, I'd like to be able to change the destination url on the fly as this will be specified in a user-modifiable configuration file.

My knowledge of COM is almost nil.

I've seen examples where a developer did all the WebService consuming in a C# dll, and just called that from the C++ application as well.

Whats your past experiences, recommendation?

Anything you could forward would be helpful.

Cheers.
Mike.
AnswerRe: Consumig WebService from C++. Pin
led mike16-Apr-09 7:45
led mike16-Apr-09 7:45 
GeneralRe: Consumig WebService from C++. Pin
Mike Doner20-Apr-09 6:20
Mike Doner20-Apr-09 6:20 
GeneralRe: Consumig WebService from C++. Pin
led mike22-Apr-09 6:02
led mike22-Apr-09 6:02 
QuestionHow to run an Pocket PC 2003 SDK Application in XP system ? Pin
kapardhi16-Apr-09 3:08
kapardhi16-Apr-09 3:08 
AnswerRe: How to run an Pocket PC 2003 SDK Application in XP system ? Pin
Stuart Dootson16-Apr-09 3:11
professionalStuart Dootson16-Apr-09 3:11 
QuestionRe: How to run an Pocket PC 2003 SDK Application in XP system ? Pin
kapardhi16-Apr-09 3:21
kapardhi16-Apr-09 3:21 
AnswerRe: How to run an Pocket PC 2003 SDK Application in XP system ? Pin
Cedric Moonen16-Apr-09 3:27
Cedric Moonen16-Apr-09 3:27 
AnswerRe: How to run an Pocket PC 2003 SDK Application in XP system ? Pin
Stuart Dootson16-Apr-09 3:31
professionalStuart Dootson16-Apr-09 3:31 
AnswerRe: How to run an Pocket PC 2003 SDK Application in XP system ? Pin
Cedric Moonen16-Apr-09 3:11
Cedric Moonen16-Apr-09 3:11 
QuestionDWORD to CString Conversion. Pin
Le@rner16-Apr-09 2:30
Le@rner16-Apr-09 2:30 
AnswerRe: DWORD to CString Conversion. Pin
Rajesh R Subramanian16-Apr-09 2:33
professionalRajesh R Subramanian16-Apr-09 2:33 
GeneralRe: DWORD to CString Conversion. Pin
Le@rner16-Apr-09 2:43
Le@rner16-Apr-09 2:43 
GeneralRe: DWORD to CString Conversion. Pin
Cedric Moonen16-Apr-09 2:54
Cedric Moonen16-Apr-09 2:54 
GeneralRe: DWORD to CString Conversion. Pin
Le@rner16-Apr-09 2:58
Le@rner16-Apr-09 2:58 
GeneralRe: DWORD to CString Conversion. Pin
Rajesh R Subramanian16-Apr-09 3:05
professionalRajesh R Subramanian16-Apr-09 3:05 
GeneralRe: DWORD to CString Conversion. Pin
David Crow16-Apr-09 3:06
David Crow16-Apr-09 3:06 
JokeRe: DWORD to CString Conversion. Pin
Rajesh R Subramanian16-Apr-09 3:19
professionalRajesh R Subramanian16-Apr-09 3:19 

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.