I've just gotten this software for a class and I'm supposed to write a
program. I know the DOS parameters that would need to be written, but I
thought I'd go for some extra credit and do it as a Windows application. Then
I realized that as nice as that sounds I have no idea where the code that
would be in my program, goes.
So these are my 3 questions:
One: How do I change the background of the program to be some sort of image or
something, the grey is kind of dull for what we're doing.
Two: Where do I put my code in the first place within the software?
Three: How do I tell it to make a text box that can be checked for data inside
it, aka, age or what not.
Appreciative in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all be aware that Dev-C++ (or rather the MinGW/GCC compiler is uses)
cannot produce a 'DOS' program. What you are talking about is a "Console Mode"
program; it is still a Windows program, just not a "Windows GUI" program,
which is I guess what you mean?
I doubt that you will get extra credit by going 'off-syllabus'. Possibly quite
the opposite; how will your tutor apply the marking scheme if you don't stick
to the remit!?
Also if the intent of the course is to learn C or C++, then learning Win32 API
programming is not in scope. I strongly suggest that you do not attempt this
without talking to your tutor about it first.
Dev-C++ is not a great tool for Win32 development. The facilities it provides
for Win32 development are minimal, and very few developers develop GUI
applications that way; it is just too unproductive. However if you insist, you
need either or .
As a starting point, you could use the Dev-C++ WIndows GUI template in the new
project dialog, or one of the examples in the c:\dev-cpp\examples folder (copy
the examples to a new location first, not in c:\dev-cpp). However you will see
that there is a lot of 'overhead' code even in the most basic GUI application;
if you choose to hand such code in as an assignment, be aware that you may be
required to explain it all; so if you have no idea what it all does, do not
try to look clever, by using it in an assignment; you should only get marks
for what you know, and the marking scheme most probably only gives credit for
what has been taught.
You might suggest to you tutor that Dev-C++ is not a particularly good
courseware. It is no longer actively maintained or supported, and its debugger
sucks. If you are not taught and encouraged to use a debugger on this course,
you need to ask why. After the compiler itself, it is the single most useful
productivity tool in your bag. Suggest ; it is free, fully featured, has an
excellent IDE and the best debugger in the industry.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-12-30
Thanks cpns for informative reply, I like to read your post, Its completely
mind blowing and i will share this with another to provide them nice
information about this Windows project .
Keep it up.
Klocwork.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You may be doing your company a disservice by advertising it in your posts. If
Klocwork are using Dev-C++, they are not the professional organisation I
thought they were!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just gotten this software for a class and I'm supposed to write a
program. I know the DOS parameters that would need to be written, but I
thought I'd go for some extra credit and do it as a Windows application. Then
I realized that as nice as that sounds I have no idea where the code that
would be in my program, goes.
So these are my 3 questions:
One: How do I change the background of the program to be some sort of image or
something, the grey is kind of dull for what we're doing.
Two: Where do I put my code in the first place within the software?
Three: How do I tell it to make a text box that can be checked for data inside
it, aka, age or what not.
Appreciative in advance!
First of all be aware that Dev-C++ (or rather the MinGW/GCC compiler is uses)
cannot produce a 'DOS' program. What you are talking about is a "Console Mode"
program; it is still a Windows program, just not a "Windows GUI" program,
which is I guess what you mean?
I doubt that you will get extra credit by going 'off-syllabus'. Possibly quite
the opposite; how will your tutor apply the marking scheme if you don't stick
to the remit!?
Also if the intent of the course is to learn C or C++, then learning Win32 API
programming is not in scope. I strongly suggest that you do not attempt this
without talking to your tutor about it first.
Dev-C++ is not a great tool for Win32 development. The facilities it provides
for Win32 development are minimal, and very few developers develop GUI
applications that way; it is just too unproductive. However if you insist, you
need either or .
As a starting point, you could use the Dev-C++ WIndows GUI template in the new
project dialog, or one of the examples in the c:\dev-cpp\examples folder (copy
the examples to a new location first, not in c:\dev-cpp). However you will see
that there is a lot of 'overhead' code even in the most basic GUI application;
if you choose to hand such code in as an assignment, be aware that you may be
required to explain it all; so if you have no idea what it all does, do not
try to look clever, by using it in an assignment; you should only get marks
for what you know, and the marking scheme most probably only gives credit for
what has been taught.
You might suggest to you tutor that Dev-C++ is not a particularly good
courseware. It is no longer actively maintained or supported, and its debugger
sucks. If you are not taught and encouraged to use a debugger on this course,
you need to ask why. After the compiler itself, it is the single most useful
productivity tool in your bag. Suggest ; it is free, fully featured, has an
excellent IDE and the best debugger in the industry.
: http://www.charlespetzold.com/pw5/
: http://www.winprog.org/tutorial/
: http://www.microsoft.com/Express/VC/
Thanks cpns for informative reply, I like to read your post, Its completely
mind blowing and i will share this with another to provide them nice
information about this Windows project .
Keep it up.
Klocwork.com
You may be doing your company a disservice by advertising it in your posts. If
Klocwork are using Dev-C++, they are not the professional organisation I
thought they were!