Click here to Skip to main content
15,915,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenProccess Failure Pin
Jebus898-Jul-07 12:04
Jebus898-Jul-07 12:04 
GeneralRe: OpenProccess Failure Pin
David Crow9-Jul-07 2:57
David Crow9-Jul-07 2:57 
GeneralRe: OpenProccess Failure Pin
Stephen Hewitt8-Jul-07 14:48
Stephen Hewitt8-Jul-07 14:48 
GeneralRe: OpenProccess Failure Pin
Perspx8-Jul-07 19:31
Perspx8-Jul-07 19:31 
AnswerRe: OpenProccess Failure Pin
Hamid_RT8-Jul-07 19:32
Hamid_RT8-Jul-07 19:32 
GeneralRe: OpenProccess Failure Pin
Jebus898-Jul-07 22:14
Jebus898-Jul-07 22:14 
GeneralRe: OpenProccess Failure Pin
DevMentor.org12-Jul-07 9:42
DevMentor.org12-Jul-07 9:42 
QuestionDeclaring classes to compiler before declarations Pin
irrdev8-Jul-07 9:22
irrdev8-Jul-07 9:22 
I know that it is possible to declare a class BEFORE the class has actually been constructed and defined. Here is an example:
int main()<br />
{<br />
class CHello;<br />
CHello tmp;<br />
return 0;<br />
}<br />
<br />
class CHello<br />
{<br />
}


As you can see, the line class CHello tell the compiler that such a class exists later on the code. However, how is it possible to declare the functions found within the class in the same way? I tried the code below, and it doesn't work.
int main()<br />
{<br />
class CHello;<br />
void CHello::create();<br />
CHello tmp;<br />
return 0;<br />
}<br />
<br />
class CHello<br />
{<br />
 void create()<br />
 {<br />
 }<br />
}


Any solutions to this problem?


-- modified at 16:14 Sunday 8th July, 2007

Feed Launch .NET
AnswerRe: Declaring classes to compiler before declarations Pin
Christian Graus8-Jul-07 9:27
protectorChristian Graus8-Jul-07 9:27 
GeneralRe: Declaring classes to compiler before declarations Pin
irrdev8-Jul-07 10:11
irrdev8-Jul-07 10:11 
AnswerRe: Declaring classes to compiler before declarations Pin
Michael Dunn8-Jul-07 10:18
sitebuilderMichael Dunn8-Jul-07 10:18 
QuestionGetting key hierarchy from HKEY... Pin
dontknowitall8-Jul-07 9:02
dontknowitall8-Jul-07 9:02 
AnswerRe: Getting key hierarchy from HKEY... Pin
Hamid_RT8-Jul-07 19:48
Hamid_RT8-Jul-07 19:48 
QuestionLoadLibrary and GetProcAddress Help Pin
vegito6168-Jul-07 8:37
vegito6168-Jul-07 8:37 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery8-Jul-07 9:03
Mark Salsbery8-Jul-07 9:03 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
dontknowitall8-Jul-07 9:10
dontknowitall8-Jul-07 9:10 
QuestionRe: LoadLibrary and GetProcAddress Help Pin
Hamid_RT8-Jul-07 19:43
Hamid_RT8-Jul-07 19:43 
AnswerRe: LoadLibrary and GetProcAddress Help Pin
vegito6168-Jul-07 20:10
vegito6168-Jul-07 20:10 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery9-Jul-07 8:43
Mark Salsbery9-Jul-07 8:43 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
vegito6169-Jul-07 23:23
vegito6169-Jul-07 23:23 
GeneralRe: LoadLibrary and GetProcAddress Help Pin
Mark Salsbery10-Jul-07 5:37
Mark Salsbery10-Jul-07 5:37 
QuestionRedraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 5:53
dkmr8-Jul-07 5:53 
AnswerRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 9:07
Bogdan Apostol8-Jul-07 9:07 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
dkmr8-Jul-07 10:47
dkmr8-Jul-07 10:47 
GeneralRe: Redraw Child Windows in ActiveX Control Pin
Bogdan Apostol8-Jul-07 10:55
Bogdan Apostol8-Jul-07 10:55 

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.