Re: Function in header file - newbie VC++/CLI
- From: "Jacek" <majly@xxxxxxxxx>
- Date: Tue, 3 Jul 2007 21:13:35 +0200
Code in above post works good.but in next post with header file don't work
Sorry for my english ;)
Uzytkownik "Tom Serface" <tom.nospam@xxxxxxxxxxxxx> napisal w wiadomosci
news:EE8299AA-33F6-4CE7-AEDA-8783739756F2@xxxxxxxxxxxxxxxx
Ah, and that doesn't work in any language.
Tom
"Duane Hebert" <spoo@xxxxxxxxx> wrote in message
news:uKS2l9ZvHHA.4796@xxxxxxxxxxxxxxxxxxxxxxx
"Tom Serface" <tom.nospam@xxxxxxxxxxxxx> wrote in message
news:3F0B759F-12BA-4FE9-9435-E719E470A4A2@xxxxxxxxxxxxxxxx
If you are showing all of the code, your problem is that your function
is not part of a class and, thus, wouldn't have a 'this' pointer. You
don't really need to expressly use the this pointer anyway since it is
implied where it can be used.
I don't think he's showing all of his code. I imagine that the
first part was in the header within the Form1 class since he says
that it compiled. It looks like he's trying to just strip
out the code and put it in an unrelated cpp file.
I didn't reply to him because with the
use of "String ^Message" I wasn't sure if the same rules
applied for VC++/CLI (or C# or whatever language this was in)
as C++.
Maybe he just wants to split the definition/declaration into
a h/cpp pair. Is that legal in c++/cli?
.
- Follow-Ups:
- Re: Function in header file - newbie VC++/CLI
- From: Duane Hebert
- Re: Function in header file - newbie VC++/CLI
- References:
- Function in header file - newbie VC++/CLI
- From: Jacek
- Re: Function in header file - newbie VC++/CLI
- From: Tom Serface
- Re: Function in header file - newbie VC++/CLI
- From: Duane Hebert
- Re: Function in header file - newbie VC++/CLI
- From: Tom Serface
- Function in header file - newbie VC++/CLI
- Prev by Date: Re: Function in header file - newbie VC++/CLI
- Next by Date: Re: Function in header file - newbie VC++/CLI
- Previous by thread: Re: Function in header file - newbie VC++/CLI
- Next by thread: Re: Function in header file - newbie VC++/CLI
- Index(es):
Relevant Pages
|