dev-cpp-users Mailing List for Dev-C++ (Page 428)
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: Ioannis V. <no...@ho...> - 2003-03-04 06:31:14
|
-------Original Message-------=0D
=0D
From: erling b=0D
Date: =D4=F1=DF=F4=E7, 4 =CC=DC=F1=F4=E9=EF=F2 2003 8:04:35 =F0=EC=0D
To: dev...@li...=0D
Subject: [Dev-C++] Re: Dev C++ will not compile or run even a simple prog=
ram=0D
=0D
Hi!=0D
=0D
OS - Windows XP=0D
Compiler - Dev-C++ 4.9.7.0=0D
=0D
What I did -=0D
=0D
1. File=0D
new=0D
Project=0D
Console application=0D
OK=0D
=0D
Create New Project Window=0D
FileName Project 1=0D
save=0D
=0D
2. Wrote simple program=0D
=0D
#include <iostream>=0D
#include <stdlib.h>=0D
=0D
int main(int argc, char *argv[])=0D
{=0D
=0D
cout << "Hello world";=0D
=0D
=0D
=3D=3D> std::cout << "Hello world";=0D
=0D
=0D
return 0;=0D
}=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20 |
|
From: erling b <erl...@ho...> - 2003-03-04 06:01:28
|
Hi!
OS - Windows XP
Compiler - Dev-C++ 4.9.7.0
What I did -
1. File
new
Project
Console application
OK
Create New Project Window
FileName Project 1
save
2. Wrote simple program
#include <iostream>
#include <stdlib.h>
int main(int argc, char *argv[])
{
cout << "Hello world";
return 0;
}
3. Compile gave the following messages
1 C:\Dev-Cpp\main.cpp
from main.cpp
28 C:\Dev-Cpp\include\c++\iostream:44
bits/c++config.h: No such file or directory.
44 C:\Dev-Cpp\include\c++\ios
In file included from C:/Dev-Cpp/include/c++/ios
45 C:\Dev-Cpp\include\c++\ostream
from C:/Dev-Cpp/include/c++/ostream
45 C:\Dev-Cpp\include\c++\iostream
from C:/Dev-Cpp/include/c++/iostream
1 C:\Dev-Cpp\main.cpp
from main.cpp
28 C:\Dev-Cpp\include\c++\iosfwd:44
bits/c++config.h: No such file or directory.
45 C:\Dev-Cpp\include\c++\iosfwd
In file included from C:/Dev-Cpp/include/c++/iosfwd
44 C:\Dev-Cpp\include\c++\ios
from C:/Dev-Cpp/include/c++/ios
45 C:\Dev-Cpp\include\c++\ostream
from C:/Dev-Cpp/include/c++/ostream
etc etc
4. Program would not compile and, of course, would not run.
I have downloaded all the essential Windows Updates for Windows XP.
This is very frustrating. Could someone please help me out?
Thanks
E
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
|
|
From: Strydom, J. (Jacques) <Jac...@ne...> - 2003-03-04 04:21:10
|
Thanks for the info. > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: 03 March 2003 18:50 > To: Strydom, J. (Jacques) > Cc: Dev-Cpp (E-mail) > Subject: Re: [Dev-C++] Create lib file > > > It's more complicated that that. > > Here are some information. > > http://www.tldp.org/HOWTO/Program-Library-HOWTO/ > > /Per W > > On Mon, 3 Mar 2003, Strydom, J. (Jacques) wrote: > > > Hi, > > > > Am I correct in assuming that to make a library > > file, the .o file created by the compiler just > > have to be renamed. Or is it slightly more > > complicated than that. > > > > Regards > > Jaques Strydom > > > > ******************** > > This email and any accompanying attachments may contain > confidential and proprietary information. This information > is private and protected by law and, accordingly, if you are > not the intended recipient, you are requested to delete this > entire communication immediately and are notified that any > disclosure, copying or distribution, or taking any action > based on this information is prohibited. > > > > Emails cannot be guaranteed to be secure or free of errors > or viruses. The sender does not accept any liability or > responsibility for any interception, corruption, destruction, > loss, late arrival or incompleteness of or tampering or > interference with any of the information contained in this > email or for its incorrect delivery or non-delivery for > whatsoever reason or its effect on any electronic device of > the recipient. > > > > If verification of this email or any attachment is > required, please request a hard-copy version. > > ******************** > > > ******************** This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution, or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ******************** |
|
From: Tulius L. <tul...@ho...> - 2003-03-04 02:21:10
|
Hi Folks,
Does anyone here has ever used Dev-Cpp and TCL together before?
I read Loki Software's "Programming Linux Games" e-book, where they
manage to link C/C++ and TCL to create a game scripting engine under linux.
So I was wondering whether someone has done the same thing under
Windows, with Dev-Cpp.
TIA!
Tulius Lima
_________________________________________________________________
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
|
|
From: Ioannis V. <no...@ho...> - 2003-03-04 02:03:58
|
Also it is useful to know that with the current provided information Longhorn will only support .NET API. That version of .NET is code-named Avalon. Some quotations on that:=0D =0D =0D "The "Visual Studio for Yukon" release will represent a significant milestone. Following the "Yukon" wave, the next planned platform update i= s the Windows release code-named "Longhorn." A tools update, "Visual Studio for Longhorn," will support the managed interfaces, enhanced user interfa= ce features, and other new capabilities of the updated platform."=0D =0D =0D "Longhorn=0D =0D Next major OS version=0D Will contain Avalon the fully .NET Win32 API.=0D OS integration with .NET reaches its conclusion.=0D Everything that is currently in Windows will be rewritten as managed code= =2E=0D "=0D =0D =0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: Samuel K. <ib...@ly...> - 2003-03-04 01:58:14
|
Pointers, as you have already stated, hold the address in memory of other variable(s). So what is the difference and when and when you should not use them? Well the difference is the fact that pointers hold an address, but I don't think that is exactly what you wanted, so I'm going to explain when you should use them.
Dynamic Allocation: That is a fancy two dollar word that simply means you can ask the system for more memory during runtime. For example:
int count;
int *dynamic;
cout << "\nPlease enter a number: ";
cin >> count;
if(count > 0)
dynamic = new int[count]; //asking the system for memory equal
//to size of int times count (an array
else //of int in other words)
cout << "\nBad value." << endl;
delete dynamic; //returning the memory to system when
//done with it.
You can also use pointers to save both memory and runtime. For example, when you pass an object whether it be a class, struct, or array, it uses up much more memory if the computer has to make a copy of that array, class, struct everytime the function is called. (Note: arrays are automatically called by reference which is similar to pointers. It also uses up the runtime required to make a copy. It might take a little time to copy a billion objects for every function you call. The third reason you might want to use a pointer is if you want to change the parameter to a function. For instance if you want to raise the salary of every worker in class allTheCompanysWorkers you will HAVE to pass it by either reference or pointer so you can change them values otherwise you would have to change them where ever you created them. That can make things more complicated than necassary. There is also one other reason to use pointers some functions in standard C and C++ might require a pointer
to a char array for instance or might return a pointer. In a situation like that you would also have to use pointer.
So when should I use regular variables, references, or pointers?
Simple you want to use regular variables in all regular conditions. The only times you don't want to use regular variables is in one of the four situations listed above. Otherwise you want to try to use call by reference if it is possible. The reason references are simpler is because they are just another name for the variable they refer to. They aren't anything new really. The reason you want to use reference if it is possible is because they are simpler than pointers. You can use reference variables if for instance you want to pass a large parameter but don't want the cost of copying everything in the object that you are passing. The only times you want to use pointers is for dynamic allocation and for type compatibility when calling a function someone else has written. I know that is a lot to understand right now, but keep programming and you will start picking up a feel for when you should use one over another.
_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
|
|
From: Ioannis V. <no...@ho...> - 2003-03-04 01:26:20
|
It's not very on topic but you can check the latest screenshots of the upcoming Longhorn release (about 2005) at=0D =0D http://www.winsupersite.com/reviews/longhorn_4008.asp=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: Ioannis V. <no...@ho...> - 2003-03-04 01:19:41
|
-------Original Message-------=0D
=0D
From: OROSZI Bal=E1zs=0D
Date: =D4=F1=DF=F4=E7, 4 =CC=DC=F1=F4=E9=EF=F2 2003 12:29:50 =F0=EC=0D
To: dev...@li...=0D
Subject: Re: [Dev-C++] What's the difference?=0D
=0D
Hello!=0D
=0D
It is advisable to use pointers when you use structures, because it is =0D
faster and more convenient. Suppose you have this structure:=0D
struct foo{=0D
char *Text1;=0D
char *Text2;=0D
char *Text3;=0D
};=0D
=0D
If you have a function that has this structure as its argument, then it =0D
is better to pass only a pointer to it (&foo_struct), beacuse it already =
=0D
has pointers in it to character arrays, so you have the same result if =0D
you pass pointer or pass the whole struct. But when passing the whole =0D
struct, it will be copied, but the Texts won't, just the pointers to it. =
=0D
So it is better to pass only pointers to structs, always. It will make =0D
your code cleaner, and you can always assure yourself, that you always =0D
declared functions to use pointers.=0D
=0D
=0D
=3D=3D> ? In fact allocating/releasing space on the free store is more
time-expensive than using local space in the stack. So for example:=0D
=0D
// C++=0D
=0D
struct foo=0D
{=0D
char *Text1, *Text2, *Text3;=0D
};=0D
=0D
=0D
foo something;=0D
=0D
something.Text1=3Dnew char[20];=0D
something.Text2=3Dnew char[30];=0D
something.Text3=3Dnew char[40];=0D
=0D
// ...=0D
=0D
delete [] something.Text1;=0D
delete [] something.Text2;=0D
delete [] something.Text3;=0D
=0D
=0D
is more than expensive than=0D
=0D
=0D
struct foo=0D
{=0D
char Text1[20], Text2[30], Text3[40];=0D
};=0D
=0D
foo something;=0D
=0D
=0D
// "something" dies at the end of its scope=0D
=0D
=0D
=3D=3D> Not to mention allocating something itself on the free store.=0D
=0D
=3D=3D> Passing a pointer to struct with local arrays doesn't copy anythi=
ng
except of the pointer address (value). For example:=0D
=0D
=0D
struct foo=0D
{=0D
char text1[10], text2[20], text3[30];=0D
};=0D
=0D
=0D
=0D
void whatever(foo *);=0D
=0D
=0D
int main()=0D
{=0D
foo something=3D{"telos", "ton", "imeron"};=0D
=0D
whatever(&something);=0D
=0D
}=0D
=0D
=0D
// Passed by "reference".=0D
// Only the address of something is copied, not its elements.=0D
void whatever(foo *pf)=0D
{=0D
// ...=0D
}=0D
=0D
=0D
=0D
=3D=3D> However i do not like this style. How i would do it:=0D
=0D
#include <string>=0D
=0D
struct foo=0D
{=0D
std::string text1, text2, text3;=0D
=0D
foo(const std::string &t1, const std::string &t2, const std::string &t3)=
:=0D
text1(t1), text2(t2), text3(t3) { }=0D
=0D
};=0D
=0D
=0D
=0D
void whatever(foo &);=0D
=0D
=0D
int main()=0D
{=0D
foo something("telos", "ton", "imeron");=0D
=0D
whatever(something);=0D
=0D
}=0D
=0D
void whatever(foo &pf)=0D
{=0D
// ...=0D
}=0D
=0D
=0D
=0D
=3D=3D> Or even better i would provide it as a class with access function=
s.=0D
=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20 |
|
From: <or...@vp...> - 2003-03-03 22:16:25
|
Hello!
> what's the difference between using pointers and using simple variables? How
> does this difference affects the performance of my code? I know that using
> pointers is working with memory addresses but using simple variables would
> not have the same effect?
It is advisable to use pointers when you use structures, because it is
faster and more convenient. Suppose you have this structure:
struct foo{
char *Text1;
char *Text2;
char *Text3;
};
If you have a function that has this structure as its argument, then it
is better to pass only a pointer to it (&foo_struct), beacuse it already
has pointers in it to character arrays, so you have the same result if
you pass pointer or pass the whole struct. But when passing the whole
struct, it will be copied, but the Texts won't, just the pointers to it.
So it is better to pass only pointers to structs, always. It will make
your code cleaner, and you can always assure yourself, that you always
declared functions to use pointers.
--
Greetings,
Balázs
|
|
From: Insaciable M. K <the...@at...> - 2003-03-03 21:52:05
|
thats basicaly the jist of it, i cant get rid of that error, i have =
winmm.lib in my library files, and have mmsystem.h included along =
withthe other nesesary files included,=20
heres the call to the playsound function i have, although it is the same =
format another person used and worked for them.
PlaySound("beam.wav", NULL, SND_FILENAME | SND_SYNC);
for the life of me i cannot figure this out, and it has stumped many a =
person, please help!
|
|
From: Per W. <pw...@ia...> - 2003-03-03 21:10:38
|
For serial communication, just use some or more of the following:
CreateFile()
CloseHandle()
ReadFile()
ReadFileEx()
WriteFile()
WriteFileEx()
DCB - device control block
GetCommState()
SetCommState()
BuildCommDCB()
GetCommProperties()
SetupComm()
COMMCONFIG
GetCommConfig()
SetCommConfig()
GetDefaultCommConfig()
SetDefaultCommConfig()
CommConfigDialog()
TransmitCommChar()
PurgeComm() // clear input or output buffer
FlushFileBuffers() // wait for pending output to be sent
COMMTIMEOUTS
GetCommTimeouts()
SetCommTimeouts()
SetCommBreak()
ClearCommError()
EV_BREAK - break detected on input
EV_CTS - CTS changed state
EV_DSR
EV_ERR - line status error (CE_FRAME,CE_OVERRRUN,CE_RXPARITY)
EV_RING
EV_RLSD - receive-line-signal-detect changed state
EV_RXCHAR
EV_RXFLAG - the event character was received (DCB+SetCommState)
EV_TXEMPTY
WaitCommEvent()
SetCommMask()
GetCommModemStatus()
CreateFile(_T("\\.\com1")
/Per W
On Mon, 3 Mar 2003, jo mateix wrote:
> Hello,
> I've rearranged your post, so that others can understand it:
>
>
> >From: "jose" <fac...@ho...>
> >To: <dev...@li...>
> >Subject: [Dev-C++] as I capture and he/she sends data in the serial and
> >parallel ports in windows xp
> >Date: Sun, 2 Mar 2003 15:23:19 -0500
> >
> >Does anybody know how I can design a program in dev-c to capture data in
> >the serial port, in the parallel port and if it is possible in USB, for
> >windows xp professional? , he/she would thank any information.
>
> Well, C & C++ don't support built-in port manipulation, as it is system
> dependant. For example, code written for Unix didn't be portable to Windows.
> The right thing to do is to use the API required by your target system, or
> some cross-platform tool, such as xwindows... Sorry, I can't give you better
> advice. I'm not a experienced programmer.
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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: jo m. <non...@ho...> - 2003-03-03 19:33:56
|
Hello, I've rearranged your post, so that others can understand it: >From: "jose" <fac...@ho...> >To: <dev...@li...> >Subject: [Dev-C++] as I capture and he/she sends data in the serial and >parallel ports in windows xp >Date: Sun, 2 Mar 2003 15:23:19 -0500 > >Does anybody know how I can design a program in dev-c to capture data in >the serial port, in the parallel port and if it is possible in USB, for >windows xp professional? , he/she would thank any information. Well, C & C++ don't support built-in port manipulation, as it is system dependant. For example, code written for Unix didn't be portable to Windows. The right thing to do is to use the API required by your target system, or some cross-platform tool, such as xwindows... Sorry, I can't give you better advice. I'm not a experienced programmer. _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
|
From: Robert R. <RER...@ho...> - 2003-03-03 18:38:35
|
I am interested in writing some utilities that can pull data and files from the web. Can anyone suggest some reference links or methods for accessing the web using dev-cpp? Thank you for your time and for any help that you can provide in the above matters. Cordially, Robert Rasmussen <>< [The only normal people are the ones you don't know very well] ****I buy electronics! Computers, Handhelds, Audio, Video, Test Equipment, interested in selling? Let me know.**** |
|
From: Adam M. <up...@in...> - 2003-03-03 18:30:55
|
Hi. If you don't need pointers - don't use them. Unfortunately sometimes it is indispensable to use pointers. One little and simple example: when you want to pass argument to function and this function chages its value. To do this you must pass pointer or reference to the argument. And one more usage of pointers - dynamic memory allocation. regards Adam > Hi coders, > > what's the difference between using pointers and using simple variables? How > does this difference affects the performance of my code? I know that using > pointers is working with memory addresses but using simple variables would > not have the same effect? > > int *number or int number: what's the best to be used? > > > Thanks! ---------------------------------------------------------------------- KLIKAJ!!! Nie pytaj dlaczego... >>> http://link.interia.pl/f16e2 |
|
From: <st...@xs...> - 2003-03-03 18:26:04
|
This really depends on what you're doing. The main benefit to pointers is that you can send them to functions where the function can modify the value of that pointer variable. With normal variables they only get passed by value and since you can only have one return value per function it sometimes becomes necessary to modify the variables within your function rather than calling the funtion multiple times or writing multiple functions that return slightly different variables. Thanks, Steven Quoting Robson Bernard <rob...@su...>: > Hi coders, > > what's the difference between using pointers and using simple variables? How > does this difference affects the performance of my code? I know that using > pointers is working with memory addresses but using simple variables would > not have the same effect? > > int *number or int number: what's the best to be used? > > > Thanks! > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: Robson B. <rob...@su...> - 2003-03-03 18:11:03
|
Hi coders, what's the difference between using pointers and using simple variables? How does this difference affects the performance of my code? I know that using pointers is working with memory addresses but using simple variables would not have the same effect? int *number or int number: what's the best to be used? Thanks! |
|
From: Adam M. <up...@in...> - 2003-03-03 17:54:57
|
> And we have a new winner. > > The absolutely shortest help request ever (?). > And the hardest one. Try to answer it :) regards. Adam ---------------------------------------------------------------------- CZAT > Towarzyski > EROTYCZNY >>> http://link.interia.pl/f16e5 |
|
From: <fla...@ya...> - 2003-03-03 16:56:46
|
Hi every body! I am starting a new C++ project and I want to know if I will be able to use GTK and Dev-Cpp 4.9.7.0 Are the packages working well? If not, how long do I have to wait? I do not need it right now, since I am in the research phase. What about GCC 3.2? How is it? I do not want to start my project using the previous versions because it will become a large project and in the future I dont want to rewrite my code due to version incompabilitty. I´d appreciate to hear your comments. Thanks, Flavio. ===== Flavio de Souza fla...@ya... Sertãozinho - SP - Brasil Yahoo! ID: flaviostz _______________________________________________________________________ Busca Yahoo! O serviço de busca mais completo da Internet. O que você pensar o Yahoo! encontra. http://br.busca.yahoo.com/ |
|
From: Per W. <pw...@ia...> - 2003-03-03 16:51:50
|
It's more complicated that that. Here are some information. http://www.tldp.org/HOWTO/Program-Library-HOWTO/ /Per W On Mon, 3 Mar 2003, Strydom, J. (Jacques) wrote: > Hi, > > Am I correct in assuming that to make a library > file, the .o file created by the compiler just > have to be renamed. Or is it slightly more > complicated than that. > > Regards > Jaques Strydom > > ******************** > This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution, or taking any action based on this information is prohibited. > > Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or its effect on any electronic device of the recipient. > > If verification of this email or any attachment is required, please request a hard-copy version. > ******************** > |
|
From: Strydom, J. (Jacques) <Jac...@ne...> - 2003-03-03 16:28:40
|
Strydom, J. (Jacques) would like to recall the message, "Create lib file". ******************** This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution, or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ******************** |
|
From: Strydom, J. (Jacques) <Jac...@ne...> - 2003-03-03 16:18:38
|
Hi, Am I correct in assuming that to make a library file, the .o file created by the compiler just have to be renamed. Or is it slightly more complicated than that. Regards Jaques Strydom ******************** This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution, or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. ******************** |
|
From: Ioannis V. <no...@ho...> - 2003-03-03 15:52:50
|
You have my real admiration. It is inside my future scope to play with graphics myself in the future (with OPENGL 2.x though). By the way have y= ou checked Nvidia's Cg? If yes what's your opinion.=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D -------Original Message-------=0D =0D From: Roland Str=E5lberg=0D Date: =C4=E5=F5=F4=DD=F1=E1, 3 =CC=DC=F1=F4=E9=EF=F2 2003 4:37:51 =EC=EC=0D To: dev...@li...=0D Subject: Re: [Dev-C++] Tools advice?=0D =0D =0D Roland Str=E5lberg=0D ro...@st...=0D http://stralberg.kalix.net |
|
From: <rol...@mi...> - 2003-03-03 14:32:19
|
On Mon, 03 Mar 2003 14:54:06 +0100, OROSZI Balázs <or...@vp...> wrote: > There are so many 3D engines today. Why not to join a team that already > makes one? Of course only if you wish to make a free engine. > Look at > http://crystal.sf.net > for details on Crystal Space, a free (LGPL), and advanced 3D engine. I'll check it out, because what I really wan't is an egnine with some certain characteristics and support for trueSpace format. The latter I can fix by writing a trueSpace plugin to export to whatever format they are using. My idea was not to write a general 3d-engine, more an engine for my requirements and as a sideeffect make it free. But if that can be done with Crystal or another that's a good idea. Thanks for the tip >> 1. I'm from Sweden and not to familiar with english :) >> Can I name the project woo3d without taking the risk the name sounds >> stupid of funny for native english speaking people. ( woo3d stands for >> WOrld Of 3D ) > Why not call it just WO3D? Jepp ... that simpler. -- Roland Strålberg ro...@st... http://stralberg.kalix.net |
|
From: Per W. <pw...@ia...> - 2003-03-03 13:54:38
|
And we have a new winner. The absolutely shortest help request ever (?). /Per W On Mon, 3 Mar 2003, anele Ngcobo wrote: > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: <or...@vp...> - 2003-03-03 13:52:59
|
Hello! > I have recently started a 3d-engine project > using Microsoft tools and DirectX ( web site at > http://stralberg.kalix.net ). Now I have descided to restart the project > using Dev-C++ > and free tools / libraries + openGL. > > It will primary be designed for Windows, because > it's the only OS I'm familiar with. There are so many 3D engines today. Why not to join a team that already makes one? Of course only if you wish to make a free engine. Look at http://crystal.sf.net for details on Crystal Space, a free (LGPL), and advanced 3D engine. > 1. I'm from Sweden and not to familiar with english :) > Can I name the project woo3d without taking the risk the name sounds > stupid of funny for native english speaking people. ( woo3d stands for > WOrld Of 3D ) Why not call it just WO3D? > 2. My plan is to use openGL. Have you any suggestions > of good lib's that will help. Mesa maybe? Again, look at what Crystal Space uses - if you wish to make a new engine. -- Greetings, Balázs |