Re: C++ Code in header files

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Carl Daniel [VC++ MVP] (cpdaniel_remove_this_and_nospam_at_mvps.org.nospam)
Date: 09/17/04


Date: Fri, 17 Sep 2004 11:11:22 -0700


"Mauro Tronto" <mauro.tronto@tmxp.it> wrote in message
news:%23ci9m5NnEHA.3988@tk2msftngp13.phx.gbl...
> Hello, If you start a new c++ .net project (windows form) the IDE shows
> window and generate 2 files (.cpp and .h). If I simple drag and drop
> button control into the form and double click the button, the IDE shows me
> a method "template" where I can write my code. I wonder why the IDE
> creates the template in .h (header) file instead of .cpp file. I've always
> write scheleton C++ class in header file and implementation code in .cpp
> file.

Bottom line because the wizards were designed to generate C# code which does
not use a separate header file.

-cd


Quantcast