dev-cpp-users Mailing List for Dev-C++ (Page 529)
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: Neszt T. <ne...@ss...> - 2002-09-06 09:53:23
|
Hi All! Where can I get glut static lib to use it with dev-c++? Tibor |
|
From: Cesar R. <cs...@uo...> - 2002-09-06 00:43:30
|
Folks,
After I updated my Devcpp installation to the present 4.9.5.2 I'm
experiencing a weird bug:
The way to produce it in my installation is as follows:
1) Create a new project;
2) choose "Windows Application";
3) choose "C project" in the radio buttons;
4) let the default source be main.c;
5) compile the project.
You get the following compiler log:
Building Makefile: "C:\Meus documentos\Makefile.win"
Executando make...
make.exe -f "C:\Meus documentos\Makefile.win" all
gcc.exe -c ../Dev-C++/Templates/main.c -o ../Dev-C++/Templates/main.o
-I"C:\DEV-C++\include" -g3 -mwindows
In file included from C:/DEV-C++/include/windows.h:117,
from ../Dev-C++/Templates/main.c:1:
C:/DEV-C++/include/winnls.h:415: redefinition of `LONG_PTR'
C:/DEV-C++/include/basetsd.h:94: `LONG_PTR' previously declared here
make.exe: *** [../Dev-C++/Templates/main.o] Error 1
Execu=E7=E3o terminada
-----------------------------
The include file 'winnls.h' line 415 (below), seems to me to be
correctly guarded by an ifndef and basetsd.h is include in windows.h at
line 107 ten lines before winnls.h!
414: #ifndef _BASETSD_H
415: typedef long LONG_PTR;
416: #endif=20
Are you experiencing something similar?
--=20
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
|
|
From: Thomas K. <tho...@gm...> - 2002-09-05 19:44:14
|
> BTW, to whom may I send the six lines so the language file Portuguese > have this set? Have a look at http://devcpp.everfloyd.com/lang.html or contact Colin Laplace greetings, Thomas |
|
From: Thomas K. <tho...@gm...> - 2002-09-05 19:30:17
|
> Does anyone know how to make DevPak packages? I have been interested > in creating packages for devcpp but have not been able to find any > documentation on how to do so. Is there a tool that is used to make > them? The best way would be to contact Hongli Lai. He's the one who made most if not all of the packages available! h....@ch... Thomas |
|
From: Carlos d. M. <cg...@wo...> - 2002-09-05 19:16:49
|
The mailing list "home page" has no search box, and the search engines I proved (altavista, google and hotbox) do not show pages of it. No "[Dev-C++]", no url:theurl, and if it find some page of the list it is mixed between many more unrelated pages and from the 34th position. xavier escribi=F3: > How is it possible to search on the mailing list Dev-c++ please ? > > Xavier > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 > _______________________________________________ > 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 |
|
From: Carlos d. M. <cg...@wo...> - 2002-09-05 19:14:17
|
Go to the archive and search the messages of the past month, there was as= ked the same thing, and I replied with the direction of a site where it's sai= d something about it. Ioannis Vranos escribi=F3: > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Abhijit Shylanath > > Sent: Thursday, September 05, 2002 7:24 PM > > To: Dev-C++ Mailing List > > Subject: [Dev-C++] Fw: Hello > > > > Hello, > > I downloaded the Dev-c++ but I don't know how to use it pls > > can you tell me > > how to go about compiling and running programs right from opening th= e > > environment (Dev-C++), I don't know how to use it at all. > > Wait for the upcoming release of the book "Installing and operating > Dev-C++" by Colin Laplace, Hongli Lai. As far as i have heared it will > cost about 300=88. > > > > And also, if you > > have a c tutorial, please I need it because I think it is > > necessary to learn > > c along side with c++. > > I have a Tutorials section in my site, perhaps you will find something > there: > > http://www.noicys.cjb.net/links.htm > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=3Durceforge1&refcode1=3Dvs3390 > _______________________________________________ > 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 |
|
From: Thomas K. <tho...@gm...> - 2002-09-05 19:01:20
|
Why do you post your bug reports and feature requests here? For the developers and all other intrested persons it would be much easier if you use the bug report and feature request system of sourceforge; http://sourceforge.net/tracker/?group_id=10639 thx, Thomas |
|
From: xavier <x.p...@fr...> - 2002-09-05 17:50:28
|
How is it possible to search on the mailing list Dev-c++ please ? Xavier |
|
From: xavier <x.p...@fr...> - 2002-09-05 17:35:29
|
Hi all, Congratulation for this fantastic Software that is DEv-C++ ! I am new here and sorry in advance if my question is not appropried here. Here it is : We have a project in my company that use a DLL for doing many things next . We must recreate a DLL with the same name that the existing one for calling what we want to call next. I am a newbie on Dev-C++ and C++ programming, but I have good bases on programming in general. First I have made a test dll with Dev-C++ and compile fine with a msgbox function. But I would like to test this DLL I haven't find any example of a simple program ( writen in C++ of course) who call a DLL simply for testing it. Anyone could help me please on this ? If someone have a good example of a little prog calling a little DLL ? Thanks a lot. Xavier. |
|
From: Ioannis V. <no...@ho...> - 2002-09-05 16:51:59
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Abhijit Shylanath > Sent: Thursday, September 05, 2002 7:24 PM > To: Dev-C++ Mailing List > Subject: [Dev-C++] Fw: Hello >=20 > Hello, > I downloaded the Dev-c++ but I don't know how to use it pls=20 > can you tell me > how to go about compiling and running programs right from opening the > environment (Dev-C++), I don't know how to use it at all. Wait for the upcoming release of the book "Installing and operating Dev-C++" by Colin Laplace, Hongli Lai. As far as i have heared it will cost about 300=88. =20 > And also, if you > have a c tutorial, please I need it because I think it is=20 > necessary to learn > c along side with c++. I have a Tutorials section in my site, perhaps you will find something there: http://www.noicys.cjb.net/links.htm Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ho...> - 2002-09-05 16:47:15
|
-----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Abhijit Shylanath > Sent: Thursday, September 05, 2002 7:15 PM > To: Carlos Garc=EDa del Monte; dev-cpp-users-list > Subject: Re: [Dev-C++] realloc >=20 > No way under C++ to=20 > realloc() a new'ed > pointer, is there? (Apart from writing your own `renew' function) In C++ standard library containers must be preferred instead of manually allocating and deallocating memory on the free store. No realloc() feature is provided as stand alone. Take also a look at: http://www.research.att.com/~bs/bs_faq2.html#renew Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Abhijit S. <mu...@gm...> - 2002-09-05 16:31:57
|
> Hi Carlos ,
>
>
> sorry, but i send the wrong snipped (one of the trys)...
>
> If I execute it as follows, it crashes...
>
> Any idea ?
>
>
>
>
>
> #include "stdio.h"
> #include "fstream.h"
> #include "windows.h"
>
>
>
> int main(int argc, char* argv[])
> {
> BYTE * buffer;
> int nRead = 0;
>
>
> ifstream *fb = new ifstream;
> fb->open("c:\\out.cal");
>
>
> if(fb->fail() != 0)printf("Cant opne\n");
>
>
> fb->seekg(0);
>
>
> while (!fb->eof())
> {
> fb->read(buffer, 2048);
> nRead = nRead + 2048;
> printf("%i\n", nRead);
> };
>
>
> getchar();
> return 0;
> }
>
>
>
> If I execute this I get an acces voilation after the read function ...
>
>
>
> Does any one have an idea ?
Greets, Christian.
The problem is that you haven't allocated memory for the buffer. You say
char *buffer. How big should it be? The compiler has no idea. Replace it
with char buffer[2048] or, better yet, allocate it on-the-fly using `new'.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: Abhijit S. <mu...@gm...> - 2002-09-05 16:29:43
|
----- Original Message ----- From: Vlada Djurovic To: DevC++ help Sent: Thursday, September 05, 2002 4:14 PM Subject: [Dev-C++] no menu Hi ! I have very frustrating problem: I wrote an .rc file containing menu definition, added it to project, everything compiled OK, but when I run the application, I don't get menu on it. Everything else seems OK except this. What's wrong? Any help is appriciated. ------------------------ Dev doesn't notice when the .RES file needs to be updated. So delete the .RES file to force it, and it should work. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Abhijit S. <mu...@gm...> - 2002-09-05 16:25:24
|
----- Original Message ----- From: Damilare Adebawo To: mu...@gm... Sent: Thursday, September 05, 2002 12:46 AM Subject: Hello Hello, I downloaded the Dev-c++ but I don't know how to use it pls can you tell me how to go about compiling and running programs right from opening the environment (Dev-C++), I don't know how to use it at all. And also, if you have a c tutorial, please I need it because I think it is necessary to learn c along side with c++. Expecting your mail soon, thanks Damilare. --------------------------- |
|
From: Abhijit S. <mu...@gm...> - 2002-09-05 16:19:28
|
----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Wednesday, September 04, 2002 12:39 AM Subject: Re: [Dev-C++] realloc The point is that with realloc, if it succeeds the original memory pointed by the argument pointer is freed and so you can forget it and work with the new, but if it fails, then the memory pointed to by the argument pointer remains valid, and if you use that same pointer as return value, then you get that the pointer is no more pointing to that piece of still valid memory, and, how you free it? it will be annoying your program. The moral of the story is, don't use the same pointer as argument and return value of realloc. If it fails, if(!returnpointer) work with the original and free(original) if it succeeds else work with the new and forget the old. --------------------------- Yeah, sorry for the leads-to-memory-leak-type mistake (which I hate and detest and avoid at all costs :). No way under C++ to realloc() a new'ed pointer, is there? (Apart from writing your own `renew' function) ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Abhijit S. <mu...@gm...> - 2002-09-05 16:19:22
|
----- Original Message -----
I don't see the point. unsigned char is one byte, isn't it? Maximum is 255.
So what sense has compare a variable which max value is 255 with a number
greater?
I remember reading somewhere that unsigned char is one byte in all
computers.
Abhijit Shylanath escribió:
> Hi List,
>
>
>
> I have an unsigned char* with the value 12345678 (as int) and I need to
> compare the first 4 numbers with another value (unsigned char).
>
> Does someone have an idea ???
Greets, Christian.
Is this what you're looking for?
int foo = 12345678;
unsigned char bar = 23;
while(foo > 255)
foo /= 10;
if(foo == bar)
// whatever
----------------------------
True, but the question was asked in that manner, and I answered like that,
even though I suspected that it was a typing error (clever me), to
explain the method. But on reading this now, I realize that he'd asked for
(char *)... so it would be
char *string = "1234567";
int foo = atoi(string);
[etc.]
Hope this (time's post) helps.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: Philippe L. <phi...@te...> - 2002-09-05 15:42:07
|
Hello, I forgot the attach file in the precedent message !!!. I do somes trial with the today version of dev-c++ (4.9.5.2) and i have found somes bugs: A) I build a DOS Console "Hello World" project in c with a single file hello.c. I put a breakpoint in the main function and start the debugger. Every time i press the step button dev-cpp adds a label "hello.c" in the main edit window. At the end of the program in can't close the main window by closing the project. I never see under the debugger on the Dos Console the magic sentance "Hello World !!!" by if i run directly the programm, i can see it. B) Some times after a lot of click events in the main eedit window and the Project window, i can't use the wheel button. C) If i run the gcc.exe with the Zip Magic product (Ontrack Company www.ontrack.com), I have a "blue screen" on my Pc under Win98 with the 0E error in VDX in a dll of ZipMagic. I never have this with Visual C++. D) I am using a Dell latitude in a Dock Station. Every time dev-cpp calls gcc.exe it access to the diskett drive on the Dock Station !!!!. I never have this with Visual C++. E) I try to build a real project with the GNU crawler wget 182. I success to build it if and only if the project is in the main directory and i do not set the Ouput Object directory and the Output Executable directory. I join a listing file with an example witch fails. F) After somes events dev-cpp prints somes cascading dialog box : "List Index out of range". Because, i Like this product, I have somes wishes : A) A mean to easily access to the edit objects of a file (block, expressions, function, ...) as in emacs or vim or vi ({, [[,%, ...). B) A mean to easily set and modify the .gdbinit file of a project. C) A mean to easily load an include file because i don't want to check the "global include directive" of the "Browser File" dialog box for a project. D) A mean to easily access all the references of an object in a project (global variables, classes, function, ...). Thanks, Philippe Lucas ph...@te... |
|
From: Ihsan A. Al D. <ia...@jo...> - 2002-09-05 15:12:02
|
Hi I downloaded a DevPack package. How do I open it? Mohammed |
|
From: Philippe L. <phi...@te...> - 2002-09-05 14:32:02
|
Hello, I do somes trial with the today version of dev-c++ (4.9.5.2) and i have found somes bugs: A) I build a DOS Console "Hello World" project in c with a single file hello.c. I put a breakpoint in the main function and start the debugger. Every time i press the step button dev-cpp adds a label "hello.c" in the main edit window. At the end of the program in can't close the main window by closing the project. I never see under the debugger on the Dos Console the magic sentance "Hello World !!!" by if i run directly the programm, i can see it. B) Some times after a lot of click events in the main eedit window and the Project window, i can't use the wheel button. C) If i run the gcc.exe with the Zip Magic product (Ontrack Company www.ontrack.com), I have a "blue screen" on my Pc under Win98 with the 0E error in VDX in a dll of ZipMagic. I never have this with Visual C++. D) I am using a Dell latitude in a Dock Station. Every time dev-cpp calls gcc.exe it access to the diskett drive on the Dock Station !!!!. I never have this with Visual C++. E) I try to build a real project with the GNU crawler wget 182. I success to build it if and only if the project is in the main directory and i do not set the Ouput Object directory and the Output Executable directory. I join a listing file with an example witch fails. F) After somes events dev-cpp prints somes cascading dialog box : "List Index out of range". Because, i Like this product, I have somes wishes : A) A mean to easily access to the edit objects of a file (block, expressions, function, ...) as in emacs or vim or vi ({, [[,%, ...). B) A mean to easily set and modify the .gdbinit file of a project. C) A mean to easily load an include file because i don't want to check the "global include directive" of the "Browser File" dialog box for a project. D) A mean to easily access all the references of an object in a project (global variables, classes, function, ...). Thanks, Philippe Lucas ph...@te... |
|
From: Per W. <pw...@ia...> - 2002-09-05 14:02:56
|
Nothing strange with the sizeof operator since arr is a pointer (a pointer to a pointer is also a pointer :-), sizeof arr is of course the size of a pointer. For many machines - do never use this as a fact unless you write hw drivers or something - the size of a pointer is the same as the size of an integer, so sizeof(arr)/sizeof(int) should give the value 1. When you define an array as int x[10], then x is NOT a pointer, even if it may be used instead of a pointer on the right-hand side of assignments. This means that sizeof(x)/sizeof(*x) = sizeof(x)/sizeof(int) = 10. About the loop for allocation of the second index of the array. It should be obvious why it is needed if you look at the following picture. The first allocation allocates a vector (one-dimensional array) of pointers to integers. Then each of these pointers must be initialized to a vector of integers, i.e. a loop is needed. |------------ |------------ |------------ |------------ |------------ |------------ Cheers /Per Westermark EMA System email: pw...@ia... Per Westermark web: http://iapetus.neab.net Vargvaegen 174B phone: +46 8 410 17 198 S-906 42 Umeaa Sweden On Thu, 5 Sep 2002, Ramana Kumar wrote: > you must use a for loop because each value of x in arr[x] must be assigned a > new int[ncolumns], not just one value. > the sizeof operator, i do not know how it works, but it sometimes behaves > unexpectedly especially with multidimensional arrays, and it responds > differently in different scopes. someone else can explain this better. > why must you have int **arr? > what about int* arr[nrows][ncolumns]? this is safer, even if only because it > lets you think more logically so you don't accidently read past the end of > the array. > you would then have a nested for loop to give each item in the > multidimensional array a new int. > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of senem beken > Sent: Thursday, 5 September 2002 7:50 PM > To: dev...@li... > Subject: [Dev-C++] q3?? > > > > include <iostream> > #include <stdlib.h> > int main() > { > int nrows,ncolumns; > nrows=ncolumns=5; > int **arr=new int*[nrows]; > for(int i=0;i<ncolumns;i++) //why do i have to use a for loop > arr[i]=new int[ncolumns]; //to create a multiple subs array > // dynamically?? > //why can't i use a code like: > ; //int **arr=new int*[nrows]; > // *arr=new int[ncolumns]; ??? > > for(int i=0;i<nrows;i++) > for(int j=0;j<ncolumns;j++) > arr[i][j]=0; > for(int i=0;i<nrows;i++) > for(int j=0;j<ncolumns;j++) > cout<<arr[i][j]<<" "; > cout<<sizeof(arr)/sizeof(int)<<endl; //and why does this part return 1 > //instead of 25?? > cout<<nrows<<" "<<ncolumns<<endl; > system("PAUSE"); > return 0; > } > > > > > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > 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 > |
|
From: Ramana K. <ra...@my...> - 2002-09-05 13:34:48
|
i'm sorry, i misread your question before, i thought you could not open the
file. sorry, carlos is right, you need a char*
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Carlos García
del Monte
Sent: Thursday, 5 September 2002 9:30 PM
To: dev-cpp-users-list
Subject: Re: AW: [Dev-C++] reading a binary file
You say char buffer, it shall be char *buffer, the function expects a
pointer.
Christian Wallukat escribió:
Hi List,
i have a problem readding a binary file.
I have a 1.3 MB File, and i hav to read 2048 bytes (if != eof),
if have tryed it with ReadFile() but i every time get an acces violation
...
My last try was ifstream:
#include "stdio.h"
#include "fstream.h"
#include "windows.h"
int main(int argc, char* argv[])
{
char buffer;
int nRead = 0;
ifstream *fb = new ifstream;
fb->open("c:\\out.cal");
if(fb->fail() != 0)printf("Cant opne\n");
fb->seekg(0);
while (!fb->eof())
{
fb->read(buffer, 2048);
nRead = nRead + 2048;
printf("%i\n", nRead);
};
getchar();
return 0;
}
If I execute this I get an acces voilation after the read function ...
Does any one have an idea ?
Kind r
Christian
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
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
|
|
From: Ramana K. <ra...@my...> - 2002-09-05 13:33:24
|
if you get access violation even if you use ReadFile() or ifstream, maybe it
is the file you are trying to open that has problems, or is protected or
something.
why do you make fb a pointer?
have you tried with just ifstream fb("c:/file");
?
and maybe use c:/ instead of c:\\. i'm not sure how much any of this will
make a difference, but worth a try.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Christian
Wallukat
Sent: Thursday, 5 September 2002 8:12 PM
To: dev...@li...
Subject: AW: [Dev-C++] reading a binary file
Hi List,
i have a problem readding a binary file.
I have a 1.3 MB File, and i hav to read 2048 bytes (if != eof),
if have tryed it with ReadFile() but i every time get an acces violation ...
My last try was ifstream:
#include "stdio.h"
#include "fstream.h"
#include "windows.h"
int main(int argc, char* argv[])
{
char buffer;
int nRead = 0;
ifstream *fb = new ifstream;
fb->open("c:\\out.cal");
if(fb->fail() != 0)printf("Cant opne\n");
fb->seekg(0);
while (!fb->eof())
{
fb->read(buffer, 2048);
nRead = nRead + 2048;
printf("%i\n", nRead);
};
getchar();
return 0;
}
If I execute this I get an acces voilation after the read function ...
Does any one have an idea ?
Kind r
Christian
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
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
|
|
From: Ramana K. <ra...@my...> - 2002-09-05 13:30:53
|
you must use a for loop because each value of x in arr[x] must be assigned a
new int[ncolumns], not just one value.
the sizeof operator, i do not know how it works, but it sometimes behaves
unexpectedly especially with multidimensional arrays, and it responds
differently in different scopes. someone else can explain this better.
why must you have int **arr?
what about int* arr[nrows][ncolumns]? this is safer, even if only because it
lets you think more logically so you don't accidently read past the end of
the array.
you would then have a nested for loop to give each item in the
multidimensional array a new int.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of senem beken
Sent: Thursday, 5 September 2002 7:50 PM
To: dev...@li...
Subject: [Dev-C++] q3??
include <iostream>
#include <stdlib.h>
int main()
{
int nrows,ncolumns;
nrows=ncolumns=5;
int **arr=new int*[nrows];
for(int i=0;i<ncolumns;i++) //why do i have to use a for loop
arr[i]=new int[ncolumns]; //to create a multiple subs array
// dynamically??
//why can't i use a code like:
; //int **arr=new int*[nrows];
// *arr=new int[ncolumns]; ???
for(int i=0;i<nrows;i++)
for(int j=0;j<ncolumns;j++)
arr[i][j]=0;
for(int i=0;i<nrows;i++)
for(int j=0;j<ncolumns;j++)
cout<<arr[i][j]<<" ";
cout<<sizeof(arr)/sizeof(int)<<endl; //and why does this part return 1
//instead of 25??
cout<<nrows<<" "<<ncolumns<<endl;
system("PAUSE");
return 0;
}
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
|
|
From: <Ech...@ne...> - 2002-09-05 13:29:44
|
This is basicly a re-post of a message I sent last week. Since I have not recieved any responses I am asking again . . . Does anyone know how to make DevPak packages? I have been interested in creating packages for devcpp but have not been able to find any documentation on how to do so. Is there a tool that is used to make them? Thanks, Evan __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ |
|
From: Ramana K. <ra...@my...> - 2002-09-05 13:25:09
|
when you say "added it to project" do you mean you just set the project
resource file to your .rc file?
i believe that you also have to set the menu in your WNDCLASSEX struct or
dynamically set it or something of the sort, eg:
wincl.lpszMenuName = MAKEINTRESOURCE(ID_MENU); // Load the
menu
where ID_MENU is the integer ID same as in your resource file.
you assign this element in the struct before calling
RegisterClassEx(&wincl);
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Vlada
Djurovic
Sent: Thursday, 5 September 2002 8:45 PM
To: DevC++ help
Subject: [Dev-C++] no menu
Hi !
I have very frustrating problem: I wrote an .rc file containing menu
definition, added it to project, everything compiled OK, but when I run the
application, I dont get menu on it. Everything else seems OK except this.
Whats wrong?
Any help is appriciated.
|