Click here to Skip to main content
15,921,716 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Generating Event from a COM exe server Pin
Lim Bio Liong3-May-07 12:39
Lim Bio Liong3-May-07 12:39 
QuestionFindFirstFile Pin
LCI20-Apr-07 2:51
LCI20-Apr-07 2:51 
AnswerRe: FindFirstFile Pin
Michael Dunn20-Apr-07 7:29
sitebuilderMichael Dunn20-Apr-07 7:29 
AnswerRe: FindFirstFile Pin
sthotakura20-Apr-07 8:50
sthotakura20-Apr-07 8:50 
QuestionATL COM Service Pin
Janma20-Apr-07 1:21
Janma20-Apr-07 1:21 
AnswerRe: ATL COM Service Pin
sthotakura20-Apr-07 8:46
sthotakura20-Apr-07 8:46 
GeneralRe: ATL COM Service Pin
Janma22-Apr-07 19:31
Janma22-Apr-07 19:31 
GeneralRe: ATL COM Service Pin
Janma22-Apr-07 22:03
Janma22-Apr-07 22:03 
Seems that i have found out the problem.. I replaced CLSCTX_INPROC_SERVER with CLSCTX_LOCAL_SERVER in CoCreateInstance(). But now i am facing a different problem.

I have defined a method in my interface as.

STDMETHODIMP CFirst_ATL::AddNumbers(LONG x, LONG y, LONG* z)
{
*z = x + y;
return S_OK;
}

when i try calling this method from client as
hr = IFirst_ATL->AddNumbers(5, 7, &ReturnValue);
the method returns S_OK, but the value in ReturnValue is some garbage value. Can anyone please advice where have i went wrong?

Thanks!

GeneralAdding ATL Dialog to WTL application from VS2005 Pin
Ernest Laurentin19-Apr-07 7:33
Ernest Laurentin19-Apr-07 7:33 
Questionusing map Pin
NorGUI18-Apr-07 10:54
NorGUI18-Apr-07 10:54 
AnswerRe: using map Pin
Roger Stoltz18-Apr-07 11:33
Roger Stoltz18-Apr-07 11:33 
Questiontemplate class c2995 operator<< overloading [modified] Pin
ky_rerun17-Apr-07 11:11
ky_rerun17-Apr-07 11:11 
AnswerRe: template class c2995 operator<< overloading Pin
ky_rerun17-Apr-07 19:10
ky_rerun17-Apr-07 19:10 
Questionlinker error in VC6 while linking to VC8 MSXML exports [modified] Pin
chervu17-Apr-07 7:24
chervu17-Apr-07 7:24 
AnswerRe: linker error in VC6 while linking to VC8 MSXML exports Pin
Michael Dunn17-Apr-07 18:00
sitebuilderMichael Dunn17-Apr-07 18:00 
QuestionCombine multiple text files into one ! Pin
snailflying16-Apr-07 14:46
snailflying16-Apr-07 14:46 
QuestionHow to customise IE toolbar Addon [modified] Pin
shivditya16-Apr-07 0:53
shivditya16-Apr-07 0:53 
QuestionIs possible to allocate strictly physical mem. (RAM) instead of page file (virtual mem) Pin
marcelse12-Apr-07 4:49
marcelse12-Apr-07 4:49 
QuestionAdvising to the embedded flash object events Pin
Tomek.Sergey10-Apr-07 13:14
Tomek.Sergey10-Apr-07 13:14 
QuestionTELECOMMUNICATION Pin
ILHEM5-Apr-07 5:42
ILHEM5-Apr-07 5:42 
Questionhow to add check Box in MMC(through ATL) in Result pan Pin
mo_nica8811-Apr-07 23:54
mo_nica8811-Apr-07 23:54 
Questionargv does not equal string (char*) Pin
XTAL25630-Mar-07 19:45
XTAL25630-Mar-07 19:45 
AnswerRe: argv does not equal string (char*) Pin
Michael Dunn31-Mar-07 19:20
sitebuilderMichael Dunn31-Mar-07 19:20 
GeneralRe: argv does not equal string (char*) Pin
XTAL25631-Mar-07 20:09
XTAL25631-Mar-07 20:09 
Questionatl8.0 backward compatibility issue Pin
Shiva Prasad30-Mar-07 1:08
Shiva Prasad30-Mar-07 1:08 

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.