Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalserial com port Pin
syed abbdul qavi30-Jan-05 23:26
syed abbdul qavi30-Jan-05 23:26 
GeneralRe: serial com port Pin
Cedric Moonen30-Jan-05 23:35
Cedric Moonen30-Jan-05 23:35 
GeneralRe: serial com port Pin
syed abbdul qavi7-Feb-05 18:30
syed abbdul qavi7-Feb-05 18:30 
GeneralGenerated #include lines format in VC 7.1 Pin
rbid30-Jan-05 22:46
rbid30-Jan-05 22:46 
GeneralJPG2AVI Pin
yingkou30-Jan-05 20:51
yingkou30-Jan-05 20:51 
GeneralRe: JPG2AVI Pin
Ted Ferenc31-Jan-05 0:16
Ted Ferenc31-Jan-05 0:16 
GeneralRe: JPG2AVI Pin
yingkou31-Jan-05 13:43
yingkou31-Jan-05 13:43 
General.Net Hello World - Help! Pin
Nick_Fi30-Jan-05 20:31
Nick_Fi30-Jan-05 20:31 
Hi All,

I try to create some simple applications using WindowsForms. I use Visual Studio .Net 2003, Academic version.
Lets say I have a form and a button.
When I double click on the button, I create an event for click. Then I can
write all the code to deal with that event, and everything works fine. The
only problem I have is that the code gets written in the header file, instead
of being placed in the cpp file.
I have some experience programming with Borland C++ Builder, and I compare the results with the ones from BCB.
I expect that when I add an event, the function definition should be placed in the header file, and the function implementation, in the cpp file.
Did I miss a setup option, or is there an option set up wrong? I don't consider normal that all the code gets written in the header file. What is the right procedure, so that when someone adds an event for a button, the event function to be added to the cpp file?
I tried to move the function from the header file to the cpp file, and to leave the definition of it in the header, but now I get a lot of errors.
To make it worse, the samples provided by Microsoft don't contain code in C++, only VB and C#. Is C++ dying, should I start learning C# instead?

Regards,
Nicolae
GeneralRe: .Net Hello World - Help! Pin
Yulianto.30-Jan-05 21:50
Yulianto.30-Jan-05 21:50 
GeneralRe: .Net Hello World - Help! Pin
toxcct31-Jan-05 4:54
toxcct31-Jan-05 4:54 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.31-Jan-05 13:09
Yulianto.31-Jan-05 13:09 
GeneralRe: .Net Hello World - Help! Pin
toxcct1-Feb-05 2:10
toxcct1-Feb-05 2:10 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.1-Feb-05 14:23
Yulianto.1-Feb-05 14:23 
GeneralRe: .Net Hello World - Help! Pin
jhwurmbach1-Feb-05 1:39
jhwurmbach1-Feb-05 1:39 
GeneralRe: .Net Hello World - Help! Pin
Selvam R31-Jan-05 1:06
professionalSelvam R31-Jan-05 1:06 
GeneralRe: .Net Hello World - Help! Pin
Nick_Fi31-Jan-05 2:46
Nick_Fi31-Jan-05 2:46 
QuestionLink Error? Pin
Larsson30-Jan-05 20:16
Larsson30-Jan-05 20:16 
AnswerRe: Link Error? Pin
rwestgraham30-Jan-05 22:06
rwestgraham30-Jan-05 22:06 
GeneralRe: Link Error? Pin
Larsson30-Jan-05 23:25
Larsson30-Jan-05 23:25 
GeneralRe: Link Error? Pin
rwestgraham31-Jan-05 6:30
rwestgraham31-Jan-05 6:30 
AnswerRe: Link Error? Pin
aj168231-Jan-05 16:08
aj168231-Jan-05 16:08 
Generalbitsets Pin
HellFeuer30-Jan-05 19:48
HellFeuer30-Jan-05 19:48 
GeneralRe: bitsets Pin
Chris Losinger31-Jan-05 4:24
professionalChris Losinger31-Jan-05 4:24 
GeneralDebug Assertion failed Pin
aj168230-Jan-05 19:44
aj168230-Jan-05 19:44 
GeneralRe: Debug Assertion failed Pin
ThatsAlok30-Jan-05 21:45
ThatsAlok30-Jan-05 21:45 

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.