Click here to Skip to main content
15,914,384 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: BSTR Pin
Anonymous23-Sep-05 5:27
Anonymous23-Sep-05 5:27 
GeneralRe: BSTR Pin
Jörgen Sigvardsson23-Sep-05 6:20
Jörgen Sigvardsson23-Sep-05 6:20 
Questionplease help...how to share same address space Pin
rajesh_kapure22-Sep-05 20:29
rajesh_kapure22-Sep-05 20:29 
AnswerRe: please help...how to share same address space Pin
XXXXXXXXXXXXXXXX7722-Sep-05 23:23
XXXXXXXXXXXXXXXX7722-Sep-05 23:23 
GeneralRe: please help...how to share same address space Pin
rajesh_kapure23-Sep-05 20:52
rajesh_kapure23-Sep-05 20:52 
GeneralRe: please help...how to share same address space Pin
XXXXXXXXXXXXXXXX7726-Sep-05 1:51
XXXXXXXXXXXXXXXX7726-Sep-05 1:51 
QuestionGetting info of detectec file Pin
Maddie from Dartford22-Sep-05 20:21
Maddie from Dartford22-Sep-05 20:21 
Questionincluding a char* Method to Interface Pin
Eytukan22-Sep-05 6:27
Eytukan22-Sep-05 6:27 
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,

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

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]



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


but i get the following errors, (see the following thread, it looks akward if i put it here)

plz note : this is my first attempt in ATL
thankx
Vdio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator<class atl::ccomobject<class="" cstatl=""> >::CreateInstance(void *,const struct _GUID &,void
** )'
[/stink] Frown | :( .
how to go

plz note : this is my first attempt in ATL







thankx
V
Generalerror Pin
Eytukan22-Sep-05 6:50
Eytukan22-Sep-05 6:50 
AnswerRe: including a char* Method to Interface Pin
Michael Dunn22-Sep-05 7:27
sitebuilderMichael Dunn22-Sep-05 7:27 
GeneralRe: including a char* Method to Interface Pin
Eytukan22-Sep-05 22:12
Eytukan22-Sep-05 22:12 
GeneralRe: including a char* Method to Interface Pin
benjnp3-Oct-05 23:22
benjnp3-Oct-05 23:22 
Questionatl help Pin
_tasleem21-Sep-05 20:14
_tasleem21-Sep-05 20:14 
AnswerRe: atl help Pin
Douglas Troy22-Sep-05 6:01
Douglas Troy22-Sep-05 6:01 
QuestionATL service connetion points Pin
ky_rerun20-Sep-05 9:52
ky_rerun20-Sep-05 9:52 
QuestionRe: ATL service connetion points Pin
ky_rerun20-Sep-05 11:20
ky_rerun20-Sep-05 11:20 
AnswerRe: ATL service connetion points Pin
Warren Burch20-Sep-05 12:39
sussWarren Burch20-Sep-05 12:39 
GeneralRe: ATL service connetion points Pin
ky_rerun21-Sep-05 5:11
ky_rerun21-Sep-05 5:11 
GeneralRe: ATL service connetion points Pin
Anonymous21-Sep-05 7:43
Anonymous21-Sep-05 7:43 
GeneralRe: ATL service connetion points Pin
ky_rerun21-Sep-05 8:40
ky_rerun21-Sep-05 8:40 
GeneralRe: ATL service connetion points Pin
Jörgen Sigvardsson21-Sep-05 19:35
Jörgen Sigvardsson21-Sep-05 19:35 
QuestionOCX link to DLL Pin
honae20-Sep-05 3:50
honae20-Sep-05 3:50 
QuestionFiring a VARIANT type from ATL project Pin
Dudi Avramov19-Sep-05 6:51
Dudi Avramov19-Sep-05 6:51 
AnswerRe: Firing a VARIANT type from ATL project Pin
Dudi Avramov19-Sep-05 22:08
Dudi Avramov19-Sep-05 22:08 
QuestionSoapTransport Sample: WSDL generation error Pin
inter8ection16-Sep-05 3:18
inter8ection16-Sep-05 3:18 

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.