dev-cpp-users Mailing List for Dev-C++ (Page 157)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <or...@vp...> - 2005-01-08 01:13:22
|
Patel, Nilesh M wrote: > This maybe a easy one. But I have a string containing '|'. > I need to write a little code where it search for '|' and returns > whatever string is between the first '|' and the 2nd '|'.=20 >=20 > Myabe this might be more clear. >=20 > cat|dog|mouse|house. >=20 > the cat, dog, mouse and house and not predefined. >=20 > so i need a way where i can search for '|' and another '|' and return d= og.=20 >=20 > i tried doing a method using find_first_of method, but did not turn out= correctly.=20 >=20 > any suggestions? Use string::find() to find both the first, and the second "|", then use=20 string::substr() to get what's in between. A very good reference about C++ strings can be found here: http://www.cppreference.com/cppstring.html -- Greetings, Bal=E1zs |
|
From: Eric <eri...@cl...> - 2005-01-07 22:43:31
|
Sorry everyone I am get so p******** that project is going no where fast, in frustration I posted this to the wrong group, I think it has gone past the stage were I am so cheesed off I can't think straight. From Eric ----- Original Message ----- From: "Eric" <eri...@cl...> To: <dev...@li...> Sent: Saturday, January 08, 2005 9:56 AM Subject: [Dev-C++] OK the next step Time is moving on, I haven't got time to waste in procrastination land. Would it be fair to say, to make a new project complete, you need the two files ez8.h studio.h to write your own main.c plus any other *.c files your main.c file calls up, and to write or import any other *.c or *.h that you or someone else has done and would suit your project. Sorry for my approach, it is just I would hoping I could start off on the right foot from day one, and not waste the time of you jokers in asking stupid question all the time, but it seems I can not find the right documentation to point me in the right direction. From Eric ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Roger F. <ra...@ha...> - 2005-01-07 22:18:02
|
Aloha from Honolulu,
I think Eric needs a Z8Encore Group. The files are specific to
Zilog's eZ8 microcontroller products (at least ez8.h is). Zilog offers
excellent technical support. Do a search for Z8 Encore! at
http://www.zilog.com to find your way to support. Also there is a user
group on Yahoo: http://groups.yahoo.com/group/z8encore/ you have to
sign up for a Yahoo account to join, but it's free and gives you an
additional email address etc.
Roger Furer
Per Westermark wrote:
> I wonder who is the joker...
>
> Why would you need any files "ez8.h" and "studio.h" for a new project?
> main.c or whatever you name it is the minimum for a new project.
>
> /Per W
>
> On Sat, 8 Jan 2005, Eric wrote:
>
>
>>Time is moving on, I haven't got time to waste in procrastination land.
>>
>>Would it be fair to say, to make a new project complete, you need the two files
>>ez8.h
>>studio.h
>>
>>to write your own main.c plus any other *.c files your main.c file calls up,
>>and to write or import any other *.c or *.h that you or someone else has done and would suit your
>>project.
>>
>>
>>Sorry for my approach, it is just I would hoping I could start off on the right foot from day one, and
>>not waste the time of you jokers in asking stupid question all the time, but it seems I can not find the
>>right documentation to point me in the right direction.
>>
>>>From Eric
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Malcolm N. <m.n...@wa...> - 2005-01-07 21:55:23
|
Hello Per, On 07 January 2005, 22:40:24, you wrote: > I wonder who is the joker... > Why would you need any files "ez8.h" and "studio.h" for a new project? > main.c or whatever you name it is the minimum for a new project. > /Per W > On Sat, 8 Jan 2005, Eric wrote: >> Time is moving on, I haven't got time to waste in procrastination land. >> >> Would it be fair to say, to make a new project complete, you need the two files >> ez8.h >> studio.h >> Having done a quick google, it seems that Eric wants dto do some Z8Encore microcontroller programming. I would therefore suggest to do a quick search on Google for Z8Encore Programming tutorials or z8encore dev-cpp or such, or failing that look here. It may be of some small use. http://www.geocities.com/ted_rossin/Electronics/Z8Encore/Z8Encore.html -- Best regards, Malcolm mailto:m.n...@wa... |
|
From: Per W. <pw...@ia...> - 2005-01-07 21:40:43
|
I wonder who is the joker... Why would you need any files "ez8.h" and "studio.h" for a new project? main.c or whatever you name it is the minimum for a new project. /Per W On Sat, 8 Jan 2005, Eric wrote: > Time is moving on, I haven't got time to waste in procrastination land. > > Would it be fair to say, to make a new project complete, you need the two files > ez8.h > studio.h > > to write your own main.c plus any other *.c files your main.c file calls up, > and to write or import any other *.c or *.h that you or someone else has done and would suit your > project. > > > Sorry for my approach, it is just I would hoping I could start off on the right foot from day one, and > not waste the time of you jokers in asking stupid question all the time, but it seems I can not find the > right documentation to point me in the right direction. > > >From Eric |
|
From: Eric <eri...@cl...> - 2005-01-07 20:57:54
|
Time is moving on, I haven't got time to waste in procrastination land. Would it be fair to say, to make a new project complete, you need the two files ez8.h studio.h to write your own main.c plus any other *.c files your main.c file calls up, and to write or import any other *.c or *.h that you or someone else has done and would suit your project. Sorry for my approach, it is just I would hoping I could start off on the right foot from day one, and not waste the time of you jokers in asking stupid question all the time, but it seems I can not find the right documentation to point me in the right direction. From Eric |
|
From: Phil S. <ph...@st...> - 2005-01-07 20:07:41
|
On Fri, 7 Jan 2005 11:38:27 -0500, "Patel, Nilesh M" <Nil...@qu...> jotted some Wise Words of Wisdom: >whatever string is between the first '|' and the 2nd '|'.=20 strchr --=20 The latest survey displays that it requires an average of just 3.8 drinkings to effect a katzenjammer. But this tablets supports you elude hang-overs and wake up feeling immense from head to abdomen and everywhere else. |
|
From: Patel, N. M <Nil...@qu...> - 2005-01-07 16:42:30
|
This maybe a easy one. But I have a string containing '|'. I need to write a little code where it search for '|' and returns whatever string is between the first '|' and the 2nd '|'.=20 Myabe this might be more clear. cat|dog|mouse|house. the cat, dog, mouse and house and not predefined. so i need a way where i can search for '|' and another '|' and return dog.= =20 i tried doing a method using find_first_of method, but did not turn out = correctly.=20 any suggestions=3F -----Original Message----- =46rom: dev...@li... [mailto:dev...@li...]On Behalf Of dev...@li... Sent: Thursday, January 06, 2005 11:14 PM To: dev...@li... Subject: Dev-cpp-users digest, Vol 1 #2282 - 2 msgs Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. Priority Defualt (Rhys Owen) 2. Re: Priority Defualt (David McKen) --__--__-- Message: 1 =46rom: "Rhys Owen" <ska...@ho...> To: dev...@li... Date: Thu, 06 Jan 2005 17:53:23 +0000 Subject: [Dev-C++] Priority Defualt Hi, I want to know how to set the default priority of a C++ program to=20 realtime (in windows). If you know how to do this, or want me to be more specific, please reply. Cheers ~ Roo --__--__-- Message: 2 Date: Thu, 06 Jan 2005 20:57:11 -0500 =46rom: David McKen <dml...@co...> To: Dev-C++ Mailing List <dev...@li...> Subject: Re: [Dev-C++] Priority Defualt I assume you mean how to have the program set it's own priority to the=20 real time class. The following is a snippet from some code I wrote. # define WIN32_LEAN_AND_MEAN 1 # include <windows.h>* ... * if(SetPriorityClass( GetCurrentProcess(), IDLE_PRIORITY_CLASS) =3D=3D 0) { cout << "\nError setting priority for process id #" <<=20 GetCurrentProcessId() << endl; cout << "Error # =3D " << GetLastError() << endl; } Look for the documentation for the constant for the real-time class. If=20 you want the rest of the stuff in windows.h then you can remove the lean=20 and mean define. hys Owen wrote: > Hi, I want to know how to set the default priority of a C++ program to=20 > realtime (in windows). > If you know how to do this, or want me to be more specific, please reply. > > Cheers > ~ Roo > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > --__--__-- _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users End of Dev-cpp-users Digest =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D The contents of this message, together with any attachments, are intended = only for the use of the person(s) to which they are addressed and may = contain confidential and/or privileged information. Further, any medical = information herein is confidential and protected by law. It is unlawful for= = unauthorized persons to use, review, copy, disclose, or disseminate = confidential medical information. If you are not the intended recipient, = immediately advise the sender and delete this message and any attachments. = Any distribution, or copying of this message, or any attachment, is = prohibited. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D |
|
From: David M. <dml...@co...> - 2005-01-07 02:00:00
|
I assume you mean how to have the program set it's own priority to the
real time class.
The following is a snippet from some code I wrote.
# define WIN32_LEAN_AND_MEAN 1
# include <windows.h>*
...
*
if(SetPriorityClass( GetCurrentProcess(), IDLE_PRIORITY_CLASS) == 0)
{
cout << "\nError setting priority for process id #" <<
GetCurrentProcessId() << endl;
cout << "Error # = " << GetLastError() << endl;
}
Look for the documentation for the constant for the real-time class. If
you want the rest of the stuff in windows.h then you can remove the lean
and mean define.
hys Owen wrote:
> Hi, I want to know how to set the default priority of a C++ program to
> realtime (in windows).
> If you know how to do this, or want me to be more specific, please reply.
>
> Cheers
> ~ Roo
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Rhys O. <ska...@ho...> - 2005-01-06 17:54:33
|
Hi, I want to know how to set the default priority of a C++ program to realtime (in windows). If you know how to do this, or want me to be more specific, please reply. Cheers ~ Roo |
|
From: Vale G. <val...@at...> - 2005-01-05 18:30:15
|
Philippe - > I can't upgrade somes modules with the embedded WepUpdate tool. That's a common problem which is probably limited to older Windows installations. Check https://sourceforge.net/tracker/?group_id=10639&atid=110639 and do a search on "Webupdate" with the Status menu set to "Any." You'll find, among others, Request ID 1006424, "webupdate cannot move file from temp dir." You might consider creating a new bug report there. Chuck |
|
From: Gerson L. <ja...@ya...> - 2005-01-05 17:00:24
|
Estimado Andre:
Now that you show the code, I noticed I'm not actualized about resource files, but i can tell you this:
1) Since I use an old version of Dev (dev 4.0 and 4.01) i don know about makefiles, i don't use them, i just click the compile or the compile an run icon in my toolbar. May be there is the error, may be ther is a litle thing in that file. It looks fine to me but...
2) I never use IDC_STATIC, I put the plain ' -1 ' in there, because if I'm not wrong, that number is only used to identify the controls whithin a window or dialog box and be able to proccess the messages from 'em and send/post messages to them, so, if I dont want to process messages o send msg, ...
3) Here is an example of MY USAGE of the resource file, i've learned this an modifiing conform to my programming needs. I dont know pretty much about the sintax youre using, but i see it requires less typing ;)
#include <windows.h>
#include "IDs.h"
TomaDatos DIALOG 0,0,270, 140
STYLE WS_VISIBLE | WS_POPUP | WS_CAPTION | DS_MODALFRAME
CAPTION "Toma de Datos"
FONT 8,"Courier"
BEGIN
CONTROL "Campos", -1, "BUTTON", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 5, 10, 205, 128
CONTROL "Aceptar", IDOK , "BUTTON", WS_CHILD | WS_VISIBLE , 215, 15, 50, 15
CONTROL "Cancelar", IDCANCEL, "BUTTON", WS_CHILD | WS_VISIBLE , 215, 35, 50, 15
END
the IDs.h file is almost the same thing as your resource.h.
If I do the same dialog box as you, I'll probably do something like this:
ABOUTBOX DIALOG DISCARDABLE 32, 32, 180, 102
STYLE DS_MODALFRAME | WS_POPUP
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "OK",IDOK, "BUTTON", WS_CHILD | WS_VISIBLE, 66,81,50,14
/*
ICON "ABOUT1", -1,7,7,21,20 // I won't touch this , i don't know about it
*/
ICON "ABOUT1",-1,7,7,21,20 // I won't touch this , i don't know about it
CONTROL "About1", -1, "STATIC", WS_CHILD | WS_VISIBLE, 40,12,100,8
CONTROL "About Box Demo Program",-1, "STATIC" , WS_CHILD | WS_VISIBLE ,7,40,166,8
CONTROL "(c) Charles Petzold, 1998",-1, "STATIC" , WS_CHILD | WS_VISIBLE ,7,52,166,8
END
It should be the same thing, exept than as I use the word "CONTROL" it is necesary to tell what kind of control you want, using EDIT, STATIC, LISTBOX, COMBOBOX, and so on... and it is necesary to explicitly choose the styles : WS_CHILD, WS_BORDER... things like that ... these are automatically set when you use CTEXT, DEFPUSHBUTTON and so on.
Make the try and tell me what happens...
I hope this to be useful
PD: Excuse me if my english is not too good, my natural language is the spanish español, castellano, Hondureño :)
Andre Macario Barros <ab...@cp...> wrote:
************ about1.rc ************************************
#include
#include "resource.h"
ABOUTBOX DIALOG DISCARDABLE 32, 32, 180, 102
STYLE DS_MODALFRAME | WS_POPUP
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,66,81,50,14
/*
ICON "ABOUT1",IDC_STATIC,7,7,21,20
*/
ICON "ABOUT1",-1,7,7,21,20
CTEXT "About1",IDC_STATIC,40,12,100,8
CTEXT "About Box Demo Program",IDC_STATIC,7,40,166,8
CTEXT "(c) Charles Petzold, 1998",IDC_STATIC,7,52,166,8
END
ABOUT1 MENU DISCARDABLE
BEGIN
POPUP "&Help"
BEGIN
MENUITEM "&About About1...", IDM_APP_ABOUT
END
END
ABOUT1 ICON DISCARDABLE "about1.ico"
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
"ABOUTBOX", DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 173
TOPMARGIN, 7
BOTTOMMARGIN, 95
END
END
***************************************************************
************** resource.h *******************************
#include
#define IDM_APP_ABOUT 40001
*********************************************************
---------------------------------
|
|
From: Philippe L. <phi...@te...> - 2005-01-05 14:47:44
|
Hello, I can't upgrade somes modules with the embedded WepUpdate tool. For instance : -1) Start Devcpp 4.9.9.1 on WIN 98 -2) Start WebUpdate from the menu -3) Choose PlanetMirror Site -4) Choose CLGDI DevPack -5) Start download -6) Check the message box : 'The update you selected have been downloaded" -7) Have the Warning message box : "Could not move file c:\windows\temp\~uD0b2.TMP to c:\D-5B-4991-C++\Packages\CLGDIV32.DevPak" So I can manually do the end of job but i loose the WebUpdate history. Other questions : Is there an installed database file and where is it ?. Regards Philippe Lucas |
|
From: Esotic <es...@es...> - 2005-01-04 16:59:54
|
I created a .DEV for the FreeFrame sample project. You can get the complete source here: http://esotic.com/media/FreeFrameDevCPPPlugin.zip The main impetus for making the .DEV file was so anyone could compile FreeFrame plug-ins for OpenTZT (the project I work on most) with a free (and very capable) C++ ide. The code compiles (on my computer :) under the latest Dev-C++ release: http://sourceforge.net/project/showfiles.php?group_id=10639 FreeFrame is an Open Source video effects plug-in standard. http://freeframe.sourceforge.net/ OpenTZT is a DirectX Open Source live video editor http://opentzt.sourceforge.net/ I haven't tried compiling the source on Linux (and/or for MAC) yet, but it should be possible (with the right -D compile trigger). If anyone would like to try that out please let me know how it works for you. Thanks, -Dave/Esotic |
|
From: Andre M. B. <ab...@cp...> - 2005-01-04 16:12:07
|
PLEASE, IGNORE THE PREVIOUS MESSAGE.
IT DOESN=B4T CONTAIN A "SUBJECT" FIELD FILLED WITH A TITLE, OK?
Dear Users,
I am trying to compile a Windows .C project with
the three files: the .c source-code, the .rc resource file=20
and the .h resource.h file. I still getting the compile
error message in the resource file.
Two sets of recommendations I=B4ve already receive. The
two sets I=B4ve already implemented.
The previous e-mail already showed the results of the
1st set of recommendations (->to update Dev without effect,
->#include <windows.h> inside the .rc file with good effect
to some cases, ->to begin with an empty project, instead of
a windows project without effect).
Here are the results of the the 2nd. set of=20
recommendations:
1-To update the binutils packet from mingw to get the
newest windres.exe:
I made the download (current packet option) and
installed FULL binutils packet over my c:\dev-cpp folder
(on the respective places, ok?), but the version of the=20
windres.exe file was the same, that is, 2.15.91, and
the compile error on resource file message was the
same.
2-To add c:\dev-cpp\bin folder on the PATH variable:
I put on the AUTOEXEC.BAT, boot the computer and
the compile error message on the resource file
"fowarded" to some lines bellow, stopping specifically=20
indicating a "unkown" IDC_STATIC constant. Looking
for this constant, I found it in winuser.h (that
is automatically called via windows.h). I "forced"
a #define IDC_STATIC -1 in the resource.h, but the
compile error message "forwarded" again and stopped
in another place :-(((
Please be patient...
Any other ideas?
Regards
Andre Barros
If it is interesting to anyone, here are the=20
codes:
*************** about1.c ***************************************
/*------------------------------------------
ABOUT1.C -- About Box Demo Program No. 1
(c) Charles Petzold, 1998
------------------------------------------*/
#include <windows.h>
#include "resource.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
BOOL CALLBACK AboutDlgProc (HWND, UINT, WPARAM, LPARAM) ;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szAppName[] =3D TEXT ("About1") ;
MSG msg ;
HWND hwnd ;
WNDCLASS wndclass ;
=20
wndclass.style =3D CS_HREDRAW | CS_VREDRAW ;
wndclass.lpfnWndProc =3D WndProc ;
wndclass.cbClsExtra =3D 0 ;
wndclass.cbWndExtra =3D 0 ;
wndclass.hInstance =3D hInstance ;
wndclass.hIcon =3D LoadIcon (hInstance, szAppName) ;
wndclass.hCursor =3D LoadCursor (NULL, IDC_ARROW) ;
wndclass.hbrBackground =3D (HBRUSH) GetStockObject (WHITE_BRUSH) ;
wndclass.lpszMenuName =3D szAppName ;
wndclass.lpszClassName =3D szAppName ;
=20
if (!RegisterClass (&wndclass))
{
MessageBox (NULL, TEXT ("This program requires Windows NT!"),
szAppName, MB_ICONERROR) ;
return 0 ;
}
=20
hwnd =3D CreateWindow (szAppName, TEXT ("About Box Demo Program"),
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, hInstance, NULL) ;
=20
ShowWindow (hwnd, iCmdShow) ;
UpdateWindow (hwnd) ;=20
=20
while (GetMessage (&msg, NULL, 0, 0))
{
TranslateMessage (&msg) ;
DispatchMessage (&msg) ;
}
return msg.wParam ;
}
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM=20
lParam)
{
static HINSTANCE hInstance ;
=20
switch (message)
{
case WM_CREATE :
hInstance =3D ((LPCREATESTRUCT) lParam)->hInstance ;
return 0 ;
=20
case WM_COMMAND :
switch (LOWORD (wParam))
{
case IDM_APP_ABOUT :
DialogBox (hInstance, TEXT ("AboutBox"), hwnd, AboutDlgPro=
c) ;
break ;
}
return 0 ;
=20
case WM_DESTROY :
PostQuitMessage (0) ;
return 0 ;
}
return DefWindowProc (hwnd, message, wParam, lParam) ;
}
BOOL CALLBACK AboutDlgProc (HWND hDlg, UINT message,=20
WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG :
return TRUE ;
=20
case WM_COMMAND :
switch (LOWORD (wParam))
{
case IDOK :
case IDCANCEL :
EndDialog (hDlg, 0) ;
return TRUE ;
}
break ;
}
return FALSE ;
}
***************************************************************
************ about1.rc ************************************
#include <windows.h>
#include "resource.h"
ABOUTBOX DIALOG DISCARDABLE 32, 32, 180, 102
STYLE DS_MODALFRAME | WS_POPUP
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,66,81,50,14
/*
ICON "ABOUT1",IDC_STATIC,7,7,21,20
*/
ICON "ABOUT1",-1,7,7,21,20
CTEXT "About1",IDC_STATIC,40,12,100,8
CTEXT "About Box Demo Program",IDC_STATIC,7,40,166,8
CTEXT "(c) Charles Petzold, 1998",IDC_STATIC,7,52,166,8
END
ABOUT1 MENU DISCARDABLE =20
BEGIN=20
POPUP "&Help"
BEGIN
MENUITEM "&About About1...", IDM_APP_ABOUT
END
END
ABOUT1 ICON DISCARDABLE "about1.ico"
GUIDELINES DESIGNINFO DISCARDABLE=20
BEGIN
"ABOUTBOX", DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 173
TOPMARGIN, 7
BOTTOMMARGIN, 95
END
END
***************************************************************
************** resource.h *******************************
#include <windows.h>
#define IDM_APP_ABOUT 40001
*********************************************************
****************** makefile.win ******************
# Project: p-about1
# Makefile created by Dev-C++ 4.9.9.1
CPP =3D g++.exe
CC =3D gcc.exe
WINDRES =3D windres.exe
RES =3D p-about1_private.res
OBJ =3D about1.o $(RES)
LINKOBJ =3D about1.o $(RES)
LIBS =3D -L"C:/Dev-Cpp/lib" -mwindows =20
INCS =3D -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include"=20
CXXINCS =3D -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw3=
2" -
I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/Dev-
Cpp/include"=20
BIN =3D p-about1.exe
CXXFLAGS =3D $(CXXINCS) =20
CFLAGS =3D $(INCS) =20
.PHONY: all all-before all-after clean clean-custom
all: all-before p-about1.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o "p-about1.exe" $(LIBS)
about1.o: about1.c
$(CC) -c about1.c -o about1.o $(CFLAGS)
p-about1_private.res: p-about1_private.rc about1.rc=20
$(WINDRES) -i p-about1_private.rc --input-format=3Drc -o p-
about1_private.res -O coff=20
******************************************************
|
|
From: Andre M. B. <ab...@cp...> - 2005-01-04 16:08:39
|
Dear Users,
I am trying to compile a Windows .C project with
the three files: the .c source-code, the .rc resource file=20
and the .h resource.h file. I still getting the compile
error message in the resource file.
Two sets of recommendations I=B4ve already receive. The
two sets I=B4ve already implemented.
The previous e-mail already showed the results of the
1st set of recommendations (->to update Dev without effect,
->#include <windows.h> inside the .rc file with good effect
to some cases, ->to begin with an empty project, instead of
a windows project without effect).
Here are the results of the the 2nd. set of=20
recommendations:
1-To update the binutils packet from mingw to get the
newest windres.exe:
I made the download (current packet option) and
installed FULL binutils packet over my c:\dev-cpp folder
(on the respective places, ok?), but the version of the=20
windres.exe file was the same, that is, 2.15.91, and
the compile error on resource file message was the
same.
2-To add c:\dev-cpp\bin folder on the PATH variable:
I put on the AUTOEXEC.BAT, boot the computer and
the compile error message on the resource file
"fowarded" to some lines bellow, stopping specifically=20
indicating a "unkown" IDC_STATIC constant. Looking
for this constant, I found it in winuser.h (that
is automatically called via windows.h). I "forced"
a #define IDC_STATIC -1 in the resource.h, but the
compile error message "forwarded" again and stopped
in another place :-(((
Please be patient...
Any other ideas?
Regards
Andre Barros
If it is interesting to anyone, here are the=20
codes:
*************** about1.c ***************************************
/*------------------------------------------
ABOUT1.C -- About Box Demo Program No. 1
(c) Charles Petzold, 1998
------------------------------------------*/
#include <windows.h>
#include "resource.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
BOOL CALLBACK AboutDlgProc (HWND, UINT, WPARAM, LPARAM) ;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szAppName[] =3D TEXT ("About1") ;
MSG msg ;
HWND hwnd ;
WNDCLASS wndclass ;
=20
wndclass.style =3D CS_HREDRAW | CS_VREDRAW ;
wndclass.lpfnWndProc =3D WndProc ;
wndclass.cbClsExtra =3D 0 ;
wndclass.cbWndExtra =3D 0 ;
wndclass.hInstance =3D hInstance ;
wndclass.hIcon =3D LoadIcon (hInstance, szAppName) ;
wndclass.hCursor =3D LoadCursor (NULL, IDC_ARROW) ;
wndclass.hbrBackground =3D (HBRUSH) GetStockObject (WHITE_BRUSH) ;
wndclass.lpszMenuName =3D szAppName ;
wndclass.lpszClassName =3D szAppName ;
=20
if (!RegisterClass (&wndclass))
{
MessageBox (NULL, TEXT ("This program requires Windows NT!"),
szAppName, MB_ICONERROR) ;
return 0 ;
}
=20
hwnd =3D CreateWindow (szAppName, TEXT ("About Box Demo Program"),
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, hInstance, NULL) ;
=20
ShowWindow (hwnd, iCmdShow) ;
UpdateWindow (hwnd) ;=20
=20
while (GetMessage (&msg, NULL, 0, 0))
{
TranslateMessage (&msg) ;
DispatchMessage (&msg) ;
}
return msg.wParam ;
}
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM=20
lParam)
{
static HINSTANCE hInstance ;
=20
switch (message)
{
case WM_CREATE :
hInstance =3D ((LPCREATESTRUCT) lParam)->hInstance ;
return 0 ;
=20
case WM_COMMAND :
switch (LOWORD (wParam))
{
case IDM_APP_ABOUT :
DialogBox (hInstance, TEXT ("AboutBox"), hwnd, AboutDlgPro=
c) ;
break ;
}
return 0 ;
=20
case WM_DESTROY :
PostQuitMessage (0) ;
return 0 ;
}
return DefWindowProc (hwnd, message, wParam, lParam) ;
}
BOOL CALLBACK AboutDlgProc (HWND hDlg, UINT message,=20
WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG :
return TRUE ;
=20
case WM_COMMAND :
switch (LOWORD (wParam))
{
case IDOK :
case IDCANCEL :
EndDialog (hDlg, 0) ;
return TRUE ;
}
break ;
}
return FALSE ;
}
***************************************************************
************ about1.rc ************************************
#include <windows.h>
#include "resource.h"
ABOUTBOX DIALOG DISCARDABLE 32, 32, 180, 102
STYLE DS_MODALFRAME | WS_POPUP
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,66,81,50,14
/*
ICON "ABOUT1",IDC_STATIC,7,7,21,20
*/
ICON "ABOUT1",-1,7,7,21,20
CTEXT "About1",IDC_STATIC,40,12,100,8
CTEXT "About Box Demo Program",IDC_STATIC,7,40,166,8
CTEXT "(c) Charles Petzold, 1998",IDC_STATIC,7,52,166,8
END
ABOUT1 MENU DISCARDABLE =20
BEGIN=20
POPUP "&Help"
BEGIN
MENUITEM "&About About1...", IDM_APP_ABOUT
END
END
ABOUT1 ICON DISCARDABLE "about1.ico"
GUIDELINES DESIGNINFO DISCARDABLE=20
BEGIN
"ABOUTBOX", DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 173
TOPMARGIN, 7
BOTTOMMARGIN, 95
END
END
***************************************************************
************** resource.h *******************************
#include <windows.h>
#define IDM_APP_ABOUT 40001
*********************************************************
****************** makefile.win ******************
# Project: p-about1
# Makefile created by Dev-C++ 4.9.9.1
CPP =3D g++.exe
CC =3D gcc.exe
WINDRES =3D windres.exe
RES =3D p-about1_private.res
OBJ =3D about1.o $(RES)
LINKOBJ =3D about1.o $(RES)
LIBS =3D -L"C:/Dev-Cpp/lib" -mwindows =20
INCS =3D -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include"=20
CXXINCS =3D -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw3=
2" -
I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/Dev-
Cpp/include"=20
BIN =3D p-about1.exe
CXXFLAGS =3D $(CXXINCS) =20
CFLAGS =3D $(INCS) =20
.PHONY: all all-before all-after clean clean-custom
all: all-before p-about1.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o "p-about1.exe" $(LIBS)
about1.o: about1.c
$(CC) -c about1.c -o about1.o $(CFLAGS)
p-about1_private.res: p-about1_private.rc about1.rc=20
$(WINDRES) -i p-about1_private.rc --input-format=3Drc -o p-
about1_private.res -O coff=20
******************************************************
|
|
From: Siva C. <siv...@ya...> - 2005-01-04 09:39:44
|
Hello,
I am new to using multiple inheritance in C++. I read
up few tutorials on the net and picked up the usage of
virtual inheritance. Can someone through light on
whats happening in virtual inheritance 'under the
hood'. Also, I have few other questions. Consider the
following inheritance diagram.
Base
/ \
/ \
Base1 Base2
\ /
\ /
Derived
I would like to implement such an inheritance. The
solution suggested in the tutorials was to inhert
Base1 and Base2 by virtual public inheritance from
Base to avoid member ambiguity. All this is fine if
both the left branch and the right branch are
implemented by me. But what if one of the branches
above was from a 3rd party library which I am making
use of? If the library implements virtual inheritance,
then all is fine. But what if it does not?
Also, is there a way of implementing the above
inheritance without using multiple inheritance?!!
Thanking you in advance,
Siva Chandra
__________________________________
Do you Yahoo!?
Jazz up your holiday email with celebrity designs. Learn more.
http://celebrity.mail.yahoo.com
|
|
From: Jonathan A. <za...@gm...> - 2005-01-04 01:26:00
|
Well, I realized part of my problem. I read this http://groups.yahoo.com/group/mingw32/message/2128 and then clued in that this problem is not a dev-cpp issue but a mingw issue. So technically I'm asking my question in the wrong place, however if anyone knows I'd still appreciate the info of how to make proper resource scripts for mingw, specifically how to safely convert one from msvc to mingw. On Mon, 3 Jan 2005 16:45:02 -0700, Jonathan Anthony <za...@gm...> wrote: > (I thought I'd sent this to the list, but instead accidentally sent it > to just one user) > > Interesting suggestion, > there's two places in that file afxres.h is included, once at the top, > and once further down in the file there's after #ifdef > APSTUDIO_INVOKED > what is that stuff anyway? > > I changed both to < > instead of double quotes. > the first one (line 10) to #include <afxres.h> > and the further one (not sure what line) to > > "#include "<afxres.h>"\r\n" > > When compiling everythings fine until here: > > windres.exe -i stage1_private.rc --input-format=rc -o > stage1_private.res -O coff > In file included from stage1_private.rc:4: > BaseCode.rc:10:21: afxres.h: No such file or directory > > c:\mingw\bin\windres.exe: BaseCode.rc:20: syntax error > > make.exe: *** [stage1_private.res] Error 1 > Execution terminated > > Strange thing is that syntax error on line 20, I never changed > anything anywhere near line 20, and now when I change the < > on those > 2 includes back to quotes, that syntax error is still there. I > reverted back using undo so it wasn't a typo. > > When I first tried this source code out, and the afxres.h file was > shown as missing by the compiler I looked for it and found it in my > Dev-Cpp\include path. Then I checked my compiler options and my c and > c++ includes did not have any entries for dev, only for MinGW, and > this file does not exist in MinGW's include directory. I added > \Dev-Cpp\include to both the C and C++ include options, and put them > at the top of those lists. However, I don't know much about compilers > and how everything works.. is Dev-Cpp ignoring those entries because > it is using the MinGW libs and includes only? > > I appreciate any education or documentation you can pass my way. > I love to learn this stuff but it's pretty hard to find people in your > neighborhood who you can learn from. > One thing I have not been able to find that might be useful is a > thourough description on how DevCpp handles resource scripts and what > it's conventions are. > > I'd be thrilled to have that figured out and be able to tell myself > whether it was a simple difference between msvc generated resource > scripts and what devcpp wants, or whether this is some issue with the > compiler settings or something else that's currently beyond me. > > Later > Jonathan > > On Mon, 3 Jan 2005 11:16:02 -0800, Guillermo Gutierrez > <ggu...@ma...> wrote: > > Hi, not sure if this will help much but usually when quotes are used for include statements instead of "<>"s it is because the file is in the project folder. > > > > ... > > First the compiler will say that it can't find afxres.h, > > which is plainly in devcpp's include directory. > > ... > > try switching the "" (quotes) for "<>"s and see what happens. > > ... > > If I comment this line, the next error reported will be on line 20, > > the statement "LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US" > > If I comment this, the next error will be on line 30. > > ... > > > > Make sure to uncomment the lines you commented out first. Then try changing the line: > > #include "afxres.h" > > > > to > > > > #include <afxres.h> > > > > hope this helps some. > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
|
From: Jonathan A. <za...@gm...> - 2005-01-03 23:45:19
|
(I thought I'd sent this to the list, but instead accidentally sent it to just one user) Interesting suggestion, there's two places in that file afxres.h is included, once at the top, and once further down in the file there's after #ifdef APSTUDIO_INVOKED what is that stuff anyway? I changed both to < > instead of double quotes. the first one (line 10) to #include <afxres.h> and the further one (not sure what line) to "#include "<afxres.h>"\r\n" When compiling everythings fine until here: windres.exe -i stage1_private.rc --input-format=rc -o stage1_private.res -O coff In file included from stage1_private.rc:4: BaseCode.rc:10:21: afxres.h: No such file or directory c:\mingw\bin\windres.exe: BaseCode.rc:20: syntax error make.exe: *** [stage1_private.res] Error 1 Execution terminated Strange thing is that syntax error on line 20, I never changed anything anywhere near line 20, and now when I change the < > on those 2 includes back to quotes, that syntax error is still there. I reverted back using undo so it wasn't a typo. When I first tried this source code out, and the afxres.h file was shown as missing by the compiler I looked for it and found it in my Dev-Cpp\include path. Then I checked my compiler options and my c and c++ includes did not have any entries for dev, only for MinGW, and this file does not exist in MinGW's include directory. I added \Dev-Cpp\include to both the C and C++ include options, and put them at the top of those lists. However, I don't know much about compilers and how everything works.. is Dev-Cpp ignoring those entries because it is using the MinGW libs and includes only? I appreciate any education or documentation you can pass my way. I love to learn this stuff but it's pretty hard to find people in your neighborhood who you can learn from. One thing I have not been able to find that might be useful is a thourough description on how DevCpp handles resource scripts and what it's conventions are. I'd be thrilled to have that figured out and be able to tell myself whether it was a simple difference between msvc generated resource scripts and what devcpp wants, or whether this is some issue with the compiler settings or something else that's currently beyond me. Later Jonathan On Mon, 3 Jan 2005 11:16:02 -0800, Guillermo Gutierrez <ggu...@ma...> wrote: > Hi, not sure if this will help much but usually when quotes are used for include statements instead of "<>"s it is because the file is in the project folder. > > ... > First the compiler will say that it can't find afxres.h, > which is plainly in devcpp's include directory. > ... > try switching the "" (quotes) for "<>"s and see what happens. > ... > If I comment this line, the next error reported will be on line 20, > the statement "LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US" > If I comment this, the next error will be on line 30. > ... > > Make sure to uncomment the lines you commented out first. Then try changing the line: > #include "afxres.h" > > to > > #include <afxres.h> > > hope this helps some. > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Guillermo G. <ggu...@ma...> - 2005-01-03 22:38:44
|
not much of a expert on these things, I am sure people on this list can = give you much better info. I commented on something that my limited knowledge knew was "wrong". -----Original Message----- From: Jonathan Anthony [mailto:za...@gm...] Sent: Monday, January 03, 2005 2:35 PM To: Guillermo Gutierrez Subject: Re: [Dev-C++] msvc resource script causing errors Interesting suggestion, there's two places in that file afxres.h is included, once at the top, and once further down in the file there's after #ifdef APSTUDIO_INVOKED what is that stuff anyway? I changed both to < > instead of double quotes. the first one (line 10) to #include <afxres.h> and the further one (not sure what line) to=20 "#include "<afxres.h>"\r\n" When compiling everythings fine until here: windres.exe -i stage1_private.rc --input-format=3Drc -o stage1_private.res -O coff In file included from stage1_private.rc:4: BaseCode.rc:10:21: afxres.h: No such file or directory c:\mingw\bin\windres.exe: BaseCode.rc:20: syntax error make.exe: *** [stage1_private.res] Error 1 Execution terminated Strange thing is that syntax error on line 20, I never changed anything anywhere near line 20, and now when I change the < > on those 2 includes back to quotes, that syntax error is still there. I reverted back using undo so it wasn't a typo. When I first tried this source code out, and the afxres.h file was shown as missing by the compiler I looked for it and found it in my Dev-Cpp\include path. Then I checked my compiler options and my c and c++ includes did not have any entries for dev, only for MinGW, and this file does not exist in MinGW's include directory. I added \Dev-Cpp\include to both the C and C++ include options, and put them at the top of those lists. However, I don't know much about compilers and how everything works.. is Dev-Cpp ignoring those entries because it is using the MinGW libs and includes only? I appreciate any education or documentation you can pass my way. I love to learn this stuff but it's pretty hard to find people in your neighborhood who you can learn from. Later Jonathan On Mon, 3 Jan 2005 11:16:02 -0800, Guillermo Gutierrez <ggu...@ma...> wrote: > Hi, not sure if this will help much but usually when quotes are used = for include statements instead of "<>"s it is because the file is in the = project folder. >=20 > ... > First the compiler will say that it can't find afxres.h, > which is plainly in devcpp's include directory. > ... > try switching the "" (quotes) for "<>"s and see what happens. > ... > If I comment this line, the next error reported will be on line 20, > the statement "LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US" > If I comment this, the next error will be on line 30. > ... >=20 > Make sure to uncomment the lines you commented out first. Then try = changing the line: > #include "afxres.h" >=20 > to >=20 > #include <afxres.h> >=20 > hope this helps some. >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Eric <eri...@cl...> - 2005-01-03 20:16:38
|
As Alfred said ".XLS is a formatted file"
Is this homework to a C++ class?
you say "built a graph" and "using the two columns"
I think what is the mathematics function of the graph? e.g. just a simple x=y+1.
I am sure a graph needs more than "two columns"
man what a weird project.
----- Original Message -----
From: "george_y" <geo...@li...>
To: "dev-cpp-users" <dev...@li...>
Sent: Monday, January 03, 2005 1:21 PM
Subject: [Dev-C++] how to draw a graph in a .xls file with C++
In the following simple program I have to write the code to built a graph in
the .xls output file using the two columns that have been created.
Thanks,
George
#include <fstream>
using namespace std;
int main()
{
double a[10]= {1,2,3,4,5,6,7,8,9,10};
double b[10]= {11,12,13,14,15,16,17,18,19,20};
ofstream fout;
fout.open("www.xls");
int n= 0;
for(n= 0; n< 10; n++)
{
fout<< a[n]<<"\t"<<b[n]<<endl;
}
fout.close();
return 0;
}
____________________________________________________________
Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di musica, film, video e sport.
Abbonati subito senza costi di attivazione su http://www.libero.it
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Guillermo G. <ggu...@ma...> - 2005-01-03 19:20:38
|
Hi, not sure if this will help much but usually when quotes are used for = include statements instead of "<>"s it is because the file is in the = project folder. ... First the compiler will say that it can't find afxres.h, which is plainly in devcpp's include directory. ... try switching the "" (quotes) for "<>"s and see what happens. ... If I comment this line, the next error reported will be on line 20, the statement "LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US" If I comment this, the next error will be on line 30. ... Make sure to uncomment the lines you commented out first. Then try = changing the line: #include "afxres.h" to=20 #include <afxres.h> hope this helps some. |
|
From: Alfred P. R. <al...@ya...> - 2005-01-03 17:07:12
|
That should work fine, except that you're forgetting that .XLS is a formatted file. Try instead opening a text file and writing to it, then import that into Excel. BTW: you can also use " " for the separator, ",", and at least one more that I can't bring to mind.
george_y <geo...@li...> wrote: In the following simple program I have to write the code to built a graph in
the .xls output file using the two columns that have been created.
Thanks,
George
#include
using namespace std;
int main()
{
double a[10]= {1,2,3,4,5,6,7,8,9,10};
double b[10]= {11,12,13,14,15,16,17,18,19,20};
ofstream fout;
fout.open("www.xls");
int n= 0;
for(n= 0; n< 10; n++)
{
fout<< a[n]<<"\t"<
}
fout.close();
return 0;
}
<snip>
Alfred P. Reaud
|
|
From: Eric <eri...@cl...> - 2005-01-03 16:59:41
|
OK I am going to be like everyone else.
that just makes the grid and does not put a graph on it.
Oh sorry you never asked us to try it out .......... sorry please ignore this Email.
----- Original Message -----
From: "george_y" <geo...@li...>
To: "dev-cpp-users" <dev...@li...>
Sent: Monday, January 03, 2005 1:21 PM
Subject: [Dev-C++] how to draw a graph in a .xls file with C++
In the following simple program I have to write the code to built a graph in
the .xls output file using the two columns that have been created.
Thanks,
George
#include <fstream>
using namespace std;
int main()
{
double a[10]= {1,2,3,4,5,6,7,8,9,10};
double b[10]= {11,12,13,14,15,16,17,18,19,20};
ofstream fout;
fout.open("www.xls");
int n= 0;
for(n= 0; n< 10; n++)
{
fout<< a[n]<<"\t"<<b[n]<<endl;
}
fout.close();
return 0;
}
____________________________________________________________
Regala e regalati Libero ADSL: 3 mesi gratis e navighi veloce. 1.2 Mega di musica, film, video e sport.
Abbonati subito senza costi di attivazione su http://www.libero.it
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Jonathan A. <za...@gm...> - 2005-01-03 03:02:20
|
Hi, I'm trying to compile some example source code from a book,
everything goes smoothly until the compiler hits this resource file.
First the compiler will say that it can't find afxres.h,
which is plainly in devcpp's include directory.
If I comment this line, the next error reported will be on line 20,
the statement "LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US"
If I comment this, the next error will be on line 30.
I tried some other little things like that and all I could get were
more parse errors. Any ideas?
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_OPTIONS DIALOG DISCARDABLE 0, 0, 119, 159
STYLE DS_MODALFRAME | WS_POPUP
FONT 8, "Verdana"
BEGIN
DEFPUSHBUTTON "Cancel",IDCANCEL,8,139,46,12
DEFPUSHBUTTON "Run",IDRUN,66,139,46,12
CONTROL 103,IDC_STATIC,"Static",SS_BITMAP | SS_CENTERIMAGE,0,0,
119,43
GROUPBOX "Resolution",IDC_RESGROUP,6,49,56,85
CONTROL "640x480",IDC_640,"Button",BS_AUTORADIOBUTTON | BS_FLAT |
WS_GROUP,10,60,49,15
CONTROL "800x600",IDC_800,"Button",BS_AUTORADIOBUTTON | BS_FLAT,
10,74,49,15
CONTROL "1024x768",IDC_1024,"Button",BS_AUTORADIOBUTTON |
BS_FLAT,10,88,49,15
CONTROL "1280x1024",IDC_1280,"Button",BS_AUTORADIOBUTTON |
BS_FLAT,10,102,49,15
CONTROL "1600x1200",IDC_1600,"Button",BS_AUTORADIOBUTTON |
BS_FLAT,10,116,49,15
GROUPBOX "Depth",IDC_DEPTH,63,49,52,43
CONTROL "16 bpp",IDC_16BPP,"Button",BS_AUTORADIOBUTTON | BS_FLAT |
WS_GROUP,67,60,47,13
CONTROL "32 bpp",IDC_32BPP,"Button",BS_AUTORADIOBUTTON | BS_FLAT,
67,74,47,13
CONTROL "Fullscreen",IDC_FULLSCREEN,"Button",BS_AUTOCHECKBOX |
BS_FLAT | WS_TABSTOP,65,102,45,21
END
IDD_SKELETAL1 DIALOGEX 0, 0, 144, 289
STYLE DS_NOFAILCREATE | WS_POPUP | WS_VISIBLE | WS_BORDER
EXSTYLE WS_EX_NOPARENTNOTIFY | WS_EX_TOOLWINDOW | WS_EX_CONTROLPARENT
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "Joint 0",IDC_JOINT0,"Button",BS_AUTORADIOBUTTON |
BS_FLAT,25,25,41,14
CONTROL "Joint 1",IDC_JOINT1,"Button",BS_AUTORADIOBUTTON |
BS_FLAT,25,42,39,14
CONTROL "Joint 2",IDC_JOINT2,"Button",BS_AUTORADIOBUTTON |
BS_FLAT,75,25,44,14
CONTROL "Joint 3",IDC_JOINT3,"Button",BS_AUTORADIOBUTTON |
BS_FLAT,75,42,40,14
GROUPBOX "Active Joint",IDC_STATIC,12,10,118,52
EDITTEXT IDC_ROTZ,94,86,38,13,ES_AUTOHSCROLL
EDITTEXT IDC_ROTY,52,86,42,13,ES_AUTOHSCROLL
EDITTEXT IDC_ROTX,9,86,44,13,ES_AUTOHSCROLL
EDITTEXT IDC_TRANSZ,94,126,38,13,ES_AUTOHSCROLL
EDITTEXT IDC_TRANSY,52,126,41,13,ES_AUTOHSCROLL
EDITTEXT IDC_TRANSX,10,126,42,13,ES_AUTOHSCROLL
PUSHBUTTON "Reset",IDC_RESET,86,264,45,14,BS_FLAT
GROUPBOX "Rotation Quaternion",IDC_STATIC,6,147,129,26
GROUPBOX "Transformation Matrix",IDC_STATIC,6,184,129,73
EDITTEXT IDC_Q0,8,157,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_Q1,40,157,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_Q2,72,157,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_Q3,105,157,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M0,8,197,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M1,40,197,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M2,72,197,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M3,105,197,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M4,8,212,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M5,40,212,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M6,72,212,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M7,105,212,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M8,8,227,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M9,40,227,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M10,72,227,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M11,105,227,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M12,7,242,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M13,39,242,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M14,71,242,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
EDITTEXT IDC_M15,105,242,30,13,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
GROUPBOX "Parent Joint",IDC_STATIC,22,258,53,24
EDITTEXT IDC_PARENT,36,267,25,12,ES_AUTOHSCROLL | ES_READONLY |
ES_NUMBER
CONTROL "Spin1",IDC_SRX,"msctls_updown32",UDS_WRAP |
UDS_ALIGNRIGHT | UDS_ARROWKEYS,50,74,6,14
CONTROL "Spin1",IDC_SRY,"msctls_updown32",UDS_WRAP |
UDS_ALIGNRIGHT | UDS_ARROWKEYS,92,72,6,14
CONTROL "Spin1",IDC_SRZ,"msctls_updown32",UDS_WRAP |
UDS_ALIGNRIGHT | UDS_ARROWKEYS,129,74,6,14
CONTROL "Spin1",IDC_STX,"msctls_updown32",UDS_WRAP |
UDS_ALIGNRIGHT | UDS_ARROWKEYS,48,112,6,14
CONTROL "Spin1",IDC_STY,"msctls_updown32",UDS_WRAP |
UDS_ALIGNRIGHT | UDS_ARROWKEYS,89,113,6,14
CONTROL "Spin1",IDC_STZ,"msctls_updown32",UDS_WRAP |
UDS_ALIGNRIGHT | UDS_ARROWKEYS,126,112,6,14
GROUPBOX " X Y Z",
IDC_STATIC,6,113,129,33
GROUPBOX " X Y Z",
IDC_STATIC,6,74,129,31
LTEXT "Rotation",IDC_STATIC,57,66,33,8
LTEXT "Translation",IDC_STATIC,49,105,39,8
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDB_LOGO BITMAP DISCARDABLE "logo.bmp"
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_SKELETAL1, DIALOG
BEGIN
LEFTMARGIN, 6
RIGHTMARGIN, 135
VERTGUIDE, 101
TOPMARGIN, 7
BOTTOMMARGIN, 282
END
END
#endif // APSTUDIO_INVOKED
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
|