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

ATL / WTL / STL

 
GeneralIDL question Pin
Jeremy Pullicino2-Sep-02 23:00
Jeremy Pullicino2-Sep-02 23:00 
GeneralRe: IDL question Pin
Joaquín M López Muñoz3-Sep-02 2:49
Joaquín M López Muñoz3-Sep-02 2:49 
GeneralRe: IDL question Pin
Jeremy Pullicino3-Sep-02 3:44
Jeremy Pullicino3-Sep-02 3:44 
GeneralRe: IDL question Pin
Joaquín M López Muñoz3-Sep-02 4:04
Joaquín M López Muñoz3-Sep-02 4:04 
GeneralRe: IDL question Pin
Bill S3-Sep-02 4:24
professionalBill S3-Sep-02 4:24 
GeneralRe: IDL question Pin
Jeremy Pullicino3-Sep-02 5:13
Jeremy Pullicino3-Sep-02 5:13 
GeneralRe: IDL question Pin
Bill S3-Sep-02 5:21
professionalBill S3-Sep-02 5:21 
GeneralRe: IDL question Pin
Tom Wright5-Sep-02 7:36
Tom Wright5-Sep-02 7:36 
Jeremy,
Try making your "in" look like this
[in]BSTR param

make sure you change the prototype in header file to reflect this change and update the function on the CPP file also.

let me know if this helps

in your code after you get the message that the container is returning to you, you will need to do something like this:

STDMETHODIMP CJeremy::SetMsg(BSTR param)
{
USES_CONVERSION;
LPSTR lpParam = W2A(param);
::MessageBox(NULL, lpParam, "Title", MB_OK);
return S_OK;
}

or very close to that in order to read the .

Tom Wright
tawright915@yahoo.com
QuestionATL based COM fire-event client ? Pin
alma2-Sep-02 3:25
alma2-Sep-02 3:25 
AnswerRe: ATL based COM fire-event client ? Pin
Pavel Klocek2-Sep-02 6:20
Pavel Klocek2-Sep-02 6:20 
AnswerRe: ATL based COM fire-event client ? Pin
Todd Smith2-Sep-02 15:43
Todd Smith2-Sep-02 15:43 
GeneralA question about #define WIN32 and "sbrk" Pin
George Ma1-Sep-02 1:13
George Ma1-Sep-02 1:13 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Stephane Rodriguez.1-Sep-02 2:15
Stephane Rodriguez.1-Sep-02 2:15 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
George Ma1-Sep-02 4:08
George Ma1-Sep-02 4:08 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Stephane Rodriguez.1-Sep-02 4:21
Stephane Rodriguez.1-Sep-02 4:21 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
George Ma2-Sep-02 3:34
George Ma2-Sep-02 3:34 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Anders Molin1-Sep-02 5:01
professionalAnders Molin1-Sep-02 5:01 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
George Ma2-Sep-02 3:34
George Ma2-Sep-02 3:34 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Michael Dunn1-Sep-02 6:51
sitebuilderMichael Dunn1-Sep-02 6:51 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Brian Delahunty1-Sep-02 7:07
Brian Delahunty1-Sep-02 7:07 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Michael Dunn1-Sep-02 9:03
sitebuilderMichael Dunn1-Sep-02 9:03 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Brian Delahunty1-Sep-02 9:02
Brian Delahunty1-Sep-02 9:02 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
George Ma2-Sep-02 3:36
George Ma2-Sep-02 3:36 
GeneralA question about "size_t" Pin
George Ma31-Aug-02 21:07
George Ma31-Aug-02 21:07 
GeneralRe: A question about "size_t" Pin
Vagif Abilov31-Aug-02 21:17
professionalVagif Abilov31-Aug-02 21:17 

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.