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

C / C++ / MFC

 
AnswerRe: Multithreading Oddness Pin
Laffis22-Sep-05 11:55
Laffis22-Sep-05 11:55 
AnswerRe: Multithreading Oddness Pin
kerrywes22-Sep-05 12:57
kerrywes22-Sep-05 12:57 
GeneralRe: Multithreading Oddness Pin
Joel Holdsworth22-Sep-05 21:53
Joel Holdsworth22-Sep-05 21:53 
GeneralRe: Multithreading Oddness Pin
Laffis22-Sep-05 22:02
Laffis22-Sep-05 22:02 
GeneralRe: Multithreading Oddness Pin
Steen Krogsgaard22-Sep-05 22:44
Steen Krogsgaard22-Sep-05 22:44 
GeneralRe: Multithreading Oddness Pin
kerrywes23-Sep-05 6:11
kerrywes23-Sep-05 6:11 
AnswerRe: Multithreading Oddness Pin
cmk25-Sep-05 21:06
cmk25-Sep-05 21:06 
QuestionATL :( Pin
Eytukan22-Sep-05 6:34
Eytukan22-Sep-05 6:34 
i'm able to add methods to an Interface that returns integer value, like i declared

[Add method]
method name : MathAdd
parameters : int x,int y,[out,retval]*int sum;
[/Add method]

and the implementaion,

[implementation]

STDMETHODIMP StATL::MathAdd(int x, int y, int *sum)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
*sum = x + y;
return S_OK;
}
[/implementation]

and i'm using this in a VB application thru referncing.
Now, how do i make a method thats gonna return a char value,
i tried like ,

[Add Method]
Method Name : ReturnString
Parameters : char * inpString,[out,retval]char *outString
[Add Method]


[implementation]
STDMETHODIMP StATL::ReturnString(char *inpString, char *outString)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
strcpy(outString,inString);
return S_OK;
}
[/implementaion]


but i get the following errors,
[stinker]
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : error C2259: 'CComObject' : cannot instantiate abstract class due to following members:
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void
** )'
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : warning C4259: 'long __stdcall IStATL::ReturnString(unsigned char *,unsigned char *)' : pure virtual function was not defined
d:\proj\stratl\stratl.h(80) : see declaration of 'ReturnString'
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void
** )'
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : error C2259: 'CComObject' : cannot instantiate abstract class due to following members:
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void
** )'
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : warning C4259: 'long __stdcall IStATL::ReturnString(unsigned char *,unsigned char *)' : pure virtual function was not defined
d:\proj\stratl\stratl.h(80) : see declaration of 'ReturnString'
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void
** )'
[/stinker] ..
how to go

plz note : this is my first attempt in ATL ,i was fooled when i searched for a "Hello World ATL" Cry | :((


thanks in advance
V




AnswerRe: ATL :( Pin
peterchen22-Sep-05 8:23
peterchen22-Sep-05 8:23 
Questionfile associations Pin
mikeorama1234522-Sep-05 5:51
mikeorama1234522-Sep-05 5:51 
AnswerRe: file associations Pin
David Crow22-Sep-05 7:12
David Crow22-Sep-05 7:12 
Generalwhat does the DDEXEC part do? Pin
peterchen22-Sep-05 8:27
peterchen22-Sep-05 8:27 
GeneralRe: what does the DDEXEC part do? Pin
David Crow22-Sep-05 8:38
David Crow22-Sep-05 8:38 
QuestionDelete file from temporary internet files? Pin
DanYELL22-Sep-05 5:42
DanYELL22-Sep-05 5:42 
AnswerRe: Delete file from temporary internet files? Pin
Michael Dunn22-Sep-05 6:19
sitebuilderMichael Dunn22-Sep-05 6:19 
AnswerRe: Delete file from temporary internet files? Pin
Chris Losinger22-Sep-05 6:22
professionalChris Losinger22-Sep-05 6:22 
AnswerRe: Delete file from temporary internet files? Pin
Ravi Bhavnani22-Sep-05 6:36
professionalRavi Bhavnani22-Sep-05 6:36 
GeneralRe: Delete file from temporary internet files? Pin
DanYELL22-Sep-05 14:47
DanYELL22-Sep-05 14:47 
GeneralRe: Delete file from temporary internet files? Pin
Ravi Bhavnani23-Sep-05 1:56
professionalRavi Bhavnani23-Sep-05 1:56 
QuestionTray Icon Menu Command handling in MFC Pin
pritamkd22-Sep-05 5:06
pritamkd22-Sep-05 5:06 
AnswerRe: Tray Icon Menu Command handling in MFC Pin
Laffis22-Sep-05 5:57
Laffis22-Sep-05 5:57 
AnswerRe: Tray Icon Menu Command handling in MFC Pin
Laffis22-Sep-05 6:01
Laffis22-Sep-05 6:01 
AnswerRe: Tray Icon Menu Command handling in MFC Pin
David Crow22-Sep-05 7:31
David Crow22-Sep-05 7:31 
GeneralRe: Tray Icon Menu Command handling in MFC Pin
pritamkd23-Sep-05 3:20
pritamkd23-Sep-05 3:20 
GeneralRe: Tray Icon Menu Command handling in MFC Pin
David Crow23-Sep-05 3:51
David Crow23-Sep-05 3:51 

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.