dev-cpp-users Mailing List for Dev-C++ (Page 263)
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: RUDOLPH <ku...@sp...> - 2004-01-21 20:23:48
|
Thank you Reid, Rudolph :-) ----- Original Message ----- From: "Reid Thompson" <Rei...@at...> To: "RUDOLPH" <ku...@sp...> Sent: Tuesday, January 20, 2004 3:04 AM Subject: RE: [Dev-C++] HELP: in MSW testing program for Linux as info -- cygwin may provide a more linux like environment for this purpose. www.cygwin.com reid > -----Original Message----- > From: RUDOLPH [mailto:ku...@sp...] > Sent: Monday, January 19, 2004 7:49 PM > To: age...@co... > Cc: dev...@li... > Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux > > > Thank you ageofscot, > that will help me very much to focus in what i am trying to do. > > Excellant :-) > > ----- Original Message ----- > From: <age...@co...> > To: "DevCpp User Group" > <dev...@li...>; "RUDOLPH" > <ku...@sp...> > Sent: Monday, January 19, 2004 6:52 PM > Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux > > > > The only way I know: > > 1. Write the code with Dev-C++. > > 2. Transfer it to some removable storage device or a server. 3. > > Compile the code on that platform. > > > > -- > > ~~Scott Simontis~~ > > Programmer > > > > > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, > CA. http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: RUDOLPH <ku...@sp...> - 2004-01-21 20:23:42
|
Hi Maya, You have been a great help, thank u for sharing your insight. No snow over here in uk yet, I like your picture of the car. Kind regards, Rudolph :-) ----- Original Message ----- From: "Maya" <Esc...@ne...> To: <ku...@sp...> Sent: Tuesday, January 20, 2004 8:26 PM Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux > Hi to you too my friend! > Things are very good here in Canada, finally! Thought it had been too > warm for our liking, 1 or 2 degrees Celsius. Christmas was a green one, > no snow what so ever >:( But things are getting much better now. It was > -32 Celsius the other night and snow keeps on coming down, hooo hooo! > Attached is a picture that might help understand what I am talking about. > > Now to your question. > Look, the standard [STD] C/C++ guaranties that what ever compiles in > SUN OS, will compile in AIX, LINUX, MAC, DOS and even MSW. However, if > you use a tool that is not part of the STD, you have to make sure that > this tool is also available under the platform that you're porting to. > Here is a good example. > Nature has given us a set of standards; hair, nails, a protective layer > of fat and so on, right? but in the UK you have added a tool for the > winter, namely a winter coat. Now, if you have to "port" yourself to > Canada, you will also need that tool here, but the winter tool that you > use in the UK will not do you much good in Canada, so, before porting > yourself to Canada, the tools that are not part of nature's STDs must > also be ported to be compliant to the Canadian environment. > I hope this helps you... > > Hava a good one, eh! > > > ku...@sp... wrote: > > > New year greeting to u all! > > > > Has anyone able to complied program using > > DevC++ in MS windows, and use or test it into > > other OS like linux ? > > > > Thank you in advance. > > Rudy > > > -- > > FYI > http://www.astro.umd.edu/~marshall/abbrev.html > > E-Mail Policy > http://www.vif.com/users/escalante/Email_Policy.html > > * You cannot exercise your power to a point of humiliation. > - Jean Chretien > > * The media's the most powerful entity on earth. They have the > power to make the innocent guilty and to make the guilty > innocent, and that's power. > - Malcom X > * "Innocent until proven guilty", no... not in Canada!! > > ---------------------------------------------------------------------------- ---- |
|
From: belvale l. <wi...@al...> - 2004-01-21 19:46:15
|
Hello. I've try to import the source code of a program I made with Tclite in Dev-cpp. This program was using the graphics.h library and I changed it for the winbgim.h & winbgim.cpp from the CLGDI devpack. Now, I can't use the randomize function and I get a lot of linker errors such as these one : [Linker error] undefined reference to `SelectObject@8' [Linker error] undefined reference to `SelectObject@8' [Linker error] undefined reference to `ExtCreatePen@20' ... And one of these errors is linked with a strange file : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccoJaaaa.o(.text+0x4228) more undefined references to `DeleteObject@4' follow Could somebody help ? Thank you in advance Louis --------------------------------------------- Alinto wishes you a happy new year 2004 http://www.alinto.com |
|
From: Michal M. <mi...@mo...> - 2004-01-21 19:13:11
|
Juan Jose Costello Levien wrote: > Hello, > I am using a special library compiled in Cygwin. I have to type a > special command line for compiling a program, the command line is: > > # gcc $(libvncserver-config --cflags) -o main main.c > $(libvncserver-config --libs) > The problem is that I don't know how to include this command line inside > Dev-C++, I mean, I want to use Dev-C++ for developing the app and debug it. > Thanks for your help. > > Juan if you are using dev-c++ with cygwin simply run in the cygwin shell libvncserver-config --cflags and grab the output and put it to Compiler editbox on the Project Options\Parameters tab and then libvncserver-config --libs and put the output to Linker editbox if you want use dev-c++ with mingw you will have to translate the things like -I/usr/include to windows paths |
|
From: Juan J. C. L. <jua...@ya...> - 2004-01-21 18:41:19
|
Hello, I am using a special library compiled in Cygwin. I have to type a = special command line for compiling a program, the command line is: # gcc $(libvncserver-config --cflags) -o main main.c = $(libvncserver-config --libs) The problem is that I don't know how to include this command line inside = Dev-C++, I mean, I want to use Dev-C++ for developing the app and debug = it. Thanks for your help. Juan |
|
From: Daniel G. <sp...@ho...> - 2004-01-21 11:43:15
|
I would recommend getting signed up for this mailing list as it deals with the compiler, but there should be a better list for C++ questions. Myself, I use this list for C++ questions but also codeproject.com and tek-tips.com but there are messageboards. I too would like to know of a C++ mailing list. >From: "Jay Blanchard" <jay...@ni...> >To: <dev...@li...> >Subject: [Dev-C++] Favorite C++ List >Date: Wed, 21 Jan 2004 05:12:58 -0600 > >Good morning! > >I am a software project manager working with a group of new, young >programmers and I need to point them to a mailing list where C++ is >spoken. What is your favorite list for this? Any help would be >appreciated, and they all should be signed up to this list as Dev C++ is >the tool of choice. > >Thanks! > >JB > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: Jay B. <jay...@ni...> - 2004-01-21 11:13:06
|
Good morning! I am a software project manager working with a group of new, young programmers and I need to point them to a mailing list where C++ is spoken. What is your favorite list for this? Any help would be appreciated, and they all should be signed up to this list as Dev C++ is the tool of choice. Thanks! JB |
|
From: Siva C. <siv...@ya...> - 2004-01-21 07:48:33
|
Hello, There was a great(and an informative one at that) debate on which GUI toolkit to use. I use wxWindows and for two reasons: 1. It supports all image formats. 2. There is a DevPak available!! The 2nd point is what has driven me cause I am fairly a newbie to programming and did not know how to build other libraries. In the Linux environment, it was simple. Just download the source code and 'make' using the help from the INSTALL file! But now I would like use some really wonderfull libraries available and would like to know how build them for Dev-C++. Can some-body help?? Is there is a tutorial available somewhere on this?? TIA, ===== Siva Chandra B-Tech, Electrical Engineering, IIT Madras. Currently pursuing MS by research at IIIT, Hyderabad visit www.geocities.com/sivachandra_br __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: jayasurya <js...@re...> - 2004-01-21 06:38:33
|
hai =0A=0A I am using devc++ 4 with mingw compiler 2.95.2-1 MSV= CRT+ updated headers and libraries.I am using a Windows XP Home edition sys= tem.=0AI have the GTK-Development-Environment-2.2.4.1 and GTK-Runtime-Envir= onment-2.2.4.1.=0A=0A I need to create and run gtk+ programs.=0A I = selected the GTK+ application (C project) in the GUI toolkits tab.I entered= a simple GTK+ hello-world program in the editor.But when i try to compile = the program i get the following errors =0A=0A1. 3 untitled5.c: gtk\gtk.h: N= o such file or directory=0A2. 4 untitled5.c: glib.h: No such file or direct= ory =0A=0AThe default settings in the compile options are:=0A=0A1.Bin direc= tory : C:\Dev-C++\Bin\=0A2.C include files : C:\Dev-C++\I= nclude\=0A3.C++ include files : C:\Dev-C++\Include\G++;C:\Dev-C++\Inc= lude\=0A4.Libraries : C:\Dev-C++\Lib\=0A=0A =0AI have tri= ed setting the compiler options by changing the path but could not succeed= .=0A=0Aplease help.=0A=0Ajayasurya=0A=0A |
|
From: David M. <ci...@ya...> - 2004-01-21 04:04:36
|
You seek what is known as a cross-compiler. The most popular compiler for this purpose is gcc/g++ as it is already ported to almost every major system. Unfortunately I am not very familiar with this, If I am developing for a particular system I get that system to do my developement on. Maybe do a search on google will turn up some articles on cross compiling. --- RUDOLPH <ku...@sp...> wrote: > New year greeting to u all! > > Has anyone able to complied program using > DevC++ in MS windows, and use or test it into > other OS like linux ? > > Thank you in advance. > Rudy > ===== Signed David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: <or...@vp...> - 2004-01-20 21:35:38
|
Daniel Glenfield wrote: > And I can't use a for loop and increment the pointer until it reaches > the end of the array because that is not safe, according to Code > Complete. Any more ideas? Maybe this isn't so easy after all! lol As Per Westermark noted, correctly, the ONLY one safe method is to store the size separately. Another (not so safe) alternative might be to use a special array element, which marks the end of the array. This is something, what char[] arrays use: the '\0' character, but you can use whatever you want. BUT, this method is not really the best, as getting the size requires you to iterate through the array, which can be very inefficient at large array sizes. So, just store the size in a separate counter, that's how most people do it, there's no wrong about it, actually, that's the best known method nowadays. You can safely use it. -- Greetings, Balázs |
|
From: Riccardo C. <ric...@vr...> - 2004-01-20 17:34:51
|
Hello, I have wrapped an image library to make it Object Oriented, and now my static library is called vImage.lib (the library which is based on is instead a dll). Now, to test the library I have this example file in a new project, and I cannot debug it. It just doesn't perform the step-by-step debug. To check if the project settings were ok I also used the "hello" example and pasted my code in it. Result: when I don't link to my library, everything worsk fine, as soon as link to it, it doesn't debug anymore. Note that the problem doesn't affect only the code based on my library, but all the code (i.e. also the one of the "hello" example that worked before) Note also that I have activated the generation of debug info when compiling the library as well. What can I do? thank you_ricky |
|
From: Daniel G. <sp...@ho...> - 2004-01-20 16:28:01
|
And I can't use a for loop and increment the pointer until it reaches the end of the array because that is not safe, according to Code Complete. Any more ideas? Maybe this isn't so easy after all! lol >From: Per Westermark <pw...@ia...> >To: Mohammed Iqbal <mi...@ac...> >CC: Daniel Glenfield <sp...@ho...>, ><dev...@li...> >Subject: Re: [Dev-C++] How to get the number of elements in an array >Date: Tue, 20 Jan 2004 17:21:41 +0100 (CET) > >The idea was good, but it only works for statically allocated arrays. >When the array is dynamically allocated, it isn't possible to check number >of entries. Some low-level functions might return size of the memory block >but that is highly nonportable, and it still doesn't answer number of >array entries, since the allocated block will almost always be rounded up >to a larger size. > >/Per W > >On Tue, 20 Jan 2004, Mohammed Iqbal wrote: > > > n_of_elements=sizeof(Buf)/sizeof(Buf[0]); > > > > Mohammed > > ----- Original Message ----- > > From: "Daniel Glenfield" <sp...@ho...> > > To: <dev...@li...> > > Sent: Tuesday, January 20, 2004 1:49 PM > > Subject: [Dev-C++] How to get the number of elements in an array > > > > > > > This is an easy Q I know but I can't think how to do it... > > > > > > Size = 9; // Decided by a function but set to 9 for this example > > > > > > int* Buf = new int[Size]; > > > > > > int Tmp = sizeof(Buf); > > > > > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) >are > > not > > > recognised (I thought they were functions but I guess not). > > > > > > Any thoughts? > > > > > > _________________________________________________________________ > > > Use MSN Messenger to send music and pics to your friends > > > http://www.msn.co.uk/messenger > > > > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by EclipseCon 2004 > > > Premiere Conference on Open Tools Development and Integration > > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > > http://www.eclipsecon.org/osdn > > > _______________________________________________ > > > Dev-cpp-users mailing list > > > Dev...@li... > > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: Per W. <pw...@ia...> - 2004-01-20 16:21:54
|
The idea was good, but it only works for statically allocated arrays. When the array is dynamically allocated, it isn't possible to check number of entries. Some low-level functions might return size of the memory block but that is highly nonportable, and it still doesn't answer number of array entries, since the allocated block will almost always be rounded up to a larger size. /Per W On Tue, 20 Jan 2004, Mohammed Iqbal wrote: > n_of_elements=sizeof(Buf)/sizeof(Buf[0]); > > Mohammed > ----- Original Message ----- > From: "Daniel Glenfield" <sp...@ho...> > To: <dev...@li...> > Sent: Tuesday, January 20, 2004 1:49 PM > Subject: [Dev-C++] How to get the number of elements in an array > > > > This is an easy Q I know but I can't think how to do it... > > > > Size = 9; // Decided by a function but set to 9 for this example > > > > int* Buf = new int[Size]; > > > > int Tmp = sizeof(Buf); > > > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) are > not > > recognised (I thought they were functions but I guess not). > > > > Any thoughts? > > > > _________________________________________________________________ > > Use MSN Messenger to send music and pics to your friends > > http://www.msn.co.uk/messenger > > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Mohammed I. <mi...@ac...> - 2004-01-20 15:45:09
|
n_of_elements=sizeof(Buf)/sizeof(Buf[0]); Mohammed ----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dev...@li...> Sent: Tuesday, January 20, 2004 1:49 PM Subject: [Dev-C++] How to get the number of elements in an array > This is an easy Q I know but I can't think how to do it... > > Size = 9; // Decided by a function but set to 9 for this example > > int* Buf = new int[Size]; > > int Tmp = sizeof(Buf); > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) are not > recognised (I thought they were functions but I guess not). > > Any thoughts? > > _________________________________________________________________ > Use MSN Messenger to send music and pics to your friends > http://www.msn.co.uk/messenger > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Daniel G. <sp...@ho...> - 2004-01-20 13:42:50
|
I tried that but it returns the size of the first element in the array (or whatever the pointer is pointing to). To set Size I called a function and it returns 320 (bytes required). This is most troubling as I should know this! lol Daniel >From: "Paul Muehlbach" <tr...@gm...> >To: "Daniel Glenfield" <sp...@ho...> >Subject: Re: [Dev-C++] How to get the number of elements in an array >Date: Tue, 20 Jan 2004 14:04:00 +0100 (MET) > > > This is an easy Q I know but I can't think how to do it... > > > > Size = 9; // Decided by a function but set to 9 for this example > > > > int* Buf = new int[Size]; > > > > int Tmp = sizeof(Buf); > > > > This can't be right. How do I get the size? Len(Buf) and Length(Buf) are > > not > > recognised (I thought they were functions but I guess not). > > > > Any thoughts? > > > >try > >Tmp = sizeof(*Buf); > >(sorry,but normally,i use c-array functions ^^°) > >traexx > >-- >+++ GMX - die erste Adresse für Mail, Message, More +++ >Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail > _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: Per W. <pw...@ia...> - 2004-01-20 13:41:14
|
In short - you can't.
sizeof(Buf) will return sizeof(int*) i.e. the size of a pointer.
There is no way of requesting the size of a dyanmically allocated array.
You must store the size somewhere else, such as:
struct {
int size;
int *ptr;
} Buf;
Buf.size = 9;
Buf.ptr = new int[Size];
/Per W
On Tue, 20 Jan 2004, Daniel Glenfield wrote:
> This is an easy Q I know but I can't think how to do it...
>
> Size = 9; // Decided by a function but set to 9 for this example
>
> int* Buf = new int[Size];
>
> int Tmp = sizeof(Buf);
>
> This can't be right. How do I get the size? Len(Buf) and Length(Buf) are not
> recognised (I thought they were functions but I guess not).
>
> Any thoughts?
>
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends
> http://www.msn.co.uk/messenger
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Daniel G. <sp...@ho...> - 2004-01-20 10:50:01
|
This is an easy Q I know but I can't think how to do it... Size = 9; // Decided by a function but set to 9 for this example int* Buf = new int[Size]; int Tmp = sizeof(Buf); This can't be right. How do I get the size? Len(Buf) and Length(Buf) are not recognised (I thought they were functions but I guess not). Any thoughts? _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger |
|
From: RUDOLPH <ku...@sp...> - 2004-01-20 00:53:31
|
Thank you ageofscot, that will help me very much to focus in what i am trying to do. Excellant :-) ----- Original Message ----- From: <age...@co...> To: "DevCpp User Group" <dev...@li...>; "RUDOLPH" <ku...@sp...> Sent: Monday, January 19, 2004 6:52 PM Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux > The only way I know: > 1. Write the code with Dev-C++. > 2. Transfer it to some removable storage device or a server. > 3. Compile the code on that platform. > > -- > ~~Scott Simontis~~ > Programmer > > |
|
From: RUDOLPH <ku...@sp...> - 2004-01-20 00:53:31
|
Hello Michael, Thank you your reply. What I was thinking about was to compliing a source code after the designing stage in w95 platform and then complie the same source code in another miniLinux computer with Devc++ or Gnu complier. Your answer have been helpful. Kind regards ----- Original Message ----- From: "Michael C Urban" <mu...@cb...> To: "RUDOLPH" <ku...@sp...> Cc: <dev...@li...> Sent: Monday, January 19, 2004 12:37 AM Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux > What do you mean? > > Basically, you can't, unless you use WINE or some other emulator in Linux > to run the program. DevC++ works with MinGW, which generated machine code > for MS Windows. It won't run on Linux. > > To make the program run on Linux, you would have to recompile it using > GCC on Linux, which may or may not be an easy task depending on whether > the source code in question uses the Windows API. > > Mike > > On Mon, 19 Jan 2004, RUDOLPH wrote: > > > New year greeting to u all! > > > > Has anyone able to complied program using > > DevC++ in MS windows, and use or test it into > > other OS like linux ? > > > > Thank you in advance. > > Rudy > > > |
|
From: <age...@co...> - 2004-01-19 18:53:00
|
The only way I know: 1. Write the code with Dev-C++. 2. Transfer it to some removable storage device or a server. 3. Compile the code on that platform. -- ~~Scott Simontis~~ Programmer |
|
From: <age...@co...> - 2004-01-19 18:51:53
|
May I see the code you are having trouble with? -- ~~Scott Simontis~~ Programmer |
|
From: <age...@co...> - 2004-01-19 18:50:17
|
There might be a way you could use a script, but I am not sure about it. -- ~~Scott Simontis~~ Programmer > > is there a way to import an existing project into dev-c++, I have the > > cvs source for one, but I can't seem to find a way to import it without > > adding each individual dir and file one at a time. There are over 100 > > files in this source and it'll take several hours to add them all. > > > > also note the beta version has a bug where is click add to project on a > > dir, it doesn't put the files in that dir, but instead where it thinks > > they should be, ie: includes in include and source in the root branch. > > no, there is no way, you have to include every directory separately :( > > but you can still use the gnu-makefiles for compiling, also if the files are > not in the project; > only add the makefiles into project->project options and compile the stuff > > traexx > > -- > +++ GMX - die erste Adresse für Mail, Message, More +++ > Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: * W. <wi...@fu...> - 2004-01-19 17:04:56
|
Hi ... If I'm allowed to 'guess' I think Rudolph is looking to X-compile to Unix and test his solution with his PC ... (more or less) ? If so I received a note on this tonight from Reid T ... r> Windows Services for UNIX r> http://www.microsoft.com/windows/sfu/default.asp . r> r> Previously they charged $100 for it. It's along the same r> lines as Cygwin but may be closer to MINGW/Windows than r> Cygwin. Which may be the toy you need Rudolph to write LINUX target code ... ? Cause I (assume) it emulates the unix (generic, *lol*) interfaces. If not you may resume normal viewing in 5 seconds... w. ----- Original Message -----=20 From: Michael C Urban To: RUDOLPH Cc: dev...@li... Sent: Monday, January 19, 2004 11:37 AM Subject: Re: [Dev-C++] HELP: in MSW testing program for Linux What do you mean? Basically, you can't, unless you use WINE or some other emulator in = Linux to run the program. DevC++ works with MinGW, which generated machine = code for MS Windows. It won't run on Linux. To make the program run on Linux, you would have to recompile it using GCC on Linux, which may or may not be an easy task depending on whether the source code in question uses the Windows API. Mike On Mon, 19 Jan 2004, RUDOLPH wrote: > New year greeting to u all! > > Has anyone able to complied program using > DevC++ in MS windows, and use or test it into > other OS like linux ? > > Thank you in advance. > Rudy > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Paul M. <tr...@gm...> - 2004-01-19 15:13:57
|
> HI, > > PLEASE GIVE ME A C/C++ CODES THAT I CAN USE TO > OPTIMIZE MY PROGRAMS FOR MMX ,SSE , 3D NOW OR ANY > OTHER INSTRUCTION SETS . > > OMEGA7 > sorry, but the only two ways for optimizing for MMX and such are compiler flags or assemblercoding connected to C (C++ can't support Assembler directly, course names conventions) traexx -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail |