Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

C++ Code in header files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mauro Tronto - 17 Sep 2004 18:47 GMT
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.
Thanks for help
Mauro
Carl Daniel [VC++ MVP] - 17 Sep 2004 19:11 GMT
> 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
[quoted text clipped - 3 lines]
> 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
Mauro Tronto - 17 Sep 2004 19:22 GMT
Thanks Carl for reply.
Are there any changes in Whidbey? I've see that in C++ 2005 express is just
the same: code in header file ;-(
Mauro

>> 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
[quoted text clipped - 8 lines]
>
> -cd
Ronald Laeremans [MSFT] - 17 Sep 2004 20:48 GMT
No changes for Whidbey. We investigated changing this, but it turns out the
single file assumption is baked very deeply in the architecture of the
designers. We are looking ways to change it in future releases, but it will
be far from trivial.

Ronald Laeremans
Visual C++ team

> Thanks Carl for reply.
> Are there any changes in Whidbey? I've see that in C++ 2005 express is
[quoted text clipped - 13 lines]
>>
>> -cd

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.