Thread: [Dev-C++] Using the Resource Editor
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Fernandes E. <Eve...@aa...> - 2002-05-13 14:38:04
|
Hi all, I'm an experienced Unix C/C++ programmer. A while ago I tried my first steps on the Windows programming ice, and although I've slipped a few times, I'm slowly getting my head around it. I've managed to conjure up some windows, get event handling going, etc. I've chosen Dev C++ as my development tool, and despite some interesting comments I read in previous messages, I'm pretty happy with it. (Hey, the price is right! :)) Anyway, I was wondering if anyone could point me in the direction of a good tutorial for the Resource Editor, provided with Dev C++. I've searched far and wide, but I can't seem to get any useful information regarding setting up a rsrc.rc file. If anyone could help me, it would be most appreciated. Thanks in advance, Sander Fernandes ************************************************************************ DISCLAIMER The information contained in this e-mail is confidential and is intended for the recipient only. If you have received it in error, please notify us immediately by reply e-mail and then delete it from your system. Please do not copy it or use it for any other purposes, or disclose the content of the e-mail to any other person or store or copy the information in any medium. The views contained in this e-mail are those of the author and not necessarily those of GEHE Group companies. ************************************************************************ |
|
From: Hongli L. <h....@ch...> - 2002-05-13 16:09:30
|
On Mon, 2002-05-13 at 16:38, Fernandes Evert wrote: > Hi all, > > I'm an experienced Unix C/C++ programmer. A while ago I tried my first steps > on the Windows programming ice, and although I've slipped a few times, I'm > slowly getting my head around it. I've managed to conjure up some windows, > get event handling going, etc. > > I've chosen Dev C++ as my development tool, and despite some interesting > comments I read in previous messages, I'm pretty happy with it. (Hey, the > price is right! :)) > > Anyway, I was wondering if anyone could point me in the direction of a good > tutorial for the Resource Editor, provided with Dev C++. I've searched far > and wide, but I can't seem to get any useful information regarding setting > up a rsrc.rc file. > > If anyone could help me, it would be most appreciated. > > Thanks in advance, > > Sander Fernandes > > If setting up an icon for your program is what you need: Dev-C++ beta 3 will do this automatically for you. There may be some information on the MSDN site (http://msdn.microsoft.com) regarding resource scripts. |
|
From: Yeoh H. <ye...@ye...> - 2002-05-14 00:37:23
|
Hi, Here's a URL that might be useful to you. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/rc_6c s3.asp Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ Author of "How to Create an eBook Using Visual C++" Free Downloads at http://www.yeohhs.com ICT eBooks by Yeoh HS ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ----- Original Message ----- From: Fernandes Evert <Eve...@aa...> To: <dev...@li...> Sent: Monday, May 13, 2002 10:38 PM Subject: [Dev-C++] Using the Resource Editor > Hi all, > > I'm an experienced Unix C/C++ programmer. A while ago I tried my first steps > on the Windows programming ice, and although I've slipped a few times, I'm > slowly getting my head around it. I've managed to conjure up some windows, > get event handling going, etc. > > I've chosen Dev C++ as my development tool, and despite some interesting > comments I read in previous messages, I'm pretty happy with it. (Hey, the > price is right! :)) > > Anyway, I was wondering if anyone could point me in the direction of a good > tutorial for the Resource Editor, provided with Dev C++. I've searched far > and wide, but I can't seem to get any useful information regarding setting > up a rsrc.rc file. > > If anyone could help me, it would be most appreciated. > > Thanks in advance, > > Sander Fernandes > |
|
From: Bob W. <bo...@ph...> - 2002-05-16 03:33:19
|
----- Original Message ----- From: "Yeoh HS" <ye...@ye...> To: <dev...@li...> Sent: Monday, May 13, 2002 7:51 PM Subject: Re: [Dev-C++] Using the Resource Editor > Hi, > > Here's a URL that might be useful to you. > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/rc_6c > s3.asp That link returns: Page Cannot Be Found We apologize for the inconvenience, but the page you are seeking cannot be found in this location. |
|
From: Yeoh H. <ye...@ye...> - 2002-05-16 05:58:46
|
Hi, I just checked the URL and it works. My e-mail program truncated the URL. Please try again, the last part of the URL should be rc_6cs3.asp instead of "rc_6". Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ Author of "How to Create an eBook Using Visual C++" Free Downloads at http://www.yeohhs.com ICT eBooks by Yeoh HS ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ----- Original Message ----- From: Bob Wilson <bo...@ph...> To: Dev-C++ User Mailing List <dev...@li...> Sent: Thursday, May 16, 2002 11:35 AM Subject: Re: [Dev-C++] Using the Resource Editor > > ----- Original Message ----- > From: "Yeoh HS" <ye...@ye...> > To: <dev...@li...> > Sent: Monday, May 13, 2002 7:51 PM > Subject: Re: [Dev-C++] Using the Resource Editor > > > > Hi, > > > > Here's a URL that might be useful to you. > > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/rc_6c > > s3.asp > > > That link returns: > > Page Cannot Be Found > > > We apologize for the inconvenience, but the page you are seeking cannot be > found in this location. > > |
|
From: Bob W. <bo...@ph...> - 2002-05-19 01:35:51
|
Dear Zodiaq,
p.s. I have nothing against M$ software... most of it is veeery good, =
but when I see people saying : "This is the real problem, your =
environment or at least your email program." without any knowledge of =
what they are talking about it makes me angry... Bob - archives means =
the ones on the net... on the web page... somewhere near where you =
subscribed... look at the messages you posted in html and maybe you will =
know what Hongli Lai meant by saying: "HTML mail mess up the archives." =
and by the way - some viruses can be launched by OE without ANY user =
'active involvement'... this is also true for some other e-mail =
clients... safest way not to get infected is not use HTML in posts... =
HTML is for web pages and new m$ help format, not for sending =
messages... That's all... I tried to be as little rude as possible, =
wasn't I?
You have made one very significant mistake, and that is that I do not =
have any knowledge about what I am saying. You also miss the very =
significant point that I have been trying to make. Before I restate it, =
a bit of a response to your message. I know what a pain in the nether =
regions html can be if you are trying to do is to pull out the text or a =
web based archival system does not strip the html code. Sometimes it can =
be damn near undecipherable. Most email is sent with some sort of text =
formatting. Microsoft made the decision, for whatever reason, to use =
html rather than rtf or some other generic format.=20
In regards to the archives, it should not make a whit of difference how =
the message is formatted. It could be coded in the World War Two flower =
code used by the Japanese and formated in html and it will not "mess up =
the archive." It may occupy more space than one might desire or require =
some preprocessing (the flower code) before it can be read, but it does =
not corrupt the archive unless the archival algorithm is doing something =
exotic. A simple message database, with sort keys of the usual items, =
i.e., subject, body, sender, addressees, etc., does not care how the =
message is formated.=20
I agree that html grew from the process and requirements of web page =
development, but I do not agree that it is only for web pages and =
neither do many advertisers and newsletter writers. Certainly there are =
some viruses that can infect a system without or despite active user =
involvement. However, I do not believe that there have been any cases of =
a wide spread virus infection caused by the receipt and reading of an =
html encoded e-mail that was sent by or received from a Microsoft system =
using Outlook or Outlook Express. I'm fairly sure that all of the e-mail =
transmitted viruses have involved an executable file of some kind =
attached to or embedded in the e-mail which required user action to =
function. If that is not the case, please educate me.=20
Now for the restatement.=20
The purpose of communication is to transfer information from one place =
to another or from one person to another. The easier that communication =
is to understand, the more effective it is. To be really obtuse, if you =
only read and write German and I only send you messages in French, your =
level of understanding is going to be zero. On the other hand if I =
transmit the text of a first grade reader in German you will have =
complete understanding.=20
In addition to the obtuse "Je ne parle pas allemand" example above, =
there are several things which either enhance or inhibit good =
communications. Most significant in regards to discussions on this forum =
are:
1. Sufficient technical knowledge to understand the discussion.=20
2. An ability to write clear understandable English prose.=20
3. Message formatting.=20
Numbers one and two above are obvious, but the importance of number =
three is often overlooked. Disregarding or denegrating message formating =
is remarkable considering the care which most programmer take to produce =
programs in the style of the language so that other programmers will be =
able to understand the code.
Both of the following programs do the same thing. The only difference =
between them is that one is formatted with comments and the other has =
neither.=20
-------------------------------------------------------------------------=
-------
/************************************************************************=
*****/
/* =
*/
/* This program demonstrates looping using complex "while" =
statements. */
/* =
*/
/************************************************************************=
*****/
#include <iostream.h>
int main()
{
unsigned short small;
unsigned long large;
const unsigned short MAXSMALL =3D 65535;
=20
std::cout << "Enter a small number: ";
std::cin >> small;
std::cout << "Enter a large number: ";
std::cin >> large;
=20
std::cout << "Small: " << small << "...";
=20
// for each iteration, test three conditions
while (small < large && large > 0 && small < MAXSMALL)
{
// write a dot every 5k lines
if (small % 5000 =3D=3D 0)=20
{
std::cout << ".";
} =20
small++;
/************************************************************************=
*****/
/* =
*/
/* the line that follows deincrements the value of "large" by 2. =
*/
/* If it was: =
*/
/* =
*/
/* large-=3D13; =
*/
/* =
*/
/* it would deincrement the value of "large" by 13. It is the same as =
*/
/* writing in pascal: =
*/
/* =
*/
/* large :=3D large - 13; =
*/
/* =
*/
/************************************************************************=
*****/
large-=3D2;
}
=20
std::cout << "\nSmall: " << small
<< " Large: " << large << "\n\n";
=20
return 0;
}
-------------------------------------------------------------------------=
-------
#include <iostream.h>
int main(){unsigned short small;unsigned long large;const unsigned =
short MAXSMALL =3D 65535;std::cout << "Enter a small number: ";std::cin =
>> small;std::cout << "Enter a large number: ";std::cin >> =
large;std::cout << "Small: " << small << "...";while (small < large && =
large > 0 && small < MAXSMALL){if (small % 5000 =3D=3D 0){std::cout << =
".";}small++;large-=3D2;}std::cout << "\nSmall: " << small << " Large: " =
<< large << "\n\n";return 0;}
-------------------------------------------------------------------------=
-------
Obviously the first is preferable to the second.=20
Likewise formatted emails are easier to read and understand. Frankly =
there is no excuse for not using every tool to enhance understanding and =
better communications. That includes using the message formatting =
capabilities of the predominant e-mail programs. What does this have to =
do with C++ or mingw? Absolutely nothing, but it goes to the heart of =
effective communications which is the entire reason for this and every =
other discussion group. Also it is instructive to remember that dev-c++ =
is designed for the windows environment. Therefore it is more than =
reasonable to expect that anyone who participates in the discussions =
here would be able to receive, display, read, answer, and store messages =
in the format common to the platform for which dev-c++ is designed. =
Conversely, it is unreasonable for someone to complain when he/she =
receives messages in that format.=20
In regards to the archives on the server of the e-mail discussions, html =
based e-mails should not be a problem here either, but they are. The web =
archival system should be able to display an html message "htmlly" as =
well as one that is purely textual. Obviously that is not the case, but =
it should be. To me, the inconvenience posed by the html tags when you =
review an html based message archived on the web site is more than =
offset by the enhanced communications formatting offers to those who =
receive the message directly. That all assumes that the message is =
formatted in a way which does not detract from the communications. =
Please do not think that this paragraph is a slam directed at one or =
more individuals. It's not. It is simply a commentary on the level of =
maturity and sophistication of the Internet. We all tolerate things on =
the internet that we cause us to return software to the maker if it had =
the same errors or limitations we experience daily with various web =
sites.=20
That is why I took and still take the position that it is either an =
environment or e-mail program problem, and not a problem with html =
formatted e-mail messages.=20
Regards,
Bob
|
|
From: Ioannis V. <no...@ho...> - 2002-05-19 06:06:37
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Bob Wilson Sent: Sunday, May 19, 2002 4:38 AM To: Dev-C++ User Mailing List Subject: Re: Re[2]: [Dev-C++] Using the Resource Editor Dear Zodiaq, p.s. I have nothing against M$ software... most of it is veeery good, but when I see people saying : "This is the real problem, your environment or at least your email program." without any knowledge of what they are talking about it makes me angry... Bob - archives means the ones on the net... on the web page... somewhere near where you subscribed... look at the messages you posted in html and maybe you will know what Hongli Lai meant by saying: "HTML mail mess up the archives." and by the way - some viruses can be launched by OE without ANY user 'active involvement'... this is also true for some other e-mail clients... safest way not to get infected is not use HTML in posts... HTML is for web pages and new m$ help format, not for sending messages... That's all... I tried to be as little rude as possible, wasn't I? You have made one very significant mistake, and that is that I do not have any knowledge about what I am saying. You also miss the very significant point that I have been trying to make. Before I restate it, a bit of a response to your message. I know what a pain in the nether regions html can be if you are trying to do is to pull out the text or a web based archival system does not strip the html code. Sometimes it can be damn near undecipherable. Most email is sent with some sort of text formatting. Microsoft made the decision, for whatever reason, to use html rather than rtf or some other generic format. In regards to the archives, it should not make a whit of difference how the message is formatted. It could be coded in the World War Two flower code used by the Japanese and formated in html and it will not "mess up the archive." It may occupy more space than one might desire or require some preprocessing (the flower code) before it can be read, but it does not corrupt the archive unless the archival algorithm is doing something exotic. A simple message database, with sort keys of the usual items, i.e., subject, body, sender, addressees, etc., does not care how the message is formated [...] Bob, it is a religious issue. Indeed they are a strange religion. :) What they say about viruses is purely wrong, since the only thing they have to do is to disable scripting completely within their email client. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |
|
From: Hongli L. <h....@ch...> - 2002-05-19 09:27:52
|
On Sun, 2002-05-19 at 03:38, Bob Wilson wrote: > Most email is sent with some sort of text formatting. I don't know what kind of email you recieve, but most email I recieve do *not* contain formatting. > I agree that html grew from the process and requirements of web page development, but I do not agree that it is only for > web pages and neither do many advertisers and newsletter writers. If course advertisers (read: spammers) use HTML. They are trying to get your attention by using pretty moving graphics and other "cool stuff". But we're not advertising here, we're sending simple messages to a mailing list! > Microsoft system using Outlook or Outlook Express. I'm fairly sure that all of the e-mail transmitted viruses have involved > an executable file of some kind attached to or embedded in the e-mail which required user action to function. If that is not > the case, please educate me. Ever heard of BubbleBoy? > > Obviously the first is preferable to the second. > Why does one need HTML in order to make code look like the first one? You do that in plain text too using press Enter and Tab/Space, what does HTML have to do with this? And the first example doesn't contain any formatting at all, it just idents every line. It does not look so different from plain text to me, except that the fonts are horribly small because of the HTML. > Likewise formatted emails are easier to read and understand. Ehm... where's the formatting? I don't see it. So why use HTML when there's no formatting? > Frankly there is no excuse for not using every tool to enhance > understanding and better communications. That includes using the > message formatting capabilities of the predominant e-mail programs. There is an excuse: and the excuse is that your "tool to enhance better communication" can make things only worse on anything other than Outlook Express or Windows. And here's another excuse: you're not using the tools to enhance communication. Where's the formatting in this email? The only formatting I see is the bold text quoting Zodiaq. I fail to see how that's any different from using plain ">" characters, because any modern and decent email client highlights lines that begin with ">" so that you can immediately see that it's a quote. > Also it is instructive to remember that > dev-c++ is designed for the windows environment. Therefore it is more > than reasonable to expect that anyone who participates in the > discussions here would be able to receive, display, read, answer, and > store messages in the format common to the platform for which dev-c++ > is designed. But all the developers of Dev-C++ spend more time in Linux than on Windows. You're only making things harder for us. > In regards to the archives on the server of the e-mail discussions, > html based e-mails should not be a problem here either, but they are. > The web archival system should be able to display an html message > "htmlly" as well as one that is purely textual. Obviously that is not > the case, but it should be. To me, the inconvenience posed by the html > tags when you review an html based message archived on the web site > is more than offset by the enhanced communications formatting offers > to those who receive the message directly. Like I said before: you're not using much formatting in this email, thus you aren't "enhancing" *anything*. Formatting has it's purpose, but in *simple email messages*, with almost no formatting, HTML is simply useless. You can achieve the same formatting by using plain text. Do you want to quote something? Prepend ">" to a line and the email client will highlight it for you. Do you want bold text? Do it like *this* and the text between the asteriks characters will become bold. How's that any different from using HTML to format text? |
|
From: Bob W. <bo...@ph...> - 2002-05-20 14:28:25
|
I don't know what kind of email you recieve, but most email I recieve = do *not* contain formatting. Most of mine comes formatted. This particular news group or forum is an = exception.=20 If course advertisers (read: spammers) use HTML. They are trying to = get your attention by using pretty moving graphics and other "cool = stuff". But we're not advertising here, we're sending simple messages to = a mailing list! Sorry, but you can not have it both ways. You orginally said that html = was only for web pages. I responded that advertisers and newsletters = show that is not true. Your statement above contradicts your original, = and, if you use Aristotle's criteria regarding arguments that contradict = themselves invalidate the original argument, your objection to html in = email is shown to be empty and/or void.=20 Ever heard of BubbleBoy? No. Tell me about it. Why does one need HTML in order to make code look like the first one? = You do that in plain text too using press Enter and Tab/Space, what does = HTML have to do with this? And the first example doesn't contain any = formatting at all, it just idents every line. It does not look so = different from plain text to me, except that the fonts are horribly = small because of the HTML. Ehm... where's the formatting? I don't see it. So why use HTML when = there's no formatting? There is an excuse: and the excuse is that your "tool to enhance = better communication" can make things only worse on anything other than = Outlook Express or Windows. And here's another excuse: you're not using = the tools to enhance communication. Where's the formatting in this = email? The only formatting I see is the bold text quoting Zodiaq. I fail = to see how that's any different from using plain ">" characters, because = any modern and decent email client highlights lines that begin with ">" = so that you can immediately see that it's a quote. If you can not see the difference, I cannot help you, but I will give = you a cryptic clue. The clue is "G=FCttenberg." But all the developers of Dev-C++ spend more time in Linux than on = Windows. You're only making things harder for us. I return to my original statements. First, it is your environment that = is the problem. Second, if Dev-C++ is designed for windows, the entire = response, archival environment should be html email friendly.=20 Like I said before: you're not using much formatting in this email, = thus you aren't "enhancing" *anything*. Formatting has it's purpose, but in *simple email messages*, with = almost no formatting, HTML is simply useless. You can achieve the same = formatting by using plain text. Do you want to quote something? Prepend = ">" to a line and the email client will highlight it for you. Do you = want bold text? Do it like *this* and the text between the asteriks = characters will become bold. How's that any different from using HTML to = format text? I would be willing to bet that I was sending and receiving emails before = 99% of the people who are using Dev-C++ did. Even if you have been = sending and receiving emails for 50 years, the ">" character acts as an = interrupter in the reading process. You may be use to reading emails = with the ">" as a prominent feature, but pyschological, physiological, = and marketing studies have shown that any unintelligble character = inhibits the readability of any document. Obviously the more frequently = someone deals with textual material that is corrupted with such = characters, the less he/she is affected by it, but the effect never = disappears.=20 Ioannis said that it is a "religious war." I will not go that far, but I = do submit that it is an elitist carry over from the days when it was not = possible to have any sort of formatting in emails other than sentences, = paragraphs, and spaces, and it would not have been desireable in any = case because of the 300 baud modem restriction. All of that said, the = last thing I wish to cause is a frustration induced heart attack in = either the Dev-C++ or mingw communities. Therefore, even though the = progressive solution is for all of the text-only-fanatics to leave their = 1960's foxholes, I will make this the last intentionally html formatted = email response in this limited environment. However, since my preference = is for formatted emails, I will appologize in advance if I forget to = turn on the formatting when I originate a thread.=20 Regards, Bob Wilson |
|
From: Hongli L. <h....@ch...> - 2002-05-20 15:24:26
|
On Mon, 2002-05-20 at 16:30, Bob Wilson wrote: > Sorry, but you can not have it both ways. > You orginally said that html was only for web pages. > I responded that advertisers and newsletters show that is not true. > Your statement above contradicts your original, and, if you use > Aristotle's criteria regarding arguments that contradict themselves > invalidate the original argument, your objection to html in email is > shown to be empty and/or void. I said HTML is supposed to be used in webpages, and that spammers use HTML in mail to lure people. How does that contradict....? > Ever heard of BubbleBoy? > No. Tell me about it. All you have to do is click on an email. Outlook Express previews the email and the virus activates itself automatically. You don't have to open *any* attachment at all, the virus activates itself without user interaction. |