dev-cpp-users Mailing List for Dev-C++ (Page 363)
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: Kevin F. <tec...@bt...> - 2003-06-22 10:00:47
|
You could do
#include <stdlib.h>
then
system("PAUSE");
at the end of your main function.
Regards
Kevin.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Willz
Sent: 22 July 2003 10:21
To: dev...@li...
Subject: [Dev-C++] Beginner help
I have just yeaterday started to tach myself programming in c++.I was
wondering if after you have compiled a programe and run it how to make it
saty on the screen to view it.
I know you can open up the dos prompt and drag it into the box,it then
shows its path at the command line then one click and enter and it runs.But
can it be run and displayed in dev version 4 to stay on the screen till you
close the window down.
It is mostlikely an option but with all the terms new to me i aint sure
off what it would be called .
Thanks all...
Willz
|
|
From: Willz <moa...@nt...> - 2003-06-22 09:20:14
|
I have just yeaterday started to tach myself programming in c++.I was = wondering if after you have compiled a programe and run it how to make = it saty on the screen to view it. I know you can open up the dos prompt and drag it into the box,it then = shows its path at the command line then one click and enter and it = runs.But can it be run and displayed in dev version 4 to stay on the = screen till you close the window down. It is mostlikely an option but with all the terms new to me i aint sure = off what it would be called . Thanks all... Willz |
|
From: Daniel G. <sp...@ho...> - 2003-06-22 08:15:41
|
Try http://www.gamedev.net/ _________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Philippe A. B. <phi...@fo...> - 2003-06-22 04:05:34
|
The Environment Options -> External Programs does not work... philippe wrote: > Hi there, > > I would like to know if it was possible to use external utilities > to compile other extensions like flex++ & bison++ files (.ll, .yy). > This goes on to other utilities like the moc compiler, etc. > > > > Regards, > > Philippe A. Bouchard |
|
From: Damien . <g_...@ho...> - 2003-06-22 01:34:43
|
<html><div style='background-color:'><DIV> <P>Well, I'm not sure how good these will be to you, but try <A href="http://www.gametutorials.com/Tutorials/DirectX/DirectX_Pg1.htm">http://www.gametutorials.com/Tutorials/DirectX/DirectX_Pg1.htm</A>, and <A href="http://www.ultimategameprogramming.com/DirectX1.htm">http://www.ultimategameprogramming.com/DirectX1.htm</A>.<BR><BR></P></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: Scott Simontis SIMONTIS <AGE...@CO...> <DIV></DIV>To: DevCpp User Group <DEV...@LI...> <DIV></DIV>Subject: [Dev-C++] DirectX Tutorials <DIV></DIV> <P>Date: Sat, 21 Jun 2003 19:25:44 -0400 </P> <P> </P> <DIV></DIV><mailto:dev...@li...?subject=help><mailto:dev...@li...><mailto:dev...@li...?subject=subscribe><mailto:dev...@li...?subject=unsubscribe> <DIV></DIV> <DIV></DIV>Hi. i am looking for some DirectX 9.0 tutorials. If any of you know of <DIV></DIV>a good on, please tell me. <DIV></DIV>Scott <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>------------------------------------------------------- <DIV></DIV>This SF.Net email is sponsored by: INetU <DIV></DIV>Attention Web Developers & Consultants: Become An INetU Hosting Partner. <DIV></DIV>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! <DIV></DIV>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php <DIV></DIV>_______________________________________________ <DIV></DIV>Dev-cpp-users mailing list <DIV></DIV>Dev...@li... <DIV></DIV>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm <DIV></DIV>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></mailto:dev...@li...?subject=unsubscribe></mailto:dev...@li...?subject=subscribe></mailto:dev...@li...></mailto:dev...@li...?subject=help></div><br clear=all><hr>STOP MORE SPAM with <a href="http://g.msn.com/8HMYEN/2728??PS=">the new MSN 8</a> and get 2 months FREE*</html> |
|
From: Scott S. S. <age...@co...> - 2003-06-21 23:26:47
|
Hi. i am looking for some DirectX 9.0 tutorials. If any of you know of a good on, please tell me. Scott |
|
From: Ioannis V. <iv...@em...> - 2003-06-21 18:31:44
|
-----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Louis Godio > Sent: Saturday, June 21, 2003 3:54 PM > To: Ioannis Vranos; Dev-C++ Mailing List > Subject: RE: [Dev-C++] Optimized memory allocation >=20 >=20 > Ioannis, > What's the difference betweem the 3rd edition and the special=20 > edition ? > Which one do you recommend for someone who knows the basics of C++? For recent printings only the hard cover of the special edition. For = first printings of the 3rd edition, special edition has sone new appendices = and more than 1000 corrections. I suggest special edition because the hard = cover is really good it withstands heavy use (for example I have caught the = book on the air while it was falling from the hardcover only, noumerous times = and it has not been sustained serious damages. We are talking about a heavy = book here, so the hard cover is really very strong and of high quality). If = you get the 3rd edition with the simple paper cover, I am sure it will eventually fall apart if you try to read it cover to cover. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: <phi...@fo...> - 2003-06-21 18:04:29
|
SGkgdGhlcmUsDQoNCiAgSSB3b3VsZCBsaWtlIHRvIGtub3cgaWYgaXQgd2FzIHBvc3NpYmxlIHRv IHVzZSBleHRlcm5hbCB1dGlsaXRpZXMgdG8gY29tcGlsZSBvdGhlciBleHRlbnNpb25zIGxpa2Ug ZmxleCsrICYgYmlzb24rKyBmaWxlcyAoLmxsLCAueXkpLiAgVGhpcyBnb2VzIG9uIHRvIG90aGVy IHV0aWxpdGllcyBsaWtlIHRoZSBtb2MgY29tcGlsZXIsIGV0Yy4NCg0KDQoNClJlZ2FyZHMsDQoN ClBoaWxpcHBlIEEuIEJvdWNoYXJkDQoK |
|
From: <phi...@fo...> - 2003-06-21 18:01:58
|
SGkgdGhlcmUsDQoNCgo= |
|
From: <phi...@fo...> - 2003-06-21 18:01:57
|
SGkgdGhlcmUsDQoNCgo= |
|
From: <cg...@wo...> - 2003-06-21 17:04:24
|
How can I use the winAPI exception handlling functions?
It is
try{
... <<<code which has RaiseException() function
}
except (GetExceptionCode() == code){
...
}
Whenever I try to use this the compiler reports errors: either except is
not defined, or if I use __try and __except then it reports errors
before ) and from that line own it reports any variable defined in the
block as undefined.
I included the header excpt.h which seemed to have it but it didn't
work, and I activated an deactivated the support for exceptions in
compiler options (since it could happen a clash between C and Windows?
[that of try in both cases...])
Thank you in advance.
|
|
From: Abhijit S. <mu...@gm...> - 2003-06-21 15:16:48
|
> > Hi all, while I was checking internet I came up to this: > > http://www.observatorio.unal.edu.co/virtual/books/ > Great site! -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
|
From: <al...@ne...> - 2003-06-21 14:43:52
|
Hello, i'm developing an audio-effect for Steinberg's VST-interface. These effects are realized as DLL-files. I succeed compiling and of course running my DLL, but i can't debug it. I generated the DLL with debugging information, without optimizations and without compiler switches like -s. Also, i've already entered the host application in "Execute -> Paramters". But now entering the debug-mode doesn't do anything. I even tried to start the host, load the DLL, enter debugging mode in DevC++ and then use the "attach PID" command to attach GDB to the process of the host, but none of my attempts was succesful. I hope someone here on this list is already experienced in debugging DLLs and might help me little bit! :) Thank you very much, Alex |
|
From: <or...@vp...> - 2003-06-21 14:03:05
|
Hi! OK, I have done some header file investigation in wxWindows, and according to the comments and code, these are all the flags (well only the "defines") you need to be able to create wxWindows programs: -D_WIN32_IE=0x0400 -DWINVER=0x0400 -DWIN32 -D__GNUWIN32__ In detail: -D_WIN32_IE=0x0400 -DWINVER=0x0400 These two are required if you have IE 4.0 (I think you do). BOTH must be defined, because they are used in separate places, and they don't know about each other. -DWIN32 or -D_WIN32 This is the ONLY one flag that you need (just one of them), if you compile under Windows. wxWindows will autodetect everything else (according to the comment and code in include/wx/platform.h) -D__GNUWIN32__ This is needed to have case-insensitive string compare. Otherwise the program won't compile. I hope I have provided some useful information to you. -- Greetings, Balázs |
|
From: Louis G. <lg...@ya...> - 2003-06-21 12:57:35
|
Ioannis, What's the difference betweem the 3rd edition and the special edition ? Which one do you recommend for someone who knows the basics of C++? __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
|
From: Louis G. <lg...@ya...> - 2003-06-21 12:54:28
|
Ioannis, What's the difference betweem the 3rd edition and the special edition ? Which one do you recommend for someone who knows the basics of C++? --- Ioannis Vranos <iv...@em...> wrote: > #include <vector> > > > // ... > > using std::vector; > > // ... > > vector<my_class>array; > > > > // Reserves space for 100 "my_class"es, does not create any objects. > array.reserve(100); > > > // Creates a my_class at the end copying the value using the assignment > operator. > // At push_back i passed a temporary here. > array.push_back(my_class(7) ); > > > // Equivalent to realloc(). array[0] remains my_class(7) > // and 9 more objects get created with the default constructor. > > array.resize(10); > > > array.erase(array.begin()+6); > > > // Vector (random access) iterators behave like pointers > vector<my_class>::iterator p=array.begin(); > > > //array.end() points one after the end > > array.erase(p+3); > > > // array.size() returns the number of objects > //array.capacity() the number of reserved object space > > > > It is a long story, you have to read vectors. :) I suggest "The C++ > Programming Language" 3rd Edition or Special Edition by Bjarne > Stroustrup > (the creator of C++). Keep in mind that you must have finished some > introductory book first. Check this: > > http://www.research.att.com/~bs/3rd.html > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > <http://www.noicys.freeurl.com/> > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > <http://www.noicys.cjb.net/> > > > > > > > > -----Original Message----- > From: Shane Bryldt [mailto:ast...@te...] > Sent: Friday, June 20, 2003 11:04 AM > To: Ioannis Vranos > Cc: C++ > Subject: Re: [Dev-C++] Optimized memory allocation > > > Your idea suggest a significant performance boost, if I was referencing > the > memory with accessing optimization. The issue here, is accessing, it's > allocation performance. > As I believe you meant, > "new class_type[count]" > is equivilent to, > "malloc(count * sizeof(class_type))" > This is the fastest method I can determine for allocation, however the > issue > is that I want to allocate this memory to be used and delete'd not as an > array, but perhaps individually. What I mean is, currently the memory > is > allocated with many calls to "new", whereas one call to new, allocating > all > the memory at once would be faster. However, I cannot take a pointer to > a > specific element of the array and only delete that memory when it's no > longer needed, I would require a management system of the array. > > Herein lies the problem, the array must be allocated and deleted > entirely. > Multiple calls to "new" is required to ensure each memory is allocated > and > internally tracked separately. I do not want one large chunk of memory > accessed as an array, but rather simply to preallocate the required > memory > all at once for a specific number of objects. > > The actual situation, involves as I said before, loading 48k records > from a > database, and for each, creating an object. I do not want this in an > array, > each object is later stored in an STL map and indexed according to a > unique > value. I just want to preallocate, calling constructors correctly, 48k > objects, and then use one at a time into the map, and may later be > individually deleted out of the map by expiration of individual records. > > Your suggestion to use a vector does not imply allocating with new, as > is > needed for each to be allocated correctly and constructed properly. > There > may not be a better solution than calling new 48k times, unfortunately. > > I thought perhaps at a lower level you could preallocate a whole chunk > of > memory, then with another special call, construct an object in > preallocated > memory. This would speed up as I would just iterate through the > construction of each object after allocating for 48k objects, instead of > calling new 48k times separately allocating each time. > > With using any sort of memory manager to manage an array of preallocated > memory would probably negate the speed increase. > > -Shane > p.s. I am really nitpicking here, the entire process takes about 30 > seconds > on average, running on the same server as the database, on low end home > hardware, 350mhz, 256megs of ram, and a standard 5400rpm IDE drive. > Nothing > special, if there are no lower level calls as I described above, then I > can > live with the loading time. > > ----- Original Message ----- > From: Ioannis Vranos <mailto:iv...@em...> > To: 'C++' <mailto:dev...@li...> > Sent: Thursday, June 19, 2003 8:47 PM > Subject: RE: [Dev-C++] Optimized memory allocation > > > new whatever[SIZE] is equivalent to malloc(SIZE*sizeof(whatever)), that > is > it should boe slower. > > But better use an std::vector: > > > #include <vector> > > // ... > > using std::vector; > > // ... > > vector<class_type> array(48); > > // ... > array[0]= ... > > > > > > Ioannis Vranos > > * Programming pages: <http://www.noicys.freeurl.com> > http://www.noicys.freeurl.com > * Alternative URL 1: <http://run.to/noicys> http://run.to/noicys > * Alternative URL 2: <http://www.noicys.cjb.net/> > http://www.noicys.cjb.net > > > > > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Shane > Bryldt > Sent: Friday, June 20, 2003 3:39 AM > To: C++ > Subject: [Dev-C++] Optimized memory allocation > > > Hello, > > I have recently been attempting to find ways to speed up the process > of > === message truncated === __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
|
From: Ioannis V. <iv...@em...> - 2003-06-21 10:04:28
|
#include <vector> =20 =20 // ... =20 using std::vector; =20 // ... =20 vector<my_class>array; =20 =20 =20 // Reserves space for 100 "my_class"es, does not create any objects. array.reserve(100); =20 =20 // Creates a my_class at the end copying the value using the assignment operator. // At push_back i passed a temporary here. array.push_back(my_class(7) ); =20 =20 // Equivalent to realloc(). array[0] remains my_class(7) // and 9 more objects get created with the default constructor. =20 array.resize(10); =20 =20 array.erase(array.begin()+6); =20 =20 // Vector (random access) iterators behave like pointers vector<my_class>::iterator p=3Darray.begin(); =20 =20 //array.end() points one after the end =20 array.erase(p+3); =20 =20 // array.size() returns the number of objects //array.capacity() the number of reserved object space =20 =20 =20 It is a long story, you have to read vectors. :) I suggest "The C++ Programming Language" 3rd Edition or Special Edition by Bjarne = Stroustrup (the creator of C++). Keep in mind that you must have finished some introductory book first. Check this: =20 http://www.research.att.com/~bs/3rd.html =20 =20 =20 =20 Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com <http://www.noicys.freeurl.com/>=20 * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net = <http://www.noicys.cjb.net/> =20 =20 =20 =20 -----Original Message----- From: Shane Bryldt [mailto:ast...@te...]=20 Sent: Friday, June 20, 2003 11:04 AM To: Ioannis Vranos Cc: C++ Subject: Re: [Dev-C++] Optimized memory allocation Your idea suggest a significant performance boost, if I was referencing = the memory with accessing optimization. The issue here, is accessing, it's allocation performance. As I believe you meant, "new class_type[count]" is equivilent to, "malloc(count * sizeof(class_type))" This is the fastest method I can determine for allocation, however the = issue is that I want to allocate this memory to be used and delete'd not as an array, but perhaps individually. What I mean is, currently the memory = is allocated with many calls to "new", whereas one call to new, allocating = all the memory at once would be faster. However, I cannot take a pointer to = a specific element of the array and only delete that memory when it's no longer needed, I would require a management system of the array. =20 Herein lies the problem, the array must be allocated and deleted = entirely. Multiple calls to "new" is required to ensure each memory is allocated = and internally tracked separately. I do not want one large chunk of memory accessed as an array, but rather simply to preallocate the required = memory all at once for a specific number of objects. =20 The actual situation, involves as I said before, loading 48k records = from a database, and for each, creating an object. I do not want this in an = array, each object is later stored in an STL map and indexed according to a = unique value. I just want to preallocate, calling constructors correctly, 48k objects, and then use one at a time into the map, and may later be individually deleted out of the map by expiration of individual records. =20 Your suggestion to use a vector does not imply allocating with new, as = is needed for each to be allocated correctly and constructed properly. = There may not be a better solution than calling new 48k times, unfortunately. =20 I thought perhaps at a lower level you could preallocate a whole chunk = of memory, then with another special call, construct an object in = preallocated memory. This would speed up as I would just iterate through the construction of each object after allocating for 48k objects, instead of calling new 48k times separately allocating each time. =20 With using any sort of memory manager to manage an array of preallocated memory would probably negate the speed increase. =20 -Shane p.s. I am really nitpicking here, the entire process takes about 30 = seconds on average, running on the same server as the database, on low end home hardware, 350mhz, 256megs of ram, and a standard 5400rpm IDE drive. = Nothing special, if there are no lower level calls as I described above, then I = can live with the loading time. ----- Original Message -----=20 From: Ioannis Vranos <mailto:iv...@em...> =20 To: 'C++' <mailto:dev...@li...> =20 Sent: Thursday, June 19, 2003 8:47 PM Subject: RE: [Dev-C++] Optimized memory allocation new whatever[SIZE] is equivalent to malloc(SIZE*sizeof(whatever)), that = is it should boe slower. =20 But better use an std::vector: =20 =20 #include <vector> =20 // ... =20 using std::vector; =20 // ... =20 vector<class_type> array(48); =20 // ... array[0]=3D ... =20 =20 =20 =20 =20 Ioannis Vranos * Programming pages: <http://www.noicys.freeurl.com> http://www.noicys.freeurl.com * Alternative URL 1: <http://run.to/noicys> http://run.to/noicys * Alternative URL 2: <http://www.noicys.cjb.net/> = http://www.noicys.cjb.net =20 =20 =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Shane = Bryldt Sent: Friday, June 20, 2003 3:39 AM To: C++ Subject: [Dev-C++] Optimized memory allocation Hello, =20 I have recently been attempting to find ways to speed up the process = of loading 48k records from a MySQL SELECT statement, which has a 32 char primary key. One of the more intensive processes involved is calling = "new" to create a new object 48k times. In standard C, I would = malloc(RowCount * sizeof(class_type)), and using pointer math, simply iterate whenever I needed a new structure. With C++, a call to new is required for construction purposes. Is there an optimized method wherein I can = allocate a dynamic number to be preallocated more efficiently all at once in one call? I have considered using "new class_type[RowCount]()" to allocate an array (haven't tried to see if that would actually work), but I was wondering if there was a more efficient means to preallocate objects. =20 Thanks, -Shane |
|
From: Ioannis V. <iv...@em...> - 2003-06-21 07:20:21
|
Hi all, while I was checking internet I came up to this: http://www.observatorio.unal.edu.co/virtual/books/ I do not know if that material is illegal however, so be careful. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: Yeoh H. <ye...@ye...> - 2003-06-21 01:32:32
|
----- Original Message ----- From: "Brian Ackermann" <bri...@gm...> To: <dev...@li...> Sent: Friday, June 20, 2003 10:14 PM Subject: Re: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++ > Yeoh, and others > > I've done according to the instructions in this document, and, > unfortunately I get the same problem I had gotten before. The > application compiles (but Dev-Cpp cannot run it, I must go through the > explorer for that...) but when it executes, immediately it generates an > error > > The exception unknown software exception (0xc00000fd) occurred in the > application at location 0x0040d40d. > > However, the application will compile if I do a "make -f makefile.unx" > the application compiles AND RUNS just fine.... > > Where am I going wrong? > > Brian Ackermann > > Hi Brian, I see from your compile log that you've built the debug version of version 2.5.0. When you created your Dev-C++ project, where did you get the compiler defines and linker flags? Is it from the wx-config file? When you do "make -f makefile.unx", the wx-config file is used in the build process. Since this works, you might want to take a look at wx-config file to see the compiler defines and linker flags and compare them with your Dev-C++ project settings. Best Regards, Yeoh -- P.S. I'm off on a trip, so will be away from the pc for a week or so. :-) |
|
From: Yeoh H. <ye...@ye...> - 2003-06-21 01:32:31
|
----- Original Message ----- From: "OROSZI Bal=E1zs" <or...@vp...> To: <dev...@li...> Sent: Friday, June 20, 2003 6:44 PM Subject: Re: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++ > That's fine. But why not use the makefiles provided by wxWindows to > build under MinGW, src/makefile.g95 and such? It builds the whole stuff. > And also a LOT of options can be specified in include/wx/mswsetup.h > (OpenGL, and MANY MANY other things) to reduce the library, or provide > backward compatibility with older wxWindows programs. Though you need t= o > edit it before the start of the compilation. > > -- > Regards, > Bal=E1zs > Hi Bal=E1zs, Thanks for this information. I always welcome more than one solution. :-) Best Regards, Yeoh -- |
|
From: Abhijit S. <mu...@gm...> - 2003-06-20 18:28:31
|
> > fflush()... <scampers off to save data before the next > > cra8h39hfhjug=0tuttt... > > I am sorry but I do not understand what you mean with the above. :-) Interestingly (or poetic-justice-tically) enough, Windows did crash on me after that. I had downloaded a video and was trying to play it (in *WMP*, and it was in *WMV* format). -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
|
From: <an...@gm...> - 2003-06-20 18:19:53
|
Hi
I=B4m trying to change an string inside the resource using a STRINGTABLE =
and UpdateResource
STRINGTABLE DISCARDABLE
BEGIN
1000 "Text" =20
END
=20
but
HRSC h =3D FindRessource(NULL, "#1000", RT_STRING);
returns a NULL-pointer
thx
Andr=E9
|
|
From: Graeme F. <gr...@dr...> - 2003-06-20 17:46:27
|
A couple of points BeginPaint() should only be used in the WM_PAINT because the paint message is triggered by an invalid region and so BeginPaint only allows you to paint in the invalid region - it also validates the invalid region for you. You should be able to check this by looking at the rcPaint field returned in the PaintStructure - that is a RECT of the invalid region. Secondly you can also try the LoadBitmap function to load a bitmap from a file mentioned in a resource file. Slightly easier than loadImage. Graeme. |
|
From: Brian A. <bri...@gm...> - 2003-06-20 14:16:16
|
Oh, heres a copy of my compile log for Dev-Cpp ======================== Compiler: Default compiler Building Makefile: "C:\wx\samples\minimal\Makefile.win" Executing make clean rm -f minimal.o Project2_private.res Project2.exe g++.exe -c minimal.cpp -o minimal.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/msys/1.0/local/include" -I"C:/msys/1.0/local/lib/wx/include/mswd-2.5" -D_WIN32_IE=0x400 -D__WXMSW__ -mthreads -fno-pcc-struct-return -O2 -MMD -mthreads -Wall -D__GNUWIN32__ -D__WXDEBUG__ windres.exe -i Project2_private.rc -I rc -o Project2_private.res -O coff --include-dir C:/msys/1.0/local/include g++.exe minimal.o Project2_private.res -o "Project2.exe" -L"C:/Dev-Cpp/lib" -L"C:/msys/1.0/local/lib/wx" -mwindows ../../../msys/1.0/local/lib/libwxmsw250d.a -Wl,--subsystem,windows -mwindows -mthreads -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 -s Execution terminated Compilation successful ======================== Yeoh HS wrote: >Dear fellow Dev-C++ users, > >Dev-C++ is a great tool and with its many DevPaks, it is even more useful. >But sometimes you want to use some C++ library but couldn't find any DevPaks >for it. You don't really need a DevPak. What you need are the .a library >file(s) and the C++ header files. If the C++ library comes with source and >also contains the build scripts, you might be able to create the required .a >files. This is possible only if the configure scripts are also built for >MinGW. What follows is an account of one C++ adventure. > >If you want to know how to create the required wxWindows .a library file for >use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. > >Download the HOW-TO at this URL: >http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip >(File Size: 3.4K) > >Best Regards, >Yeoh >-- >P.S. More Free downloads for Dev-C++ users at >http://www.yeohhs.com/free/portal.asp > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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: Brian A. <bri...@gm...> - 2003-06-20 14:14:50
|
Yeoh, and others I've done according to the instructions in this document, and, unfortunately I get the same problem I had gotten before. The application compiles (but Dev-Cpp cannot run it, I must go through the explorer for that...) but when it executes, immediately it generates an error The exception unknown software exception (0xc00000fd) occurred in the application at location 0x0040d40d. However, the application will compile if I do a "make -f makefile.unx" the application compiles AND RUNS just fine.... Where am I going wrong? Brian Ackermann Yeoh HS wrote: >Dear fellow Dev-C++ users, > >Dev-C++ is a great tool and with its many DevPaks, it is even more useful. >But sometimes you want to use some C++ library but couldn't find any DevPaks >for it. You don't really need a DevPak. What you need are the .a library >file(s) and the C++ header files. If the C++ library comes with source and >also contains the build scripts, you might be able to create the required .a >files. This is possible only if the configure scripts are also built for >MinGW. What follows is an account of one C++ adventure. > >If you want to know how to create the required wxWindows .a library file for >use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. > >Download the HOW-TO at this URL: >http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip >(File Size: 3.4K) > >Best Regards, >Yeoh >-- >P.S. More Free downloads for Dev-C++ users at >http://www.yeohhs.com/free/portal.asp > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >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 > > > > |