|
Bill S wrote:
Why not pass the IUnknown* I/F and requery back for IMessage* I/F?
I am currently doing that
I would like to manage to get an IMessage* through however...
Jeremy.
Jeremy Pullicino
Professional C++ Developer
Done any hacking lately?
|
|
|
|
|
Jeremy Pullicino wrote:
I would like to manage to get an IMessage* through however...
I assume that IMessage I/F is your own custom interface. You will have to import the interface definition file that provides the marshalling definition for this interface. This is created when compiling the IDL file that contains the IMessage I/F definition. Give it a try.
Best Regards,
|
|
|
|
|
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
|
|
|
|
|
How can I catch a fired COM event in an ATL based NT/win2k service?
I have found only examples of clients written in VB or MFC.
Alma.
|
|
|
|
|
|
|
Hi, everyone!
Look at the source codes,
--------
/* #define WIN32 */
#ifdef WIN32
#define MORECORE wsbrk
#endif
--------
Such is the comments,
--------
WIN32 (default: undefined)
Define this on MS win (95, nt) platforms to compile in sbrk emulation.
--------
I have two questions,
1. What means WIN32? When the variable "WIN32" becomes
defined? When it is not defined?
2. What means "sbrk" in the comment? What means "wsbrk"?
Btw: the software is written for both Windows and Linux
platforms.
Cheers,
George
|
|
|
|
|
You need not crosspost, unless you intend to be flamed in no time ,
And I swallow a small raisin.
|
|
|
|
|
Thanks, StephaneRodriguez pal!
What means "flamed"? My English is not
very nice. But I will accept your advice.
However my boss is asked me to hand in the
project immediately, but I am in trouble as you
see.
Cheers,
George
|
|
|
|
|
A couple of people have already argued against you about the crosspost. See for yourself : the lounge.
And I swallow a small raisin.
|
|
|
|
|
Oh, I am sorry about that, StephaneRodriguez.
Yesterday, it is a very urgent case, my boss, ...
I promise that case will not happen again.
Cheers,
George
|
|
|
|
|
George Ma wrote:
What means "flamed"?
Basically it means that people starts writing not-so-nice things to you, because they get angry with you...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Oh, I am sorry about that, Anders.
Yesterday, it is a very urgent case, my boss, ...
I promise that case will not happen again.
Cheers,
George
|
|
|
|
|
We are asking you not to post in multiple forums. For example, your size_t question does not belong in the ATL/WTL/STL forum. Posting in more forums will not get you an answer quicker, and it's considered impolite on the net.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Michael Dunn wrote:
it's considered impolite on the net
Thats a very non-hurtful way of putting it Michael ["Damn annoying thing to do on the net" would be another way of putting it ]
Regards,
Brian Dela
|
|
|
|
|
Well, I saw no reason to be mean, really. Now if it had been Bill Sergio, that would be another matter.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Michael Dunn wrote:
Now if it had been Bill Sergio, that would be another matter
LOL.
Regards,
Brian Dela
|
|
|
|
|
Oh, I am sorry about that, Michael.
Yesterday, it is a very urgent case, my boss, ...
I promise that case will not happen again.
Cheers,
George
|
|
|
|
|
Hi, everyone!
I have searched the help page for "size_t" but failed
to find the help page and information about "size_t".
Where can I find the help page or information about
"size_t"? Can you paste detailed information about
"size_t".
Thanks.
Cheers,
George
|
|
|
|
|
It's just an unsigned int. Nothing more.
Vagif Abilov
MCP (Visual C++)
Oslo, Norway
If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them.
Jack Handey, Deep Thoughts
|
|
|
|
|
Thanks, Vagif pal!
Your reply helps a lot.
Have a nice weekend,
George
|
|
|
|
|
How is it that you don't rely on a simple "Find in Files" <devstudiodir>\include ?
And I swallow a small raisin.
|
|
|
|
|
Thanks, StephaneRodriguez
Let me try. But when do things like this,
some other questions may arise. So ...
Cheers,
George
|
|
|
|
|
If you're in VC++ .NET you can right-click, "Go to Definition".
This usually saves a search on include files.
Concussus surgo.
When struck I rise.
|
|
|
|
|
On VC++ .Net, you've got an even simpler way to discover the type, just put your mouse on it and you'll get the tooltip!
And I swallow a small raisin.
|
|
|
|