dev-cpp-users Mailing List for Dev-C++ (Page 261)
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: <rob...@ya...> - 2004-01-27 14:08:21
|
Dev-cpp-users -- confirmation of subscription -- request 486148 We have received a request from 10.3.1.8 for subscription of your email address, <rob...@ya...>, to the dev...@li... mailing list. To confirm the request, please send a message to dev...@li..., and either: - maintain the subject line as is (the reply's additional "Re:" is ok), - or include the following line - and only the following line - in the message body: confirm 486148 (Simply sending a 'reply' to this message should work from most email interfaces, since that usually leaves the subject line in the right form.) If you do not wish to subscribe to this list, please simply disregard this message. Send questions to dev...@li.... --------------------------------- Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis! |
|
From: Vinicius <cvi...@uo...> - 2004-01-27 12:14:56
|
Hello,
a) I have a .h (header file) that declares a struct:
...
typedef struct {
UINT4 state[4]; /* state (ABCD) */
UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */
unsigned char buffer[64]; /* input buffer */
} MD5_CTX;
...
b) and I have .c (C source file) that uses the header above:
...
void MD5Init(MD5_CTX *context);
...
c) I have created a .lib (library file) with the functions above.
I have used the header file above into a .cpp (C++ source file). The .cpp
file uses the .lib functions, but the compiles says "Unresolved external
MD5Init(MD5_CTX*) ...".
I think the .lib was included correctly on the project, so is a struct
preserved when used into a cpp file?
Thanks in advance, Vinicius.
PS: I'm using actually the Borland C++Builder 3 IDE for this project, but my
doubts is concerned about the theory, excuse me for anything.
|
|
From: Daniel G. <sp...@ho...> - 2004-01-27 10:25:45
|
You could use GDI to draw shapes and lines. For collision detection put a bounding box around the circle and for the corners perhaps put a conditional statement in that lets another body pass into the bounding box by X pixels but no more. It depends how detailed you are going to do it. Try looking up modelling a kettle on the web - many physics students create animations that bounce a kettle around inside a box. This is because it is an odd shape and is difficult to do, but it is a famous example. >From: "Brian Wallace" <nig...@ho...> >To: dev...@li... >Subject: [Dev-C++] Using namespace std >Date: Sun, 25 Jan 2004 13:19:46 -0500 > _________________________________________________________________ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband |
|
From: Mohammed I. <mi...@ac...> - 2004-01-27 09:27:14
|
Hi... I wrote a a large program with Dev-C++ on Windows XP Professional. The compilation went smooth for three hours and the program ran fine. There's only one problem I can't find the reason for it. Some parts of my program when I try to use produces an error message saying that some portion of memory can't be written. Why? Mohammed |
|
From: Watson D. <wa...@wa...> - 2004-01-27 07:43:23
|
Sunday, January 25, 2004, 10:19:46 AM, you wrote: BW> How can I draw graphics (lines, points) in C++.=A0 Also, if BW> someone could tell me how to do colision detection on a circle, BW> that would be very helpful. http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg1.htm Or maybe... http://www.gamedev.net/reference/articles/article608.asp If you poke around on those sites or search Google for DirectX C++ or OpenGL tutorials, you'll find lots of good info. HTH. Watson (the pencil neck) Davis |
|
From: Brian W. <nig...@ho...> - 2004-01-27 05:22:47
|
<html><div style='background-color:'><DIV class=RTE>How can I draw graphics (lines, points) in C++. Also, if someone could tell me how to do colision detection on a circle, that would be very helpful.</DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2746??PS=">Check out the coupons and bargains on MSN Offers! </a> </html> |
|
From: Asfe e <e_...@ho...> - 2004-01-27 03:19:27
|
Hi,
Im trying to run an application (could be any exe.) from within my code.
What is the best way to pass a string to cmdStr ? Can it be replaced?
Btw, anyone dealing with Unit testing ? Please write to me.
thanks,
Seth.
#include <windows.h>
#include <iostream.h>
void main(void)
{
CHAR cmdStr[100];
STARTUPINFO startUpInfo;
PROCESS_INFORMATION procInfo;
BOOL success;
GetStartupInfo(&startUpInfo);
success=CreateProcess(0,
cmdStr,
0,
0,
FALSE,
CREATE_NEW_CONSOLE,
0,
0,
&startUpInfo,
&procInfo);
if (!success)
cout << "Error opening wsImporter: "
<< GetLastError() << endl;
WaitForSingleObject(procInfo.hProcess,
INFINITE);
}
//Application paths:
//C:\Program Files\WinScribe\wsiauthor.exe for running Author
//C:\Program Files\WinScribe\Importer\wsImporter.exe for wsImporter Author
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|
|
From: Jay B. <jay...@ni...> - 2004-01-26 14:56:51
|
Has anyone formulated or come across a tutorial on using embedded MySQL with C++ other than the info at http://www.mysql.com ? Thanks! |
|
From: Ed C. <em...@to...> - 2004-01-26 14:44:07
|
Hello, I'm looking for some guidance on a Win32 API question. I have a dialog = that has lots of different options, too many to put on a single dialog reasonably, but it lends itself well to a tabbed display, with certain groups options on each page. Here's the problem: I have never built a tabbed dialog like this, = before, and can find relatively little of use through Google or MSDN. I can get = a simple dialog based on the Win32 TAB control or on the Property Sheet controls. Property sheets seem easier, in most respects, but it's = unclear to me whether or not I can put anything in the dialog box other than = property sheets. There are a few controls - mostly buttons - that I would like to have visible below the tabbed portions. Should I use the TAB controls? I'd like to get this right before coding = the whole thing. Thanks! -Ed |
|
From: Juan J. C. L. <jua...@ya...> - 2004-01-26 14:23:03
|
Hello, I looked in the Output Debugger message, and says simply: "Executable file could not be loaded in the debugger" I changed the Project Options to reference "main.exe" as the output... but nothing happens, the error continues... I already put the -g3 parameter in compiler options. Juan |
|
From: David M. <ci...@ya...> - 2004-01-26 07:10:35
|
Thanks, I will check them out. --- age...@co... wrote: > I think Windows Developer Magazine had ana rticle on this a few > months ago. it talked about making an application that works like a > daemon, but shows up as an icon at the bottom of the screen next to > the clock. Check their website, you can download their latest > issues. > > -- > ~~Scott Simontis~~ > Programmer > > Ok just about every developer knows about background processes. > Under > > any *NIX they are pretty easy to create. Under Windows NT > (including > > 2000/XP) there exist tons of tutorials that explain how to create > > them. > > > > My question is does anyone know about creating such processes > under > > Windows9x? I would rather not have to go to creating a VxD. > > > > Essentially I am creating a number cruncher which has just about > no > > output (problems/results are in files) and require no input from > the > > user. Right now I have a console application that can be killed > using > > <CTRL-C> or <CTRL-BREAK> at which point it saves where it was and > > performs a graceful shutdown. Upon starting back up it reads the > > checkpoint file and starts back where it left off. > > > > Any help would be appreciated. > > David McKen > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > > http://hotjobs.sweepstakes.yahoo.com/signingbonus > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > 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 > ===== Signed David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ |
|
From: Maya <Esc...@ne...> - 2004-01-26 03:54:58
|
You know what I would do? I would solve the whole thing by not using the
char array, just use the std::string.
The program is a C++ program, and as a C++ programmer you have to master
the object oriented paradigm. Forger about char, that's a more 'C' kind
of style!
Have good one!!
kpr...@op... wrote:
> Hi Doug,
>
> Thanks for such a thorough response.
>
> Actually, the root of my problem(s) is char vs. string. The problem
> starts right there, because I cannot use string functions on a char
> array. Below, I have gotten to the heart of my lack of
> understanding. That commented-out "string inbufstr" is there because
> up to now, I have been coding that "inbufstr=inbuf" statement to
> convert the char array to a string. Then, I get access to the string
> manipulation functions.
>
> **************************************************************************************
> #include <fstream>
> #include <iostream>
> #include <string>
> using namespace std;
>
> int main(void)
> {
> int i,TotRecs;
> char inbuf[80];
> // string inbufstr;
>
> ifstream MtgRec("Q:\\C++\\AAMtgs.txt");
> ofstream AnalRec("Q:\\C++\\Analysis.txt");
> ofstream ZipRec("Q:\\C++\\Towns.txt");
> if (MtgRec.fail()) {cout << "Cannot open file" << endl;}
>
> i=-1; // 1st iteration is 0 (for 1st subscript)
>
> while (! MtgRec.eof())
> {
> MtgRec.getline(inbuf,80);
> i++;
> TotRecs++;
> }
> // inbufstr=inbuf;
> if (inbuf.substr(0,3) == 'ZIP') inbuf.erase(0,3); // This
> stmt yields error "request for member 'substr' in 'inbuf', which is of
> non-aggregate type 'char[80]'"
> system("pause");
> }
> *************************************************************************************
>
> This is where my flip-flopping around and mixing strings and chars
> begins.
>
> I am sure the answer to this is so simple that I will be astonished
> that I missed it. But I'm a real quick study, so go ahead, tell me
> the way out of this.
>
> TIA,
> Ken
> ------------------------------------------------------- The SF.Net
> email is sponsored by EclipseCon 2004 Premiere Conference on Open
> Tools Development and Integration See the breadth of Eclipse activity.
> February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn
> _______________________________________________ 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
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Ed C. <em...@to...> - 2004-01-26 00:02:29
|
Hello, I'm looking for some guidance on a Win32 API question. I have a dialog = that has lots of different options, too many to put on a single dialog reasonably, but it lends itself well to a tabbed display, with certain groups options on each page. Here's the problem: I have never built a tabbed dialog like this, = before, and can find relatively little of use through Google or MSDN. I can get = a simple dialog based on the Win32 TAB control or on the Property Sheet controls. Property sheets seem easier, in most respects, but it's = unclear to me whether or not I can put anything in the dialog box other than = property sheets. There are a few controls - mostly buttons - that I would like to have visible below the tabbed portions. Should I use the TAB controls? I'd like to get this right before coding = the whole thing. Thanks! -Ed |
|
From: Reid T. <Rei...@at...> - 2004-01-23 12:28:47
|
looks to me like -lobjc means you've setup your project to link with the
objective c library. Since I assume you are attempting to code either a
C or C++ program, remove the reference to link the objc library. I
believe that: g++: -lobjc: linker input file unused since linking not
done may mean that '..you asked to link objc, but your code doesn't use
it, so i'm not linking it to your program'..
=20
=20
=20
reid=20
-----Original Message-----
From: B.Alexandrov [mailto:boj...@ya...]=20
Sent: Friday, January 23, 2004 12:17 AM
To: Reid Thompson
Subject: Re: [Dev-C++] Windows XP Home edition
=09
=09
Please if you can tell me what to do - I recieve after execution
of the program the :
g++: -lobjc: linker input file unused since linking not done
What this means and what to do to have working program not only
under Linox?
Thank you=20
B.Alexandrov
=09
Reid Thompson <rei...@at...> wrote:
did you define your project as a C project, or a C++
project?
stdio.h is a C header file -- cstdio is the C++
implementation of same.
=09
Scott Simontis wrote:
=09
> B.Alexandrov wrote:
>=20
>> Thank you so much for your attention! The code is
simply:
>>=20
>> #include=20
>> int main()
>> {
>> return 0;
>> }
>> And the message is:
>>
>> C:\DEV-C_~1\Bin\ld.exe: warning: cannot find entry
symbol=20
>> _WinMainCRTStartup; defaulting to 00401000
>>
>> C:\DOCUME~1\BOIANA~1\LOCALS~1\Temp\ccIbdaaa.o: In
function `main':
>>
>> //c/disk/source/hello.cpp:4: undefined reference to
`__main'
>>
> I get no errors. I compiled it under Microsoft Visual
C++ .NET./=20
> However, with Dev-C++ 4.9.8.5, I get an error about
there being no make=20
> target for the .o file. I have no clue what is wrong.
The only thing I=20
> changed was typing #include instead of #include=20
>=20
>> */age...@co.../* wrote:
>>
>> May I see the code you are having trouble with?
>>
>> --
>> ~~Scott Simontis~~
>> Programmer
>>
>>
------------------------------------------------------------------------
>> Do you Yahoo!?
>> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>>=20
>=20
>=20
>=20
=09
_____ =20
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
<http://us.rd.yahoo.com/evt=3D21608/*http://webhosting.yahoo.com/ps/sb/> =
|
|
From: Per W. <pw...@ia...> - 2004-01-23 11:57:27
|
Since char xx[] is a native type, there are no built-in functions
available for character arrays. If you want to perform any operations, you
must call the global functions declared in string.h.
// Compare first 3 characters in array
if (!strncmp(inbuf,"ZIP",3))
// Locate a substring anywhere in the character array
if (strstr(inbuf,"ZIP"))
/Per W
On Fri, 23 Jan 2004, Kenneth P. Ruppel wrote:
> Hi Doug,
>
> Thanks for such a thorough response.
>
> Actually, the root of my problem(s) is char vs. string.=A0 The problem st=
arts right there, because I cannot use string functions on a char array.=A0
> Below, I have gotten to the heart of my lack of understanding.=A0 That co=
mmented-out "string inbufstr" is there because up to now, I have been
> coding that "inbufstr=3Dinbuf" statement to convert the char array to a s=
tring.=A0 Then, I get access to the string manipulation functions.
>
> *************************************************************************=
*************
> #include <fstream>
> #include <iostream>
> #include <string>
> using namespace std;
>
> int main(void)
> {
> =A0=A0=A0 int i,TotRecs;
> =A0=A0=A0 char inbuf[80];
> // =A0=A0 string inbufstr;=A0=A0
> =A0=A0=A0
> =A0=A0=A0 ifstream MtgRec("Q:\\C++\\AAMtgs.txt");
> =A0=A0=A0 ofstream AnalRec("Q:\\C++\\Analysis.txt");
> =A0=A0=A0 ofstream ZipRec("Q:\\C++\\Towns.txt");=A0=A0=A0
> =A0=A0=A0 if (MtgRec.fail()) {cout << "Cannot open file" << endl;}
>
> =A0=A0=A0 i=3D-1;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 // 1st iteration is 0 =
(for 1st subscript)
>
> =A0=A0=A0 while (! MtgRec.eof())
> =A0=A0=A0 {
> =A0=A0=A0 MtgRec.getline(inbuf,80);
> =A0=A0=A0 i++;
> =A0=A0=A0 TotRecs++;
> =A0=A0=A0 }
> // =A0=A0 inbufstr=3Dinbuf;
> =A0=A0=A0 if (inbuf.substr(0,3) =3D=3D 'ZIP')=A0 inbuf.erase(0,3);=A0=A0 =
=A0=A0 // This stmt yields error "request for member 'substr' in 'inbuf', w=
hich is of
> non-aggregate type 'char[80]'"
> system("pause");
> =A0=A0=A0 }
> *************************************************************************=
************
>
> This is where my flip-flopping around and mixing strings and chars begins=
=2E=A0
>
> I am sure the answer to this is so simple that I will be astonished that =
I missed it.=A0 But I'm a real quick study, so go ahead, tell me the way
> out of this.
>
> TIA,
> Ken
> ------------------------------------------------------- The SF.Net email =
is sponsored by EclipseCon 2004 Premiere Conference on Open Tools
> Development and Integration See the breadth of Eclipse activity. February=
3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn
> _______________________________________________ Dev-cpp-users mailing lis=
t Dev...@li... TO UNSUBSCRIBE:
> http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge=
=2Enet/lists/listinfo/dev-cpp-users
>
|
|
From: Kenneth P. R. <kpr...@op...> - 2004-01-23 11:03:41
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<small><font face="Helvetica, Arial, sans-serif">Hi Doug,<br>
<br>
Thanks for such a thorough response.<br>
<br>
Actually, the root of my problem(s) is char vs. string. The problem
starts right there, because I cannot use string functions on a char
array. Below, I have gotten to the heart of my lack of understanding.
That commented-out "string inbufstr" is there because up to now, I have
been coding that "inbufstr=inbuf" statement to convert the char array
to a string. Then, I get access to the string manipulation functions.<br>
<br>
**************************************************************************************<br>
#include <fstream><br>
#include <iostream><br>
#include <string><br>
using namespace std;<br>
<br>
int main(void)<br>
{<br>
int i,TotRecs;<br>
char inbuf[80];<br>
// string inbufstr; <br>
<br>
ifstream MtgRec("Q:\\C++\\AAMtgs.txt");<br>
ofstream AnalRec("Q:\\C++\\Analysis.txt");<br>
ofstream ZipRec("Q:\\C++\\Towns.txt"); <br>
if (MtgRec.fail()) {cout << "Cannot open file" << endl;}<br>
<br>
i=-1; // 1st iteration is 0 (for 1st subscript)<br>
<br>
while (! MtgRec.eof())<br>
{<br>
MtgRec.getline(inbuf,80);<br>
i++;<br>
TotRecs++;<br>
}<br>
// inbufstr=inbuf;<br>
if (inbuf.substr(0,3) == 'ZIP') inbuf.erase(0,3); // This
stmt yields error "request for member 'substr' in 'inbuf', which is of
non-aggregate type 'char[80]'"<br>
system("pause");<br>
}<br>
*************************************************************************************<br>
<br>
This is where my flip-flopping around and mixing strings and chars
begins. <br>
<br>
I am sure the answer to this is so simple that I will be astonished
that I missed it. But I'm a real quick study, so go ahead, tell me the
way out of this.<br>
<br>
TIA,<br>
Ken</font></small><br>
</body>
</html>
|
|
From: Zonnet <gko...@zo...> - 2004-01-23 09:37:19
|
You might want to add a -lfltk to you linker parameters. Or use the Project Options Parameter panel to add a fltk library file. (Don't know which one as I've never usef fltk myself) wkr, Gerke Maya wrote: > Hey Matt! > I modified the 'Makefile' as you suggested. It compiles, but the > linker complains saying that there is an undefined reference to > 'FL_[everything]::[everything]', by 'everything' I mean all references > to the FLTK library. > > What am I doing wrong? > > > Thanks!! > > > Here is an example of my Makefile. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > # fltk's Makefile GNU make 3.80 > # Compiler > CPP = g++.exe #3.3.1 > > #Flags > OPTIONS = -Wall -Wctor-dtor-privacy -DWIN32 > > #Excecutable name > EXEC = fltk_test.exe > > #Variables > > > #Objects to be created > OBJS = main.o > > #Libraries to be included > LDLIBS = -lfltk -lole32 -luuid -lcomctl32 \ > -lwsock32 -lm -lgdi32 -mwindows > > $(EXEC): $(OBJS) > $(CPP) $(LDLIBS) $(OBJS) -o $(EXEC) > > main.o: main.cpp > $(CPP) $(OPTIONS) -c main.cpp > > .PHONY: clean > > clean: > rm -f $(OBJS) $(EXEC) > |
|
From: Maya <Esc...@ne...> - 2004-01-23 08:29:14
|
Hey Matt!
I modified the 'Makefile' as you suggested. It compiles, but the linker
complains saying that there is an undefined reference to
'FL_[everything]::[everything]', by 'everything' I mean all references
to the FLTK library.
What am I doing wrong?
Thanks!!
Here is an example of my Makefile.
~~~~~~~~~~~~~~~~~~~~~~~~~~~
# fltk's Makefile GNU make 3.80
# Compiler
CPP = g++.exe #3.3.1
#Flags
OPTIONS = -Wall -Wctor-dtor-privacy -DWIN32
#Excecutable name
EXEC = fltk_test.exe
#Variables
#Objects to be created
OBJS = main.o
#Libraries to be included
LDLIBS = -lfltk -lole32 -luuid -lcomctl32 \
-lwsock32 -lm -lgdi32 -mwindows
$(EXEC): $(OBJS)
$(CPP) $(LDLIBS) $(OBJS) -o $(EXEC)
main.o: main.cpp
$(CPP) $(OPTIONS) -c main.cpp
.PHONY: clean
clean:
rm -f $(OBJS) $(EXEC)
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|
|
From: Doug M. <dou...@al...> - 2004-01-23 07:18:31
|
Egg on my face. I usually have "search hidden files and folders" checked in the search dialog, but it was unchecked when I looked just now. That's why it didn't find the Dev-Cpp.cfg file. It's also odd that when I retried the "Tools->Check for Updates/Packages..." just now, the complaint about $INCLUDE field was no longer there. You'd think it would have the consderation to break consistently, but no.... 8^) Thanks, Doug > Doug MacDonald wrote: > >> Hi all, >> >> Running WinXP, SP1. I just uninstalled my exe-only dev-c++ and replaced it with the full version with mingw c/c++. Beyond configuring the compilation tools, I haven't used it yet. >> >> Thought I'd update using "Tools->Check for Updates/Packages...", but vUpdate v1.616 comes up with the error >> >> * Error: Your devcpp.cfg file is missing >> the $INCLUDE field in its >> [VUPDATE] section... >> ] Ready, hit check mark to begin... >> >> and, of course, the check mark button does nothing. >> >> Nor does it help to set the options differently, e.g., to the "Default", which sets check boxes to list everything it finds at the update site. >> >> There's no devcpp.cfg anywhere in my computer. Should there be? Is there a dev-c++ feature that should set that up for me? > > > Okay. If you are running Windows XP, it should be under Hard Drive Partiton:\Documents and Settings\Your Username\Local Settings\Application Data. > You may also download Dev-C++ 4.9.8.5 from the site. > >> >> Thanks in advance >> >> Doug |
|
From: Doug M. <dou...@al...> - 2004-01-23 07:14:44
|
Hi Ken,
It's hard to tell what's going on without any variable declarations or
code comments.
Two things are interesting about your code.
First the hang you are seeing. Do you know that the construct
while (MtgCode0 == "W") MtgType=12;
repeats the assignment 'MtgType=12' over and over, as long as the
expression 'MtgCode0 == "W"' remains true? This line will do one of two
things. It will drop through without doing the assignment if MtgCode0
!= "W". Or, if MtgCode0 == "W", it will hang.
You probably wanted straight-through conditionals rather than loops,
something more like:
switch ((int)*(char *)MtgCode0) {
case 'P':
MtgType=10; TotP++; break;
case 'L':
MtgType=11; TotL++; break;
case 'W':
MtgType=12; TotW++; break;
default: TotOther++;
}
However, if I understand your intent, there may be another problem
lurking in your code snippet. I hope you realize that in the expression
MtgCode0 == "W"
you are checking for equality of the value contained in the variable
MtgCode0 with the _address_ of the literal string "W". This code is not
performing a string match! In C and C++, the runtime value of a quoted
string literal (e.g., "W") is the memory address of its first character
- not the char's value.
But, you may say, I've used code like this before, and the comparison
does work when I've assigned "W" to MtgCode0!
Well, yes, it has happened to work, but only because of a fact about how
the compilers generate code.
I'm guessing that prior to reaching this part of the program, another
part of the code assigned the value "W" to MtgCode0. Right? When you
compiled the program, the compiler noticed that you were using the
string literal "W" in more than one place, and its codegen combined the
first "W" (the one you assigned to MtgCode0) and the second "W" (the one
in the equality test) into the same object. Compilers like to economize.
So, when you earlier assigned "W" to MtgCode0, you were really assigning
its address to MtgCode0. And later, when you checked MtgCode0 against
"W", you were really testing the _address_ contained in MtgCode0 against
the _address_ of [the same code object representing] "W".
This works as long as the compiler likes to economize with its code
generation of string literals, AND is able to do so. That's a risky
assumption to make. Suppose you assign the "W" in one subprogram in one
file, let's call it doubleyoo1.cpp, and test equality with "W" in a
second subprogram in a different file, doubleyoo2.cpp. Suppose further
that you compiled the two at separate times and then linked them.
Dollars to donuts, there will be two copies of "W" in the resulting
binary, and the equality test will fail.
You'd be safer using the single-quoted 'W' (an int value containing the
ASCII code for doubleyoo) rather than "W" (the address of a
compiler-generated, zero-terminated, length-two C string containing the
ASCII code for doubleyoo). If you look back, you'll see that is what I
have done in my suggested replacement for your "while" and "switch" blocks.
Hope this helps,
Doug
> I finally decided to teach myself C++ from "Core C++: A Software Engineering Approach" (2000) by Victor Shtern, "Rescued by C++" 3rd Ed. by Kris Jamsa (which was a Borland Turbo C++ Lite book, and now mostly rely on C/C++ Programmer's Reference 2nd Ed. by Herbert Schildt. And, I finally had a real-world application to write a program. Here's the code excerpt that has me baffled.
>
> for (y=1; y<=i; y++);
> if (Groupset[y].substr(0,3) == Day1.substr)x*3-3,3))
> {
> TotDay[x-1]++;
> while (MtgCode0 == "P") MtgType=10;
> while (MtgCode0 == "L") MtgType=11;
> while (MtgCode0 == "W") MtgType=12;
>
> switch (MtgType)
> {
> case '10': TotP++; break;
> case '11': TotL++; break;
> case '12': TotW++; break;
> default: TotOther++;
> } // terminates Switch
>
> } // terminates if
> }; // terminates for
>
> Up to this point, the program runs fine, but it hangs when it hits "while (MtgCode0 == "W") MtgType=12. In Debug, I set this line and the "switch (MtgType) line as checkpoints. When the "while" stmt is encountered, it turns blue in Debug, and will not go past this point. Debug will not continue; the cursor stays on this line. Note that the Debug screen is not frozen -- I can still set checkpoints, move the cursor, etc. But it will not continue after this point.
>
> What's going on here?
>
> Thx, Ken
> ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ 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: Kenneth P. R. <kpr...@op...> - 2004-01-23 06:00:36
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<small><font face="Helvetica, Arial, sans-serif">I finally decided to
teach myself C++ from "Core C++: A Software Engineering Approach"
(2000) by Victor Shtern, "Rescued by C++" 3rd Ed. by Kris Jamsa (which
was a Borland Turbo C++ Lite book, and now mostly rely on C/C++
Programmer's Reference 2nd Ed. by Herbert Schildt. And, I finally had
a real-world application to write a program. Here's the code excerpt
that has me baffled.<br>
<br>
for (y=1; y<=i; y++);<br>
if (Groupset[y].substr(0,3) == Day1.substr)x*3-3,3))<br>
{<br>
TotDay[x-1]++;<br>
while (MtgCode0 == "P") MtgType=10;<br>
while (MtgCode0 == "L") MtgType=11;<br>
while (MtgCode0 == "W") MtgType=12;<br>
<br>
switch (MtgType)<br>
{<br>
case '10': TotP++; break;<br>
case '11': TotL++; break;<br>
case '12': TotW++; break;<br>
default: TotOther++;<br>
} // terminates Switch<br>
<br>
} // terminates if<br>
}; // terminates for<br>
<br>
Up to this point, the program runs fine, but it hangs when it hits
"while (MtgCode0 == "W") MtgType=12. In Debug, I set this line and the
"switch (MtgType) line as checkpoints. When the "while" stmt is
encountered, it turns blue in Debug, and will not go past this point.
Debug will not continue; the cursor stays on this line. Note that the
Debug screen is not frozen -- I can still set checkpoints, move the
cursor, etc. But it will not continue after this point.<br>
<br>
What's going on here?<br>
<br>
Thx, Ken<br>
</font></small>
</body>
</html>
|
|
From: Maya <Esc...@ne...> - 2004-01-23 04:07:37
|
To me the name GCC is synonymous with EVERY_WHERE. You can very easily say: "This code has to compile not only in this machine and that one, but EVERY WHERE!"; meaning that you want this code to be GCC compliant. There is no doubt, GCC is portable to... all common / feasible machines out there. I have use most of the C/C++ compilers in the market, MS or Borland for their speed and the others for the heck of it, but I have come to accept that clients don't care about waiting 2 or 3 nanoseconds, but get really P.O. when I tell them that the project would have to be extended for another 2 or 3 weeks due to code incompatibility. No doubt, GCC *is* the way! For future reference, I cannot say that it was my idea to use GCC, that credit goes to one of my kids. ci...@ya... wrote: >You seek what is known as a cross-compiler. The most popular compiler >for this purpose is gcc/g++ as it is already ported to almost every >major system. > >Unfortunately I am not very familiar with this, If I am developing >for a particular system I get that system to do my developement on. > >Maybe do a search on google will turn up some articles on cross >compiling. > >--- RUDOLPH <ku...@sp...> wrote: > > >>New year greeting to u all! >> >>Has anyone able to complied program using >>DevC++ in MS windows, and use or test it into >>other OS like linux ? >> >>Thank you in advance. >>Rudy >> >> >> > > >===== >Signed >David Mcken > >Life Sucks >Live with it > >__________________________________ >Do you Yahoo!? >Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes >http://hotjobs.sweepstakes.yahoo.com/signingbonus > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >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 > > -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Maya <Esc...@ne...> - 2004-01-23 01:23:10
|
You forgot your own password!! Man, you must need some time away from the every day vida loca :). I happen to know a few programmers, and most of them drink like crazy and work 19 to 21 hrs a day. I know that IT can gobble you up, but it is good to be aware that even though you don't feel beaten... you are, man. Take it easy for a day or two, please? Have a good one ca...@fb... wrote: >hallo Eric, > >ER> http://www23.brinkster.com/noicys/devcpp/ub.htm >ER> to get off the list > >I suppose it is _your_ password, that you entered to subscribe the >list. if you forgot that one you may try to contact the admins about >it. > > > > best regards > Christian > > > --- > > -o) _ > caefer /\\ Message void if penguin violated V > c.2003 _\_V Don't mess with the penguin O > > --------------------------------------------------- > > Christian > > Isarstrasse 4 + Tel. : +49 (0)421 16 535 16 > 28199 Bremen + eMail: mailto:ca...@fb... > > --------------------------------------------------- > > - graphics - webdevelopment - general programming - > > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >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 > > -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Scott S. <age...@co...> - 2004-01-22 21:40:59
|
Doug MacDonald wrote: > Hi all, > > Running WinXP, SP1. I just uninstalled my exe-only dev-c++ and > replaced it with the full version with mingw c/c++. Beyond > configuring the compilation tools, I haven't used it yet. > > Thought I'd update using "Tools->Check for Updates/Packages...", but > vUpdate v1.616 comes up with the error > > * Error: Your devcpp.cfg file is missing > the $INCLUDE field in its > [VUPDATE] section... > ] Ready, hit check mark to begin... > > and, of course, the check mark button does nothing. > > Nor does it help to set the options differently, e.g., to the > "Default", which sets check boxes to list everything it finds at the > update site. > > There's no devcpp.cfg anywhere in my computer. Should there be? Is > there a dev-c++ feature that should set that up for me? Okay. If you are running Windows XP, it should be under Hard Drive Partiton:\Documents and Settings\Your Username\Local Settings\Application Data. You may also download Dev-C++ 4.9.8.5 from the site. > > Thanks in advance > > Doug > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > 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: Juan J. C. L. <jua...@ya...> - 2004-01-22 21:20:05
|
Jens, I looked in the Output Debugger message, and says simply: "Executable file could not be loaded in the debugger" I changed the Project Options to reference "main.exe" as the output... but nothing happens, the error continues... Juan ----- Original Message ----- From: "Jens Tusche" <Tu...@gm...> To: <dev...@li...> Sent: Thursday, January 22, 2004 2:02 PM Subject: [Dev-C++] (no subject) > <Hello, > <Finally, the source compiled Ok. But when I tried to use the debug > <feature of Dev-C++, the blue cursor doesn't appear in the code. I > <compiled the source with the "Generate debugging information" option, > <and the parameters -g and -gcoff in the compiler options, and doesn't do > <the job. > <Maybe there is a trick, or the like... > < > <Thanks in advance. > < > <Juan > > Hi I had the same problems with getting the debugger started, but then > someone advised me to put the parameter -g3 to the compiler options. Since then > it's been working. > > Jens > > -- > +++ GMX - die erste Adresse für Mail, Message, More +++ > Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > 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 > |