Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Web services and win 32 Pin
LCI13-Mar-07 5:48
LCI13-Mar-07 5:48 
GeneralRe: Web services and win 32 Pin
led mike13-Mar-07 7:03
led mike13-Mar-07 7:03 
GeneralRe: Web services and win 32 Pin
Mark Salsbery13-Mar-07 7:26
Mark Salsbery13-Mar-07 7:26 
GeneralRe: Web services and win 32 Pin
led mike13-Mar-07 7:45
led mike13-Mar-07 7:45 
AnswerRe: Web services and win 32 Pin
led mike14-Mar-07 6:23
led mike14-Mar-07 6:23 
GeneralRe: Web services and win 32 Pin
LCI14-Mar-07 6:26
LCI14-Mar-07 6:26 
GeneralRe: Web services and win 32 Pin
LCI14-Mar-07 6:31
LCI14-Mar-07 6:31 
GeneralRe: Web services and win 32 Pin
led mike14-Mar-07 7:03
led mike14-Mar-07 7:03 
LCI wrote:
The second step, i am not 100 % sure as to which files you are referring to.


When you execute the WSDL utility on a WebService it generates a C# code file that "is" a proxy class for the WebService. By Proxy class we mean (among other things) a class that a WebService Client can use to envoke the WebService. This is the file you put into a C# class library project. That project produces a "Managed" DLL which you will be able to "reference" from your C++/CLI DLL Project.

LCI wrote:
If i change my WIN32 dll, will i have to change the app that talks to it as well?


In my case I did NOT. I had a VC6 executable that used my DLL. The original version of my DLL was a VC6 project as well. The new version of the DLL is a VC8 project and therefore requires new CRT DLL's be present on the machine, as well as the .NET Platform of course. However the DLL interface did not change and therefore the consuming exectuable code was not changed. In fact the EXE was not even re-built, I just installed the new DLL and ran the executable and everything worked.


LCI wrote:
My win32 dll uses std::string in particular as the main purpose of the dll is to parse strings of data. If this were to be converted, the code would have to be re-written right?


No. Your new DLL is a "mixed mode" project. This means you can use both native code and managed code, therefore your existing native C++ (std::string) code is fine. However the C# proxy class you will use in your CLI DLL is a "managed" object. This means the memory is managed by the .NET platform and garbage collector. The response from the WebService will be in this Proxy class and therefore will be in managed memory. You will Marshal [^]the data into native memory and will then be able to use your existing C++ code "as is".


led mike

GeneralRe: Web services and win 32 Pin
LCI14-Mar-07 9:42
LCI14-Mar-07 9:42 
GeneralRe: Web services and win 32 Pin
led mike14-Mar-07 11:30
led mike14-Mar-07 11:30 
QuestionAccessing menu options from an embedded dialog Pin
Trevy13-Mar-07 5:17
Trevy13-Mar-07 5:17 
AnswerRe: Accessing menu options from an embedded dialog Pin
lucy13-Mar-07 5:42
lucy13-Mar-07 5:42 
GeneralRe: Accessing menu options from an embedded dialog Pin
Trevy14-Mar-07 5:56
Trevy14-Mar-07 5:56 
GeneralRe: Accessing menu options from an embedded dialog Pin
lucy14-Mar-07 7:32
lucy14-Mar-07 7:32 
GeneralRe: Accessing menu options from an embedded dialog Pin
JudyL_MD14-Mar-07 9:33
JudyL_MD14-Mar-07 9:33 
GeneralRe: Accessing menu options from an embedded dialog Pin
lucy14-Mar-07 9:39
lucy14-Mar-07 9:39 
GeneralRe: Accessing menu options from an embedded dialog Pin
Trevy15-Mar-07 5:29
Trevy15-Mar-07 5:29 
GeneralRe: Accessing menu options from an embedded dialog Pin
JudyL_MD15-Mar-07 6:21
JudyL_MD15-Mar-07 6:21 
GeneralRe: Accessing menu options from an embedded dialog Pin
JudyL_MD14-Mar-07 7:39
JudyL_MD14-Mar-07 7:39 
QuestionSet Password to .Msg File which is backup of Outlook mail [modified] Pin
Ganesh N. Paul13-Mar-07 5:12
Ganesh N. Paul13-Mar-07 5:12 
QuestionMemory debug window in VS2005 Pin
ilgale13-Mar-07 5:02
ilgale13-Mar-07 5:02 
AnswerRe: Memory debug window in VS2005 Pin
Cedric Moonen13-Mar-07 5:05
Cedric Moonen13-Mar-07 5:05 
QuestionDLL Question Pin
Programm3r13-Mar-07 4:41
Programm3r13-Mar-07 4:41 
AnswerRe: DLL Question Pin
CPallini13-Mar-07 4:53
mveCPallini13-Mar-07 4:53 
QuestionRe: DLL Question Pin
Programm3r13-Mar-07 4:58
Programm3r13-Mar-07 4:58 

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.