Re: Function in header file - newbie VC++/CLI
- From: "Duane Hebert" <spoo@xxxxxxxxx>
- Date: Tue, 3 Jul 2007 14:24:30 -0400
"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: Jacek
- Re: Function in header file - newbie VC++/CLI
- From: Tom Serface
- Re: Function in header file - newbie VC++/CLI
- From: Jacek
- 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
- Function in header file - newbie VC++/CLI
- Prev by Date: Re: High throughput disk write: CreateFile/WriteFile?
- Next by Date: Re: Timer Priority
- 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
|
Loading