I've been using C for some time now and I would like to take my first leap
into C++. I should warn you that I have little or no experience with visual
C++, though I do have some experience with different OOP languages.
I am using Microsoft Visual C++ 6.0.
I would like to create a very simple program to begin with:
A dialog box, say 320x240 in size, with file->exit and help->about menus.
Inside the box will be an input field where you type in your number, and a
button that says 'Go'.
Under that will be another text field which will give you 2* what you typed
previously if it's a number, otherwise it pops up with an error box saying
"Please enter only integers and decimals into the box".
So this is what I have done so far:
Created a new "Win32 application" project called "thetest".
I then create a new "C++ Source File" called "thesource" and add it to the
workspace "thetest".
I go up to 'insert -> resource -> menu' and create the menu
I save the resource as 'menu.rc' and 'menu.rc' to the 'Resource Files'
folder in the 'File View'
This is about as far as I can get without a tutorial or instructions to get
me further.
I'm not sure how to access the resources I have included to the project from
the C++ source file.
If someone could followup with either instructions or a URL that can run me
through this step-by-step, it would be very handy. Thanks.
Also, How do I remove files/resources from my workspace? There is no
'delete' item in the right-click menu!
Thanks.
Jul 22 '05
57 2823
"Kevin Torr" <ke*******@hotmail.com> wrote in message
news:40***********************@news.syd.swiftdsl.c om.au... Makes sense. I've done a fair bit of C command-line stuff, and the reason
I wanted to move into C++ was because of it's GUI capabilities. Is there really that much difference between C and C++ that I need to start from
the command line all over again? :(
C++ doesn't have any GUI capabilities! Only products like Visual C++ etc.
have GUI capabilities. A straight C++ compiler will not give you that.
Visual C++ is a C++ compiler plus a whole bunch of Windows stuff built
together into a development environment. You can use the development
environment to organize your code and still write what are called "console
applications" in Visual C++. That's the only way you'll be able to use
"pure" C++. Otherwise, you've got 2 whole subjects to learn.
"Kevin Torr" <ke*******@hotmail.com> wrote in message
news:40***********************@news.syd.swiftdsl.c om.au... Makes sense. I've done a fair bit of C command-line stuff, and the reason
I wanted to move into C++ was because of it's GUI capabilities. Is there really that much difference between C and C++ that I need to start from
the command line all over again? :(
C++ doesn't have any GUI capabilities! Only products like Visual C++ etc.
have GUI capabilities. A straight C++ compiler will not give you that.
Visual C++ is a C++ compiler plus a whole bunch of Windows stuff built
together into a development environment. You can use the development
environment to organize your code and still write what are called "console
applications" in Visual C++. That's the only way you'll be able to use
"pure" C++. Otherwise, you've got 2 whole subjects to learn.
John Tsiombikas (Nuclear / the Lab) wrote: Leor Zolman wrote: On Sun, 04 Apr 2004 16:55:23 GMT, "Pete" <x@x.x> wrote:No, Qt uses some sort of preprocessor so you can have "slot" functions and other stuff. Boost is written in pure C++ AFAIK. Well, all I had to go on (since I've never even heard of "Qt" before this thread) was what Steven T. Hatton wrote, that "it is all standard C++". As we've learned around here, Steven is never wrong. -leor
Try not to trust blindly something someone said, since we all make mistakes or missunderstand questions. Qt may be written in standard C++, however you cannot compile a program that uses Qt with a C++ compiler directly.
That's actually only partially true. You /can/ do everything moc does by
hand, and thus create a fully C++ Standard compliant program which could
also be compiled through the full Qt process using moc. The code written
to be processed by moc is (AFAIK) Standard C++. The part people seem to
believe is non-standard consists of macro invocations.
It has it's own preprocessor that you must use before that.
That really isn't true. You /can/ do it by hand. Moc is simply a
convenience. So convenient in fact that not using it would be silly.
Now image what would happen if every library out there required a custom preprocessing stage...
This argument is a bit spurious in view of the fact that most of the reason
for creating moc was to compensate for the lack of features in the C++
Standard of the time as well as the lack of support in the C++ compilers
for features that could otherwise have been used to achieve the same ends.
One a personal note, I prefer GTKmm when I need GUI stuff. It is as easy to use as Qt (which admittedly appart from the signals&slots thing has a pretty well-structured interface), but you can also use it through standard C++
Qt has been fairly successfull. It doesn't look as though the Troll are
overly interested in tossing moc, though they seem to acknowledge the
technical feasibility of doing so. Mozilla uses a different approach which
is similar to moc in that it requires an IDL-based preprocessor available
(IIRC) through GTK.
I'm not wholly unsympathetic to your desire to avoid the proliferation of
additional preprocessors and other such gadgetry, OTOH, one might attempt
the same argument against using gnu autotools. There are partial
alternatives, to include TrollTech's qmake (a very nice tool, I will add),
but the gnu autotools have a significant track record of success.
There's also another argument for my favoring Qt. It may seem unreasonable
in terms of software development, but I suspect, in the big picture, it
makes a lot of sense. Loyalty.
--
p->m == (*p).m == p[0].m http://www.kdevelop.org http://www.suse.com http://www.mozilla.org
John Tsiombikas (Nuclear / the Lab) wrote: Leor Zolman wrote: On Sun, 04 Apr 2004 16:55:23 GMT, "Pete" <x@x.x> wrote:No, Qt uses some sort of preprocessor so you can have "slot" functions and other stuff. Boost is written in pure C++ AFAIK. Well, all I had to go on (since I've never even heard of "Qt" before this thread) was what Steven T. Hatton wrote, that "it is all standard C++". As we've learned around here, Steven is never wrong. -leor
Try not to trust blindly something someone said, since we all make mistakes or missunderstand questions. Qt may be written in standard C++, however you cannot compile a program that uses Qt with a C++ compiler directly.
That's actually only partially true. You /can/ do everything moc does by
hand, and thus create a fully C++ Standard compliant program which could
also be compiled through the full Qt process using moc. The code written
to be processed by moc is (AFAIK) Standard C++. The part people seem to
believe is non-standard consists of macro invocations.
It has it's own preprocessor that you must use before that.
That really isn't true. You /can/ do it by hand. Moc is simply a
convenience. So convenient in fact that not using it would be silly.
Now image what would happen if every library out there required a custom preprocessing stage...
This argument is a bit spurious in view of the fact that most of the reason
for creating moc was to compensate for the lack of features in the C++
Standard of the time as well as the lack of support in the C++ compilers
for features that could otherwise have been used to achieve the same ends.
One a personal note, I prefer GTKmm when I need GUI stuff. It is as easy to use as Qt (which admittedly appart from the signals&slots thing has a pretty well-structured interface), but you can also use it through standard C++
Qt has been fairly successfull. It doesn't look as though the Troll are
overly interested in tossing moc, though they seem to acknowledge the
technical feasibility of doing so. Mozilla uses a different approach which
is similar to moc in that it requires an IDL-based preprocessor available
(IIRC) through GTK.
I'm not wholly unsympathetic to your desire to avoid the proliferation of
additional preprocessors and other such gadgetry, OTOH, one might attempt
the same argument against using gnu autotools. There are partial
alternatives, to include TrollTech's qmake (a very nice tool, I will add),
but the gnu autotools have a significant track record of success.
There's also another argument for my favoring Qt. It may seem unreasonable
in terms of software development, but I suspect, in the big picture, it
makes a lot of sense. Loyalty.
--
p->m == (*p).m == p[0].m http://www.kdevelop.org http://www.suse.com http://www.mozilla.org
On Sun, 4 Apr 2004 19:16:35 +1000
"Kevin Torr" <ke*******@hotmail.com> wrote: I've been using C for some time now and I would like to take my first leap into C++. I should warn you that I have little or no experience with visual C++, though I do have some experience with different OOP languages.
I am using Microsoft Visual C++ 6.0.
I would like to create a very simple program to begin with:
A dialog box, say 320x240 in size, with file->exit and help->about menus. Inside the box will be an input field where you type in your number, and a button that says 'Go'. Under that will be another text field which will give you 2* what you typed previously if it's a number, otherwise it pops up with an error box saying "Please enter only integers and decimals into the box".
So this is what I have done so far: Created a new "Win32 application" project called "thetest". I then create a new "C++ Source File" called "thesource" and add it to the workspace "thetest". I go up to 'insert -> resource -> menu' and create the menu I save the resource as 'menu.rc' and 'menu.rc' to the 'Resource Files' folder in the 'File View'
This is about as far as I can get without a tutorial or instructions to get me further. I'm not sure how to access the resources I have included to the project from the C++ source file.
If someone could followup with either instructions or a URL that can run me through this step-by-step, it would be very handy. Thanks.
Also, How do I remove files/resources from my workspace? There is no 'delete' item in the right-click menu!
Thanks.
First of all. Do you know how to do this in C?
--
Kamratligen,
Davor
My GPG-key can be found at http://blupp.net/~davor/davor.key
"Davor" <da****@comhem.se> wrote in message
news:20040616012701.2ffa4e63.da****@comhem.se... On Sun, 4 Apr 2004 19:16:35 +1000 "Kevin Torr" <ke*******@hotmail.com> wrote:
I've been using C for some time now and I would like to take my first
leap into C++. I should warn you that I have little or no experience with
visual C++, though I do have some experience with different OOP languages.
I am using Microsoft Visual C++ 6.0.
I would like to create a very simple program to begin with:
A dialog box...
This is all Visual C++ and Windows specific stuff. You'll have to go to the
microsoft.public newsgroups for help with that.
>> "Kevin Torr" <ke*******@hotmail.com> wrote: I've been using C for some time now and I would like to take my first leap into C++. I should warn you that I have little or no experience with visual C++, though I do have some experience with different OOP languages.
This is all Visual C++ and Windows specific stuff. You'll have to go to the microsoft.public newsgroups for help with that.
Other suitable news groups include:
comp.os.ms-windows.programmer.misc
comp.os.ms-windows.programmer.win32
Also a good C++ Win32 tutorial can be found here: http://www.relisoft.com/win32/
Jussi Jumppanen
Author of: Zeus for Windows (All new version 3.92 out now)
"The C/C++, Java, HTML, FTP, Python, PHP, Perl programmer's editor"
Home Page: http://www.zeusedit.com
Hi
On Tue, 15 Jun 2004 23:27:08 +0000, Davor wrote: First of all. Do you know how to do this in C?
Second, why isn't this on a MS specific group?
TTFN
Paul This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: julio |
last post by:
Sorry but there is no another way, c# .net and mono are going to rip
python, not because python is a bad lenguage, but because is to darn old
and it refuses to innovate things, to fix wrong things,...
|
by: Fresh Air Rider |
last post by:
Hi
I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by
70%.
Surely this is going to de-skill or dumb down the developer's task and
open up the task of web development to less...
|
by: nospam |
last post by:
HtmlSelect has a method called OnServerChange that supposed to detect
whether the control (select) has changed on a postback.
This is not all that useful.
It should be like the asp.net...
|
by: Rod |
last post by:
In Dino Esposito's book, "Programming Microsoft ASP.NET", there is a chapter
titled, "ASP.NET State Management". There is a section in there discussing
session state sometimes going away. He...
|
by: needin4mation |
last post by:
Is the framework going to change so that on sorting it will have some
way of letting you sort two ways, asc or desc?
Is the framework's paging going to change so that it does not bring
back the...
|
by: Rob R. Ainscough |
last post by:
I keep hearing persistant rumors (along with my own experience) that .NET is
going to be abandon by Microsoft due to performance & security issues? I
realize no one from Microsoft is likely to...
|
by: Jeff |
last post by:
Looking for your highly subjective opinions (from those of you who have been
working extensively with VS 2005).
I have a client that needs/wants a complete rewrite of an existing
application. I...
|
by: MikeY |
last post by:
Hi everyone,
I posted a question very early today, but maybe I wasn't articulate enough.
Hopefully this will illicit a response
I've created a windows form and a User Control. This is a...
|
by: Bigeloww |
last post by:
Dollar is going to rise!
Good news for US
http://my.usatodays.us/money/myusatoday.html
----------------------------------
http://community.ihostasp.net
ASP.NET Developer Community
|
by: Rickster66 |
last post by:
As Instructed this is a new thread regarding my original post: "Select Only 10 Columns Going Back"
I'm sorry for the late response. I've been gathering up information and carefully with as much...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |