dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
(8) |
2
(9) |
3
(5) |
|
4
(10) |
5
(9) |
6
(16) |
7
(11) |
8
(10) |
9
(9) |
10
(4) |
|
11
(3) |
12
(1) |
13
(4) |
14
(6) |
15
(7) |
16
(4) |
17
(11) |
|
18
(7) |
19
(4) |
20
(8) |
21
(10) |
22
(8) |
23
(2) |
24
(6) |
|
25
(6) |
26
(8) |
27
(3) |
28
(1) |
29
(6) |
30
(6) |
31
(10) |
|
From: Eric <eri...@cl...> - 2004-07-31 22:22:11
|
I found this, but it does not print to printer.
#include <iostream.h>
#include <fstream.h>
int main(void)
{
ofstream printer; // ofstream means out file stream
printer.open("LPT1");
printer << "This text will print on the printer.\f";
printer.close(); // close stream
return 0;
}
----- Original Message -----
From: "Eric" <eri...@cl...>
To: <dev...@li...>
Sent: Saturday, July 31, 2004 11:47 PM
Subject: [Dev-C++] very strange error & print to printer
Hi all
I just thought I should stop loosing it an get a C++ project going,
So just to road test the program I clicked on the project tab "Console
application"
on the "additional tab clicked "Hello world"
Then I clicked "OK" and up came.
#include <windows.h>
#include <iosteam.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
cout << "Hello World!" << endl;
cout << "Press ENTER to continue..." << endl;
getchar ();
return 0;
}
++++++++++++++++++++++++++++
Notice the second line that should be #include <iostream.h>
OK
is there a way in your C++ project to send data (like print a invoice)
off to a printer, I looked under "print" in the help files and it was no
help.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 29-Jul-04
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
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...> - 2004-07-31 21:40:12
|
THANK YOU I have already seen the book, and done the course, I don't need to learn the correct way, I was just pointing out the error so a correction could be made to th= e DEV template, so other newbie C++ students don't get stress out by a error within the DEV program. by the mispelt word. THANK YOU ----- Original Message ----- =46rom: "Todd Gardner" <pi...@ea...> To: "Eric" <eri...@cl...>; <dev...@li...> Sent: Sunday, August 01, 2004 1:27 AM Subject: RE: [Dev-C++] very strange error & print to printer > -----Original Message----- > From: dev...@li... < snip > > Notice the second line that should be #include <iostream.h> < snip > See the book Thinking in C++, 2nd ed. Volume 1 =A92000 by Bruce Eckel This is a FREE download from http://www.mindview.net/. Do not get volume 2 of this book. It is way too complicated for beginning. ---------------------------------------------------------------------= -- Standard C++ include format As C++ evolved, different compiler vendors chose different extensions for file names. In addition, various operating systems have different restrictions on file names, in particular on name length. These issue= s caused source code portability problems. To smooth over these rough edges, the standard uses a format that allows file names longer than the notorious eight characters and eliminates the extension. For example, instead o= f the old style of including iostream.h, which looks like this: #include <iostream.h> you can now write: #include <iostream> The translator can implement the include statements in a way that sui= ts the needs of that particular compiler and operating system, if necessary truncating the name and adding an extension. Of course, you can also copy the headers given you by your compiler vendor to ones without extensi= ons if you want to use this style before a vendor has provided support for i= t. The libraries that have been inherited from C are still available wit= h the traditional '.h' extension. However, you can also use them with the m= ore modern C++ include style by prepending a "c" before the name. Thus: #include <stdio.h> #include <stdlib.h> become: #include <cstdio> #include <cstdlib> And so on, for all the Standard C headers. This provides a nice distinction to the reader indicating when you're using C versus C++ libraries. The effect of the new include format is not identical to the old: usi= ng the =2Eh gives you the older, non-template version, and omitting the .h g= ives you the new templatized version. You'll usually have problems if you try = to intermix the two forms in a single program. ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes = on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now= , one more big change to announce. We are now OSTG- Open Source Technol= ogy Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ 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 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.732 / Virus Database: 486 - Release Date: 29-Jul-04 |
|
From: <pri...@co...> - 2004-07-31 19:23:42
|
Is it possible to use a library that was created by a compiler other than gcc? I beleive that the library was created with MSVC++, but I am not certain. Is there a way to tell, by hexdumping the first part of the library, what compiler was used? Thanks, Phil |
|
From: <sp...@po...> - 2004-07-31 16:46:50
|
Jean Pierre Daviau wrote: > Hi to the list users, > > I am trying to make a dll with the function below. > I gess this is the kind of thing it is asking for -eMyClass.dll ? > > It creates a 20K dll witch does not work. > I am using Borland meanwhile. with: > C:\Borland\BCC55\Bin\bcc32.exe -c -I%include_path% -oMyClass.obj > MyClass.c > C:\Borland\BCC55\Bin\bcc32.exe -tWD -eMyClass.dll MyClass.obj > > > Where can I learn about DEVC++ on this? > > > dllwrap.exe: no export definition file provided. > > Creating one, but that may not be what you want > I found this one very helpful: http://www12.canvas.ne.jp/peters/colin/win32/dll/make.html also try mingw wiki pages and this one: http://www.cygwin.com/cygwin-ug-net/dll.html Marek |
|
From: Jean P. D. <dav...@vi...> - 2004-07-31 15:34:41
|
Hi to the list users,
I am trying to make a dll with the function below.
I gess this is the kind of thing it is asking for -eMyClass.dll ?
It creates a 20K dll witch does not work.
I am using Borland meanwhile. with:
C:\Borland\BCC55\Bin\bcc32.exe -c -I%include_path% -oMyClass.obj
MyClass.c
C:\Borland\BCC55\Bin\bcc32.exe -tWD -eMyClass.dll MyClass.obj
Where can I learn about DEVC++ on this?
> dllwrap.exe: no export definition file provided.
> Creating one, but that may not be what you want
--------------
#include "MyClass.h"
JNIEXPORT void JNICALL Java_MyClass_JumpElse( JNIEnv *env, jobject jThis
) {
jclass cls;
jfieldID champ;
jint luku;
jchar jch;
const char *c_ch;
cls = (*env)->GetObjectClass(env, jThis );
/* champ = (*env)->GetStaticFieldID(env, cls, "number", "I" );
luku = (*env)->GetStaticIntField(env, cls, champ );
printf("%d\n", luku);*/
champ = (*env)->GetStaticFieldID( env, cls,
"name","Ljava/lang/String");
jch = (*env)->GetStaticObjectField(env, cls, champ);
c_ch = (*env)->GetStringUTFChars(env, jch, NULL);
printf("%s\n", c_ch);
}
|
|
From: Todd G. <pi...@ea...> - 2004-07-31 13:25:52
|
> -----Original Message----- > From: dev...@li... < snip > > Notice the second line that should be #include <iostream.h> < snip > See the book Thinking in C++, 2nd ed. Volume 1 ©2000 by Bruce Eckel This is a FREE download from http://www.mindview.net/. Do not get volume 2 of this book. It is way too complicated for beginning. ----------------------------------------------------------------------- Standard C++ include format As C++ evolved, different compiler vendors chose different extensions for file names. In addition, various operating systems have different restrictions on file names, in particular on name length. These issues caused source code portability problems. To smooth over these rough edges, the standard uses a format that allows file names longer than the notorious eight characters and eliminates the extension. For example, instead of the old style of including iostream.h, which looks like this: #include <iostream.h> you can now write: #include <iostream> The translator can implement the include statements in a way that suits the needs of that particular compiler and operating system, if necessary truncating the name and adding an extension. Of course, you can also copy the headers given you by your compiler vendor to ones without extensions if you want to use this style before a vendor has provided support for it. The libraries that have been inherited from C are still available with the traditional .h extension. However, you can also use them with the more modern C++ include style by prepending a c before the name. Thus: #include <stdio.h> #include <stdlib.h> become: #include <cstdio> #include <cstdlib> And so on, for all the Standard C headers. This provides a nice distinction to the reader indicating when youre using C versus C++ libraries. The effect of the new include format is not identical to the old: using the .h gives you the older, non-template version, and omitting the .h gives you the new templatized version. Youll usually have problems if you try to intermix the two forms in a single program. |
|
From: Colin L. <ha...@bl...> - 2004-07-31 12:21:48
|
Hello ! We have just released Dev-C++ version 4.9.9.0. Changes since version 4.9.8.10 are bug fixes and support for latest=20 Mingw compiler system with GCC 3.3.1 (included in the distribution). You can download it from http://bloodshed.net/dev/devcpp.html Please report bugs to http://bloodshed.net/bugs Greetings, Colin Laplace |
|
From: Eric <eri...@cl...> - 2004-07-31 11:44:36
|
Hi all
I just thought I should stop loosing it an get a C++ project going,
So just to road test the program I clicked on the project tab "Console
application"
on the "additional tab clicked "Hello world"
Then I clicked "OK" and up came.
#include <windows.h>
#include <iosteam.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
cout << "Hello World!" << endl;
cout << "Press ENTER to continue..." << endl;
getchar ();
return 0;
}
++++++++++++++++++++++++++++
Notice the second line that should be #include <iostream.h>
OK
is there a way in your C++ project to send data (like print a invoice)
off to a printer, I looked under "print" in the help files and it was no
help.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 29-Jul-04
|
|
From: Per W. <pw...@ia...> - 2004-07-30 22:23:51
|
Are you compiling the code as C++?
In that case you should rewrite the lines like:
in = (fftw_complex*)fftw_malloc(sizeof...
out = (fftw_complex*)fftw_malloc(sizof...
to typecast from void* to the data type of the in and out variables.
In older standards, there was an automagic cast from void* to everything
but newer standards likes you to manually specify that you know what data
types you have and what data types you want.
/Per W
On Fri, 30 Jul 2004 jd...@st... wrote:
> Siva:
>
> Thanks for your help, and I did as you suggested, and tried compiling the
> tutorial code...but I'm getting an error I don't quite understand:
>
> invalid conversion from `void*' to `double (*)[2]'
>
> this appears at the two lines with fftw_malloc(lines starred in my code below)
> here's the exact code I'm trying to compile...and I already put the header in
> the include folder and linked the .lib file. If you or anyone else had any
> ideas why this would happen, I'd appreciate it thanks.
>
> #include <stdlib.h>
> #include <fftw3.h>
>
> int main()
> {
> int N = 256;
> fftw_complex *in, *out;
> fftw_plan p;
> * in = fftw_malloc(sizeof(fftw_complex) * N);
> * out = fftw_malloc(sizeof(fftw_complex) * N);
> p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
> fftw_execute(p); /* repeat as needed */
> fftw_destroy_plan(p);
> fftw_free(in); fftw_free(out);
> system("PAUSE");
> return 0;
> }
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> _______________________________________________
> 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: Siva C. <siv...@ya...> - 2004-07-30 18:41:01
|
Sorry, I mis-read the last mail from jdcohen@st... and gave a reply based on my mis-understanding. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |
|
From: Siva C. <siv...@ya...> - 2004-07-30 17:45:45
|
Hello,
Below is the code you said you used to test. I have
tried compiling it but with two changes. And it works.
I removed the two *'s which are at the begining of the
lines which call the fftw_malloc function. But
everything else is as you said you did.
> #include <stdlib.h>
> #include <fftw3.h>
>
> int main()
> {
> int N = 256;
> fftw_complex *in, *out;
> fftw_plan p;
> * in = fftw_malloc(sizeof(fftw_complex) * N);
> * out = fftw_malloc(sizeof(fftw_complex) * N);
> p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD,
> FFTW_ESTIMATE);
> fftw_execute(p); /* repeat as needed */
> fftw_destroy_plan(p);
> fftw_free(in); fftw_free(out);
> system("PAUSE");
> return 0;
> }
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
|
|
From: <jd...@st...> - 2004-07-30 17:09:03
|
Siva:
Thanks for your help, and I did as you suggested, and tried compiling the
tutorial code...but I'm getting an error I don't quite understand:
invalid conversion from `void*' to `double (*)[2]'
this appears at the two lines with fftw_malloc(lines starred in my code below)
here's the exact code I'm trying to compile...and I already put the header in
the include folder and linked the .lib file. If you or anyone else had any
ideas why this would happen, I'd appreciate it thanks.
#include <stdlib.h>
#include <fftw3.h>
int main()
{
int N = 256;
fftw_complex *in, *out;
fftw_plan p;
* in = fftw_malloc(sizeof(fftw_complex) * N);
* out = fftw_malloc(sizeof(fftw_complex) * N);
p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
fftw_execute(p); /* repeat as needed */
fftw_destroy_plan(p);
fftw_free(in); fftw_free(out);
system("PAUSE");
return 0;
}
|
|
From: Siva C. <siv...@ya...> - 2004-07-30 05:13:19
|
Hello, --- jd...@st... wrote: > Hi, I'm pretty new to using outside libraries...so I > don't really understand > how to install the FFTW(fast fourier transform made > at MIT) library for use > with my C++ programs(in fact i probably wouldn't > really get how to install any > outside library other than including a .h file). Here is what I have done to get going with FFTW. 1. First go to the fftw web-site and download the mingw binaries. The downloaded stuff includes two binaries fftw3.dll and fftw3.lib. It also has the include file. Copy this include file to the include folder of DevC++. 2. Create a new empty C project using Dev-C++. 3. Add a new *.c source file to your project. In this file you can add the #include <fftw3.h> directive and put in the rest of your code. As test you can copy the code from the fftw tutorial. 4. Go to Project->Options->Parameters. There, use the "add a library button" to add the fftw3.lib file. 5. Then compile your project. 6. You should now have an executable ready. Put the fftw3.dll in the same directory as the executable or the windows system directory. 7. Run your executable! Hope this helps, Siva Chandra __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
|
From: <jd...@st...> - 2004-07-30 02:01:52
|
Hi, I'm pretty new to using outside libraries...so I don't really understand how to install the FFTW(fast fourier transform made at MIT) library for use with my C++ programs(in fact i probably wouldn't really get how to install any outside library other than including a .h file). I have Windows XP and use Bloodshed Dev-C++ Version 2...if anyone could walk me through(please don't make assumptions about what I already know other than how to write C++ code...) it would be a great help, and I would really appreciate it. thanks a ton |
|
From: Taylor E. <tay...@fe...> - 2004-07-29 22:55:42
|
Thanks, That did it! ----- Original Message ----- From: "Michal Molhanec" <mi...@mo...> To: "Taylor Engineering" <tay...@fe...> Cc: "Dev-C++ Mailing List" <dev...@li...> Sent: Thursday, July 29, 2004 6:27 PM Subject: Re: [Dev-C++] Where did the resource file go? > Taylor Engineering wrote: > > I compiled a couple of the example projects with no problem. But in the case > > of my project, it looks like the resource file is not considered. The menus, > > toolbars, and icons are not showing. > > look at Project\Project options\Files and click on your resource files > if they have set the "Include in compilation" flag > |
|
From: Michal M. <mi...@mo...> - 2004-07-29 21:27:50
|
Taylor Engineering wrote: > I compiled a couple of the example projects with no problem. But in the case > of my project, it looks like the resource file is not considered. The menus, > toolbars, and icons are not showing. look at Project\Project options\Files and click on your resource files if they have set the "Include in compilation" flag |
|
From: Taylor E. <tay...@fe...> - 2004-07-29 20:50:02
|
Hi, I updated from devc++ version 4.01 to 4.9.8.0 (well it is the one I downloaded some time ago, but 4.01 was working fine for me). A project it was working well in the old version now seems not to work. I compiled a couple of the example projects with no problem. But in the case of my project, it looks like the resource file is not considered. The menus, toolbars, and icons are not showing. I checked and compared the directories settings, but I cannot find any problem there. Any suggestion? The resource file is included in the project and it also shows in the file list (it shows 9 header files, 9 implementation files, and 1 resource file). I'd appreciate your help. Thanks. Jorge |
|
From: David M. <dml...@co...> - 2004-07-29 13:03:31
|
Hmm, A strange error indeed.
What system type are you using? 32 or 64 bit?
What operating system?
What compiler?
What are the optimization settings?
Gavin Kalms wrote:
>Hello, I am using a float inside a struct, when I assign a number 999,999 or
>below, its fine, when I assign a number larger than that, it corrupts an
>integer I also have contained in the struct. I though maybe the float was
>overflowing, so I changed it to a double, but it still corrupts the integer.
>Anyone have any ideas what could be causing the problem?
>
>typedef struct {
> unsigned char Hour, Minute, Second;
> unsigned char Day, Month, Year;
> float DLat, MLat, SLat;//, LatOrg;
> float DLon, MLon, SLon;//, LonOrg;
> double LonOrg, LatOrg;
> char sDLat[10], sMLat[10], sSLat[10], sLatOrg[10];
> char sDLon[10], sMLon[10], sSLon[10], sLonOrg[10];
> int InsertNum, Depth, Interval, Data[40];
>} CP40InStruct;
>
>LonOrg and LatOrg are the 2 that I changed to double, InsertNum is the
>variable that becomes corrupt when numbers larger than 999,999 are placed
>into LonOrg or LatOrg.
>
>Thanks
>Gavin
>
|
|
From: Alf C S. <al...@st...> - 2004-07-29 09:54:11
|
I am attempting to compile a Dev-C++ version 4.9.8.0 generated C program on my Windows XP machine. Doing a compile I get the following error:- gcc.exe C:\dev\gcc.exe cannot specify -o with -c or -S and multiple compilations Editing the Makefile.win and removing the -c and does not help as Dev-C++ just puts it back, therefore I attempted to compile from the command line as follows and get the following error. C:\dev>\Dev-Cpp\bin\gcc.exe gtk-main.c -o gtk-main.o -I"C:/Dev-C++/include" -I" C:/Dev-C++/include/gtk-2.0" -I"c:/Dev-C++/include/gtk-2.0" -I"C:/Dev-C++/inclu de/pango-1.0" -I"C:/Dev-C++/include/atk-1.0" -I"C:/Dev-Cpp/include" "c:/Dev-C ++/bin/pkg-config.exe" --cflags -mms-bitfields -ansi -traditional-cpp \Dev-Cpp\bin\..\lib\gcc-lib\mingw32\3.2\tradcpp0.exe: invalid option `-std=c89' Will someone please tell me what I have done wrong ? --- Regards, Alf Stockton www.stockton.co.za Stop searching. Happiness is right next to you. Now, if they'd only take a bath ... |
|
From: Jean P. D. <dav...@vi...> - 2004-07-29 02:45:57
|
Hi, I am on windows XP I am trying to creta adll with DEVC++5 . It is done but I have a java.lang.UnsatisfiedLinkError. I have red somewhere it could be because the method name is added a @8 something in the dll. How can I see in the dll? Somebody heard something aboiut that. Someone knows about JNI on the user list Jean |
|
From: Gavin K. <ga...@ag...> - 2004-07-28 02:59:07
|
Hello, I am using a float inside a struct, when I assign a number =
999,999 or
below, its fine, when I assign a number larger than that, it corrupts an
integer I also have contained in the struct. I though maybe the float =
was
overflowing, so I changed it to a double, but it still corrupts the =
integer.
Anyone have any ideas what could be causing the problem?
typedef struct {
unsigned char Hour, Minute, Second;
unsigned char Day, Month, Year;
float DLat, MLat, SLat;//, LatOrg;
float DLon, MLon, SLon;//, LonOrg;
double LonOrg, LatOrg;
char sDLat[10], sMLat[10], sSLat[10], sLatOrg[10];
char sDLon[10], sMLon[10], sSLon[10], sLonOrg[10];
int InsertNum, Depth, Interval, Data[40];
} CP40InStruct;
LonOrg and LatOrg are the 2 that I changed to double, InsertNum is the
variable that becomes corrupt when numbers larger than 999,999 are =
placed
into LonOrg or LatOrg.
Thanks
Gavin
|
|
From: Dane E. <DE...@pa...> - 2004-07-27 20:55:29
|
Hi all,
=20
Thank you in advance for any help you can offer.
=20
Im now trying to parse through a string variable that is comma
seperated.
I keep crashing the application with my very crude code. Can anyone
recommend
a different amateur way of doing this?=20
=20
Here is my code:
string member; //holds the whole string
string id; //first part to extract
string fname; // second part..
string lname; // etc.
string address;
int k; // this is var to increment. =20
=20
ifstream inData;
inData.open("test.txt");
getline ( inData, member );
k =3D 0;
for(int i =3D 0; member[i] !=3D ','; i++)
{id =3D id + member[i]; k =3D i;}
++k;
for(int i =3D k; member[i] !=3D ','; i++)
{fname =3D fname + member[i]; k =3D i;}
++k;
for(int i =3D k; member[i] !=3D ','; i++)
{lname =3D lname + member[i]; k =3D i;}
++k;
for(int i =3D k; member[i] !=3D member.length(); i++)
{address =3D address + member[i]; k =3D i;}
=20
cout << id << " " << fname << " " << lname << " " << address << endl;
Best regards,
Dane
|
|
From: P.D. v. Z. <pd...@xs...> - 2004-07-27 20:12:07
|
Or like this (who needs a counter when the vector class manages
everything itself, and when we have iterators):
ifstream in("somefile.txt");
vector<string> address;
while (getline(in, address))
address.push_back();
for (address::const_iterator it = address.begin(); it != address.end();
++it)
{
cout << *it << endl;
}
Scott Simontis wrote:
> Like this:
> ifstream in("somefile.txt");
> vector<string>address;
> int vectorcount;
>
> while( getline( in, address ) )
> {
> address.push_back();
> vectorcount++;
> }
>
> And to print the information:
> for( vectorcount; vectorcount > 0; vectorcount-- )
> {
> cout << address[vectorcount];
> }
>
> This method uses vectors, so make sure you include <vector> For more
> information, look for STL references.
|
|
From: Scott S. <age...@co...> - 2004-07-27 13:28:19
|
Like this:
ifstream in("somefile.txt");
vector<string>address;
int vectorcount;
while( getline( in, address ) )
{
address.push_back();
vectorcount++;
}
And to print the information:
for( vectorcount; vectorcount > 0; vectorcount-- )
{
cout << address[vectorcount];
}
This method uses vectors, so make sure you include <vector> For more
information, look for STL references.
Dane Ensign wrote:
>Hi all,
>
>Thank you for any help you can offer.
>
>Im trying to load a street address into cout from a text file. The
>address is a string. I can only get the string as far as the first
>space.
>For example, my value is: 123 North Oak Way. The only part I can return
>is '123'. If I seperate the values of my line with commas instead of
>spaces,
>how do I read everything between the commas or tabs, if I had used them?
>
>Best regards,
>
>Dane
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
>_______________________________________________
>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: Per W. <pw...@ia...> - 2004-07-26 22:15:11
|
If you include conio.h, no declared functions will be included in your program. However, when your program uses one or more variables or functions from a library, the linker will extract the needed object files from the relevant library. Since a library is just a single file containing a collection of object files, the library creator will decide what granularity of functions the linker may select. If all conio functions were compiled from a single source file, all conion functions will be located in the same object file within the library. Then, the linker is forced to include all conio functions - even the unused ones. This is one of the reasons why source code to runtime libraries normally contains thousands and thousands of small source files. Each source file just contains one or two functions, to give the linker a possibility of being selective about what to include. /Per W On Mon, 26 Jul 2004, Noorez Kassam wrote: > Question with library files and include files. > For example, if i included conio.h, do all the object files of the declar= ed > functions get included in my program from the libraries or just the > functions that I actually use in my program? > > _________________________________________________________________ > Take advantage of powerful junk e-mail filters built on patented Microsof= t=AE > SmartScreen Technology. > http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D= 1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines > Start enjoying all the benefits of MSN=AE Premium right now and get the > first two months FREE*. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick > _______________________________________________ > 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 > |