Click here to Skip to main content
15,906,816 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Using DirectX with WTL? Pin
Andrew Walker27-Nov-04 21:24
Andrew Walker27-Nov-04 21:24 
GeneralSTL or MFC Pin
Shlomi BH27-Nov-04 9:22
Shlomi BH27-Nov-04 9:22 
GeneralRe: STL or MFC Pin
Neville Franks27-Nov-04 9:34
Neville Franks27-Nov-04 9:34 
GeneralRe: STL or MFC Pin
Kevin McFarlane27-Nov-04 23:52
Kevin McFarlane27-Nov-04 23:52 
GeneralRe: STL or MFC Pin
Shlomi BH28-Nov-04 6:43
Shlomi BH28-Nov-04 6:43 
GeneralTAB not working properly within WebBrowser control embedded in modeless dialog box encapsulated in a ATL dll Pin
sashishk26-Nov-04 0:53
sashishk26-Nov-04 0:53 
GeneralRe: TAB not working properly within WebBrowser control embedded in modeless dialog box encapsulated in a ATL dll Pin
Michael Dunn27-Nov-04 8:48
sitebuilderMichael Dunn27-Nov-04 8:48 
GeneralA problem w/ ATL web server - URGENT !!! Pin
De Nardis Andrea25-Nov-04 22:04
De Nardis Andrea25-Nov-04 22:04 
Hi all,
I have really big problem w/ my web servervice.
I implemented the web server w/ ATL, so now I have a Cws ATL class that implements the web service and a CwsIsapi that implements the ISAPI extension. Then I am consuming this web service in C#.

/////////////////////// ATL WEB SERVER /////////////////////////
<br />
class Cws<br />
{<br />
[soap_method]<br />
HRESULT init (/*[in]*/ int num) {<br />
    m_mem = num;<br />
    return S_OK;<br />
};<br />
[soap_method]<br />
HRESULT get_number (/*[out]*/ int *val)<br />
{<br />
    *val = num;<br />
    return S_OK;<br />
}<br />
protected:<br />
    int m_mem;<br />
};<br />


/////////////////////////////// C# CONSUMER ///////////////////////////////////////////
<br />
...<br />
mymachine.Cws service = new mymachine.Cws ();<br />
service.init (3);<br />
int val;<br />
service.get_number (out val);<br />
if (val != 3)<br />
{<br />
    //error:  THIS ALWAIS HAPPEN<br />
}<br />
...<br />


This code DOES NOT WORK !!!
In fact when
"service.get_number (out val)"
is invoked, an instance of Cws is created then destroyed, so when
"service.get_number (out val)"
is invoked, the instance is different and m_mem is not initialized to 3 any more !!!
Is there any way in order to change this behaviour?
Any help will be appreciated.
Thanx very much.
Regards,
Andrea
GeneralRe: A problem w/ ATL web server - URGENT !!! Pin
Nicholas Cardi6-Dec-04 8:04
Nicholas Cardi6-Dec-04 8:04 
GeneralUsing ATL DLL. Pin
dSolariuM25-Nov-04 18:59
dSolariuM25-Nov-04 18:59 
GeneralRe: Using ATL DLL. Pin
Dimitris Vasiliadis25-Nov-04 20:32
Dimitris Vasiliadis25-Nov-04 20:32 
GeneralPassing a control Pin
John R. Shaw24-Nov-04 13:39
John R. Shaw24-Nov-04 13:39 
GeneralRe: Passing a control Pin
John R. Shaw24-Nov-04 13:55
John R. Shaw24-Nov-04 13:55 
GeneralRe: Passing a control Pin
Steve S24-Nov-04 22:25
Steve S24-Nov-04 22:25 
GeneralExplorer extension dll - WM_SHUTDOWN Pin
AssemblySoft24-Nov-04 0:46
AssemblySoft24-Nov-04 0:46 
GeneralRe: Explorer extension dll - WM_SHUTDOWN Pin
Igor Vigdorchik24-Nov-04 10:00
Igor Vigdorchik24-Nov-04 10:00 
GeneralRe: Explorer extension dll - WM_SHUTDOWN Pin
AssemblySoft24-Nov-04 22:57
AssemblySoft24-Nov-04 22:57 
QuestionHow to embeded a button onto the FlexGrid Cell? Pin
bohrium23-Nov-04 23:34
bohrium23-Nov-04 23:34 
GeneralVB ActiveX into ATL project Pin
Brian Gould23-Nov-04 20:24
Brian Gould23-Nov-04 20:24 
QuestionWhich collection class to use? Pin
paulb23-Nov-04 19:02
paulb23-Nov-04 19:02 
AnswerRe: Which collection class to use? Pin
Joaquín M López Muñoz23-Nov-04 21:13
Joaquín M López Muñoz23-Nov-04 21:13 
Questionusing ATL7.0 instead of ATL3, I'm missing something but what? Pin
seriema23-Nov-04 14:05
seriema23-Nov-04 14:05 
AnswerRe: using ATL7.0 instead of ATL3, I'm missing something but what? Pin
Robert Bielik24-Nov-04 21:02
Robert Bielik24-Nov-04 21:02 
GeneralRe: using ATL7.0 instead of ATL3, I'm missing something but what? Pin
seriema25-Nov-04 3:06
seriema25-Nov-04 3:06 
AnswerRe: using ATL7.0 instead of ATL3, I'm missing something but what? Pin
seriema25-Nov-04 14:37
seriema25-Nov-04 14:37 

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.