dev-cpp-users Mailing List for Dev-C++ (Page 357)
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. <iv...@em...> - 2003-07-04 20:24:40
|
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of David =
McKen
Sent: Friday, July 04, 2003 9:34 PM
To: Dev-Cpp Mailing List
Subject: Re: [Dev-C++] Super charging the string class
I see. So sub-classing basic_string<char> would be the reccomended way =
to do
this then?
=20
With respect to the over-ridden methods I am wondering whether you have =
some
example code that I can see. I know how to call base class methods from =
a
derived class but what I need is a way to reverse the default method =
called
(usually the derived method is called, I want the base to be called, if =
one
exist)=20
=20
The concept is a bit stupid... You can check what members the =
std::string
has. anyway in general if you inherit from a class and you do not know =
what
member functions has(?!) if a member function exists, is non-virtual by =
its
creator and takes the same arguments as yours, you can use that function =
by
using a base pointer. For example:
=20
=20
class whatever
{
// ...
=20
public:
// ...
=20
int something() const;
};
=20
=20
class your_class: public whatever
{
// ...
=20
public:
//...
=20
// You happen to define something() and
// you did not know it existed(!?)
void something() const;
};
=20
=20
whatever *p=3Dnew your_class;
=20
=20
//whatever::something() is called
// and not your definition
p->something();
=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/>
|
|
From: David M. <ci...@ya...> - 2003-07-04 18:33:46
|
MessageI see. So sub-classing basic_string<char> would be the reccomended way to do this then?
With respect to the over-ridden methods I am wondering whether you have some example code that I can see. I know how to call base class methods from a derived class but what I need is a way to reverse the default method called (usually the derived method is called, I want the base to be called, if one exist)
----- Original Message -----
From: Ioannis Vranos
To: 'Dev-Cpp Mailing List'
Sent: Friday, July 04, 2003 1:19 PM
Subject: RE: [Dev-C++] Super charging the string class
-----Original Message-----
From: dev...@li... [mailto:dev...@li...] On Behalf Of David McKen
Sent: Friday, July 04, 2003 7:51 PM
To: Dev-Cpp Mailing List
Subject: [Dev-C++] Super charging the string class
I am currently writing a heavy text-processing application.
As far as I can see the string class is not implemented uniformly. I wish to fill in the gaps as well as add a few extras that are used on a regular basis in the program (not the least of which are overloading the =, << and += operators).
What would be the best way to do this?
I was thinking create a class that inhereted from the string class and make my changes to that class. The only thing I am a bit curious about with this method is what happens if I override a function that exist on one of the platforms. How can I check for it's existence at compile time (Odds are the compiler writer's implementation is faster or more stable than mine).
std::string is basically a typedef of basic_string<char>. That is , it is:
typedef basic_string<char> string;
You can inherit from both, but i assume you intent to inherit basic_string<char>.
If you override an already existing function it will happen as always. Your inherited class member function will be executed for your inherited class instances (objects). As always however if you use a base pointer (pointer to std::string) the string member function will be executed.
Another way is to have an std::string object as a data member in your new type but in this case you would have to provide the whole string interface.
To see the basic_string members you can check the stanndard, TC++PL 3, or the web.
Another thing I saw and would like an opinion on is making all my overloads global. (i.e. instead of being part of the class they are normal functions thet implement the overloads). I see this getting a bit unweildly though.
In any case you should place your new string type inside a namespace. In this way you can even use the name string for your class!
As a general rule of style, definitions of operators having to do with objects of the same class are placed inside the class, and operators having to do with objects of other types are placed as "global" (in the namespace).
TC++PL tells about this somewhere (as it does for comment style using // for comments and /* */ only for debugging).
I summary the master in TC++PL talks about everything! :-)
Ioannis Vranos
* Programming pages: http://www.noicys.freeurlcom
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo. |
|
From: Ioannis V. <iv...@em...> - 2003-07-04 17:25:46
|
-----Original Message----- From: Ioannis Vranos [mailto:iv...@em...]=20 Sent: Friday, July 04, 2003 8:20 PM To: 'Dev-Cpp Mailing List' Subject: RE: [Dev-C++] Super charging the string class =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of David = McKen Sent: Friday, July 04, 2003 7:51 PM To: Dev-Cpp Mailing List Subject: [Dev-C++] Super charging the string class I am currently writing a heavy text-processing application. =20 As far as I can see the string class is not implemented uniformly. I = wish to fill in the gaps as well as add a few extras that are used on a regular basis in the program (not the least of which are overloading the =3D, << = and +=3D operators). =20 What would be the best way to do this? =20 I was thinking create a class that inhereted from the string class and = make my changes to that class. The only thing I am a bit curious about with = this method is what happens if I override a function that exist on one of the platforms. How can I check for it's existence at compile time (Odds are = the compiler writer's implementation is faster or more stable than mine).=20 =20 std::string is basically a typedef of basic_string<char>. That is , it = is: =20 typedef basic_string<char> string; =20 =20 You can inherit from both, but i assume you intent to inherit basic_string<char>. =20 =20 If you override an already existing function it will happen as always. = Your inherited class member function will be executed for your inherited = class instances (objects). As always however if you use a base pointer = (pointer to std::string) the string member function will be executed.=20 ... unless you make your type polymorphic (with virtual member = functions). =20 =20 Another way is to have an std::string object as a data member in your = new type but in this case you would have to provide the whole string = interface. =20 =20 To see the basic_string members you can check the stanndard, TC++PL 3, = or the web. =20 =20 =20 Another thing I saw and would like an opinion on is making all my = overloads global. (i.e. instead of being part of the class they are normal = functions thet implement the overloads). I see this getting a bit unweildly = though.=20 =20 =20 In any case you should place your new string type inside a namespace. = In this way you can even use the name string for your class! =20 As a general rule of style, definitions of operators having to do with objects of the same class are placed inside the class, and operators = having to do with objects of other types are placed as "global" (in the = namespace). =20 TC++PL tells about this somewhere (as it does for comment style using // = for comments and /* */ only for debugging). =20 I summary the master in TC++PL talks about everything! :-) =20 =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 |
|
From: Ioannis V. <iv...@em...> - 2003-07-04 17:20:20
|
=20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of David = McKen Sent: Friday, July 04, 2003 7:51 PM To: Dev-Cpp Mailing List Subject: [Dev-C++] Super charging the string class I am currently writing a heavy text-processing application. =20 As far as I can see the string class is not implemented uniformly. I = wish to fill in the gaps as well as add a few extras that are used on a regular basis in the program (not the least of which are overloading the =3D, << = and +=3D operators). =20 What would be the best way to do this? =20 I was thinking create a class that inhereted from the string class and = make my changes to that class. The only thing I am a bit curious about with = this method is what happens if I override a function that exist on one of the platforms. How can I check for it's existence at compile time (Odds are = the compiler writer's implementation is faster or more stable than mine).=20 =20 std::string is basically a typedef of basic_string<char>. That is , it = is: =20 typedef basic_string<char> string; =20 =20 You can inherit from both, but i assume you intent to inherit basic_string<char>. =20 =20 If you override an already existing function it will happen as always. = Your inherited class member function will be executed for your inherited = class instances (objects). As always however if you use a base pointer = (pointer to std::string) the string member function will be executed. =20 =20 Another way is to have an std::string object as a data member in your = new type but in this case you would have to provide the whole string = interface. =20 =20 To see the basic_string members you can check the stanndard, TC++PL 3, = or the web. =20 =20 =20 Another thing I saw and would like an opinion on is making all my = overloads global. (i.e. instead of being part of the class they are normal = functions thet implement the overloads). I see this getting a bit unweildly = though.=20 =20 =20 In any case you should place your new string type inside a namespace. = In this way you can even use the name string for your class! =20 As a general rule of style, definitions of operators having to do with objects of the same class are placed inside the class, and operators = having to do with objects of other types are placed as "global" (in the = namespace). =20 TC++PL tells about this somewhere (as it does for comment style using // = for comments and /* */ only for debugging). =20 I summary the master in TC++PL talks about everything! :-) =20 =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 |
|
From: Gabriel L. <ga...@ti...> - 2003-07-04 16:53:03
|
My "How to make VSTpluggs with Dev-C++ v. 4.9.8.0 [http://bloodshed.net] or later" has moved to the VST Source Code Archive [http://www.u-he.com/vstsource/] hosted by Urs Heckmann. The HowTo is far from complete as I have not yet written anything on how to make the new open source VSTGUI (as introduced in the 2.3 version of the VST SDK) work. There have been some postings on the net on the subject but lack of time has prevented me from studying them more carefully, something I hope to remedy in the upcoming weeks as well as trying to make it work in practise. Any suggestions or additions on the VSTGUI subject will greatly appriciated. Gabbe of Sweden |
|
From: David M. <ci...@ya...> - 2003-07-04 16:50:43
|
I am currently writing a heavy text-processing application. As far as I can see the string class is not implemented uniformly. I wish to fill in the gaps as well as add a few extras that are used on a regular basis in the program (not the least of which are overloading the =, << and += operators). What would be the best way to do this? I was thinking create a class that inhereted from the string class and make my changes to that class. The only thing I am a bit curious about with this method is what happens if I override a function that exist on one of the platforms. How can I check for it's existence at compile time (Odds are the compiler writer's implementation is faster or more stable than mine). Another thing I saw and would like an opinion on is making all my overloads global. (i.e. instead of being part of the class they are normal functions thet implement the overloads). I see this getting a bit unweildly though. --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! |
|
From: Philippe J. <phi...@di...> - 2003-07-04 10:12:06
|
Hello,
I use Dev-cpp with AVR-GCC.
The error result of the compilation is not correctely parsed.
Warning are correctly parsed.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
AVR-GCC :
UsbProg.c:377: warning: left-hand operand of comma expression has no =
effect
Dev-cpp :
Line File Message
377 C:\Dev-Cpp\Project\UsbProg.c [Warning] left-hand operand =
of comma expression has no effect
Error are incorrectly parsed.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
AVR-GCC :
UsbProg.c:377: error: `cntByte' undeclared (first use in this =
function)
Dev-Cpp :
Line File =
Message
error C:\Dev-Cpp\Project\UsbProg.c:377 `cntByte' undeclared =
(first use in this function)
Is it a bug in parser error ? |
|
From: Jorge A. <jab...@ma...> - 2003-07-04 09:44:48
|
Hello Guys!!
Again, thanks for the help and the - how could I say?, enlightening?- discussion. Daniel's solution worked alright and, what the hell?, I was happy, as I consider myself a beginner and my window program worked.
However, Per remarks were really good to understand what was going on. I believe we should shoot for the excellency, therefore, I tried the following code:
///////
for (loop=0;loop<Number_of_Points;loop++)
{
DWORD dWritten;
sprintf (temp,"%3d \r\n",ran1[loop]);
WriteFile(hFile, temp, strlen(temp),&dWritten, NULL);
}
//////
and it worked, too!
just for you to know:
a) in the first version I had: char temp[3], now I changed to 100.
b) the goal was to write an ascii file, not a binary.
Just for anybody interested, the program I wrote is to calculate random numbers according to 3 different types of probability density functions (I will include more in the future). Types supported are uniform, gaussian, and rayleigh. I don't have any problem sharing it and, as I am sure it contains many bugs, receive comments to improve it!!!
JE
|
|
From: Riddler L. <ri...@wi...> - 2003-07-04 04:25:24
|
Hi,
ncurses is the one you are looking for.
Regards,
Riddler
----- Original Message -----
From: "Wobien" <wo...@pl...>
To: "dev-cpp-users-list" <dev...@li...>
Sent: Friday, July 04, 2003 5:54 AM
Subject: [Dev-C++] manipulate console screen
> Hello,
> I am looking for a way to do manipulate my output on the console screen.
> How can I the cursor to the position where I want to print?
> How can I clean the screen?
> Thanks,
> Wobien
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> 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: Ray K. <he...@er...> - 2003-07-04 03:57:32
|
I've heard good things about ncurses. It's not ANSI, but the library's been ported to most systems. It should do the things you need. (I'm only starting to learn it, myself.) > on Thu, 03 Jul 2003 23:54:47 +0200, Wobien wrote: > Hello, > I am looking for a way to do manipulate my output on the console screen. > How can I the cursor to the position where I want to print? > How can I clean the screen? > Thanks, > Wobien |
|
From: pErCivaL <pma...@nt...> - 2003-07-04 03:11:14
|
> --__--__--
>
> Message: 12
> From: "Daniel Glenfield" <sp...@ho...>
> To: pw...@ia...
> Cc: jab...@ma..., dev-cpp-
>
> Given the speed of processors now, something like that can hardly be
> called expensive can it?
...that is if you're applications are PC bound!
what if it's for embedded systems... you can't have much processor speed in
there.
>
>> From: Per Westermark <pw...@ia...>
>> To: Daniel Glenfield <sp...@ho...>
>> CC: jab...@ma..., <dev-cpp-
>> us...@li...>
>> Subject: Re: [Dev-C++] (no subject)
>> Date: Thu, 3 Jul 2003 19:17:12 +0200 (CEST)
>>
>> But that ignores the problem that sizeof(temp) doesn't take into account
>> the number of characters in the buffer, only total declared size of it.
>> As
>> such, sizeof(temp) should never be used for emitting text files unless
>> you
>> really, really, really - did I say really? - know what you are doing.
>> strlen() is available specifically for checking the length of a string.
>>
>> In the first WriteFile() call, temp contains 2 characters, a terminating
>> zero and an unknown number of extra garbage at the end - depending on
>> what
>> size it was declared as.
>>
>> In the second WriteFile() call, temp constans 3 characters, a
>> terminating
>> zero and an unknown number of extra garbage.
>>
>> Besides, sprintf(temp,"\r\n","") is a bit expensive since the formatting
>> string didn't contain any formatting. That is when strcpy(temp,"\r\n")
>> should be used.
>>
>> Further, since the emitted string is a constant, why not directly emit
>> WriteFile(hFile,"\r\n",2,&dWritten,NULL);
>>
>> Any why not check the return value and the value of dWritten? And - just
>> a bit more knit-picking - dWritten should be called dwWritten since it
>> is
>> of type double-word.
>>
>> /Per W
>>
>> On Thu, 3 Jul 2003, Daniel Glenfield wrote:
>>
>> > Hey you guys hear that? I was correct!!! Ha ha! This feels great!
>> >
>> > Cheers,
>> > Daniel
>> >
>> > >From: "Jorge Abramian" <jab...@ma...>
>> > >Reply-To: <jab...@ma...>
>> > >To: <dev...@li...>
>> > >Subject: [Dev-C++] (no subject)
>> > >Date: Thu, 3 Jul 2003 09:47:14 -0400
>> > >
>> > >Hey guys, thanks for the help,
>> > >
>> > >Actually Daniel Glenfield was write. I did not try Per W. solution
>> that
>> > >probably would work either.
>> > >
>> > >I changed the code to the followin and it worked well:
>> > >
>> > >/////////
>> > > for (loop=0;loop<Number_of_Points;loop++)
>> > > {
>> > > DWORD dWritten;
>> > > sprintf (temp,"\r\n","");
>> > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
>> > > sprintf (temp,"%3d",ran1[loop]);
>> > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
>> > > }
>> > >/////////
>> > >
>> > >
>> > >
>> > >
>> > >-------------------------------------------------------
>> > >This SF.Net email sponsored by: Free pre-built ASP.NET sites
>> including
>> > >Data Reports, E-commerce, Portals, and Forums are available now.
>> > >Download today and enter to win an XBOX or Visual Studio .NET.
>> > >http://aspnet.click-
>> url.com/go/psa00100006ave/direct;at.asp_061203_01/01
>> > >_______________________________________________
>> > >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
>> >
>> > _________________________________________________________________
>> > Sign-up for a FREE BT Broadband connection today!
>> > http://www.msn.co.uk/specials/btbroadband
>> >
>> >
>> >
>> > -------------------------------------------------------
>> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>> > Data Reports, E-commerce, Portals, and Forums are available now.
>> > Download today and enter to win an XBOX or Visual Studio .NET.
>> > http://aspnet.click-
>> url.com/go/psa00100006ave/direct;at.asp_061203_01/01
>> > _______________________________________________
>> > 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
>> >
>>
>
> _________________________________________________________________
> Express yourself with cool emoticons - download MSN Messenger today!
> http://www.msn.co.uk/messenger
>
>
>
>
> --__--__--
>
> _______________________________________________
> 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
>
>
> End of Dev-cpp-users Digest
>
>
--
Data asks, "Sir, how is it that the Q can handle time and space so well and
us so badly?" and Picard replies aphoristically, "Perhaps someday we will
discover that space and time are simpler than the human equation."
mortality gives life focus and purpose
****************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the BrainStorm CyberWarfare e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to, someone
other than the recipient.
****************************************************
|
|
From: Nathan S. <cat...@do...> - 2003-07-04 00:01:21
|
I don't know about the DevPack downloading docs, but here is some links = for wxWindows: http://www.wxwindows.org/docs.htm - Documentation page on wxW website http://www.wxwindows.org/manuals/2.4.0/wx.htm - wxW 2.4.0 manual http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin.htm - wxW = 2.5.x manual Hope this helps. Nathan. ----- Original Message -----=20 From: Edward Diener=20 To: dev...@li...=20 Sent: Friday, July 04, 2003 6:11 AM Subject: [Dev-C++] Help for packages After installing ImageLib and wxWindows DevPaks in 4.9.8.1, I can not = find any Help files for these packages. Is there supposed to be Help = files with DevPaks ? If not, how does one learn to use any of them ? |
|
From: Wobien <wo...@pl...> - 2003-07-03 22:10:12
|
Hello, I am looking for a way to do manipulate my output on the console screen. How can I the cursor to the position where I want to print? How can I clean the screen? Thanks, Wobien |
|
From: Per W. <pw...@ia...> - 2003-07-03 20:28:20
|
Oops, reversed logic of last sentence. It should of course say "wasn't
intended".
On Thu, 3 Jul 2003, Per Westermark wrote:
> Sorry for coming out a bit rough but it's just that I think this issues
> are important. Too many programs fails miserably because of this kind of
> errors.
>
> First of all - count the number of parameters used to
> sprintf(temp,"\r\n","");
> What would you say the third parameter was used for. Sending extra
> parameters just because a variadric function allows it MUST be called
> inefficient.
>
> Second - do you notice any formatting character in the second parameter?
> If not, then there is no need to call sprintf(), and strcpy() would
> clearly be preferable to use.
>
> Third - why talk about how expensive a line is, when - in reality - it
> isn't needed at all. You might notice that
> WriteFile(handle,"\r\n",2,&dwCount,NULL);
> doesn't need the text to becopied to a temporary buffer before it is
> emitted. Also, 2 is the correct number of characters to emit if the goal
> is to generate a normal text file - at least until we aim for Unicode or
> multi-byte encodings.
>
> I'm pretty sure that temp wasn't declared as:
> char temp[2]
> so sizeof(temp) will most certainly result in an incorrect number of
> characters being written.
>
> Notice that
> sprintf(temp,"\r\n");
> would require 3 characters in temp, while
> sprintf(temp,"%3d",x);
> would require at least 4 - depending on the value of x.
>
> Obviously, it isn't possible to emit the two strings to a text file
> by using sizeof(temp). It wasn't possible in the original question either,
> since sprintf() requires room an extra termination chaarcter. Either
> temp[] would be large enough for that character - but then the termination
> character would also be emitted. Or temp[] was just large enough for the
> characters, but then sprintf() would have made a buffer overflow.
>
> But still - the code didn't prove that -99 <= ran1[loop] <= 999. Without
> that assumption, it isn't possible to predict the number of charactesr
> that sprintf() needs when performing the %3d processing. Given a variable
> number of characters in the formatted string, sizeof(temp) may never work,
> and strlen(temp) must be used.
>
> If emitting a binary file, sizeof(temp) is ok, since then temp[] might be
> defined "large enough", and the program may safely ignore any random
> characters emitted after the '\0' string termination and the full size of
> the temp[] buffer. However, the use of "\r\n" in the output seems like a
> very large indication that a binary fixed record-size file was intended.
>
> /Per W
>
> On Thu, 3 Jul 2003, Daniel Glenfield wrote:
>
> > Given the speed of processors now, something like that can hardly be called
> > expensive can it?
> >
> >
> > >From: Per Westermark <pw...@ia...>
> > >To: Daniel Glenfield <sp...@ho...>
> > >CC: jab...@ma...,
> > ><dev...@li...>
> > >Subject: Re: [Dev-C++] (no subject)
> > >Date: Thu, 3 Jul 2003 19:17:12 +0200 (CEST)
> > >
> > >But that ignores the problem that sizeof(temp) doesn't take into account
> > >the number of characters in the buffer, only total declared size of it. As
> > >such, sizeof(temp) should never be used for emitting text files unless you
> > >really, really, really - did I say really? - know what you are doing.
> > >strlen() is available specifically for checking the length of a string.
> > >
> > >In the first WriteFile() call, temp contains 2 characters, a terminating
> > >zero and an unknown number of extra garbage at the end - depending on what
> > >size it was declared as.
> > >
> > >In the second WriteFile() call, temp constans 3 characters, a terminating
> > >zero and an unknown number of extra garbage.
> > >
> > >Besides, sprintf(temp,"\r\n","") is a bit expensive since the formatting
> > >string didn't contain any formatting. That is when strcpy(temp,"\r\n")
> > >should be used.
> > >
> > >Further, since the emitted string is a constant, why not directly emit
> > >WriteFile(hFile,"\r\n",2,&dWritten,NULL);
> > >
> > >Any why not check the return value and the value of dWritten? And - just
> > >a bit more knit-picking - dWritten should be called dwWritten since it is
> > >of type double-word.
> > >
> > >/Per W
> > >
> > >On Thu, 3 Jul 2003, Daniel Glenfield wrote:
> > >
> > > > Hey you guys hear that? I was correct!!! Ha ha! This feels great!
> > > >
> > > > Cheers,
> > > > Daniel
> > > >
> > > > >From: "Jorge Abramian" <jab...@ma...>
> > > > >Reply-To: <jab...@ma...>
> > > > >To: <dev...@li...>
> > > > >Subject: [Dev-C++] (no subject)
> > > > >Date: Thu, 3 Jul 2003 09:47:14 -0400
> > > > >
> > > > >Hey guys, thanks for the help,
> > > > >
> > > > >Actually Daniel Glenfield was write. I did not try Per W. solution that
> > > > >probably would work either.
> > > > >
> > > > >I changed the code to the followin and it worked well:
> > > > >
> > > > >/////////
> > > > > for (loop=0;loop<Number_of_Points;loop++)
> > > > > {
> > > > > DWORD dWritten;
> > > > > sprintf (temp,"\r\n","");
> > > > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > > > > sprintf (temp,"%3d",ran1[loop]);
> > > > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > > > > }
> > > > >/////////
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >-------------------------------------------------------
> > > > >This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > > > >Data Reports, E-commerce, Portals, and Forums are available now.
> > > > >Download today and enter to win an XBOX or Visual Studio .NET.
> > > >
> > > >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > > >_______________________________________________
> > > > >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
> > > >
> > > > _________________________________________________________________
> > > > Sign-up for a FREE BT Broadband connection today!
> > > > http://www.msn.co.uk/specials/btbroadband
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > > > Data Reports, E-commerce, Portals, and Forums are available now.
> > > > Download today and enter to win an XBOX or Visual Studio .NET.
> > > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > > _______________________________________________
> > > > 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
> > > >
> > >
> >
> > _________________________________________________________________
> > Express yourself with cool emoticons - download MSN Messenger today!
> > http://www.msn.co.uk/messenger
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > _______________________________________________
> > 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
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> 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: Per W. <pw...@ia...> - 2003-07-03 20:15:30
|
Sorry for coming out a bit rough but it's just that I think this issues
are important. Too many programs fails miserably because of this kind of
errors.
First of all - count the number of parameters used to
sprintf(temp,"\r\n","");
What would you say the third parameter was used for. Sending extra
parameters just because a variadric function allows it MUST be called
inefficient.
Second - do you notice any formatting character in the second parameter?
If not, then there is no need to call sprintf(), and strcpy() would
clearly be preferable to use.
Third - why talk about how expensive a line is, when - in reality - it
isn't needed at all. You might notice that
WriteFile(handle,"\r\n",2,&dwCount,NULL);
doesn't need the text to becopied to a temporary buffer before it is
emitted. Also, 2 is the correct number of characters to emit if the goal
is to generate a normal text file - at least until we aim for Unicode or
multi-byte encodings.
I'm pretty sure that temp wasn't declared as:
char temp[2]
so sizeof(temp) will most certainly result in an incorrect number of
characters being written.
Notice that
sprintf(temp,"\r\n");
would require 3 characters in temp, while
sprintf(temp,"%3d",x);
would require at least 4 - depending on the value of x.
Obviously, it isn't possible to emit the two strings to a text file
by using sizeof(temp). It wasn't possible in the original question either,
since sprintf() requires room an extra termination chaarcter. Either
temp[] would be large enough for that character - but then the termination
character would also be emitted. Or temp[] was just large enough for the
characters, but then sprintf() would have made a buffer overflow.
But still - the code didn't prove that -99 <= ran1[loop] <= 999. Without
that assumption, it isn't possible to predict the number of charactesr
that sprintf() needs when performing the %3d processing. Given a variable
number of characters in the formatted string, sizeof(temp) may never work,
and strlen(temp) must be used.
If emitting a binary file, sizeof(temp) is ok, since then temp[] might be
defined "large enough", and the program may safely ignore any random
characters emitted after the '\0' string termination and the full size of
the temp[] buffer. However, the use of "\r\n" in the output seems like a
very large indication that a binary fixed record-size file was intended.
/Per W
On Thu, 3 Jul 2003, Daniel Glenfield wrote:
> Given the speed of processors now, something like that can hardly be called
> expensive can it?
>
>
> >From: Per Westermark <pw...@ia...>
> >To: Daniel Glenfield <sp...@ho...>
> >CC: jab...@ma...,
> ><dev...@li...>
> >Subject: Re: [Dev-C++] (no subject)
> >Date: Thu, 3 Jul 2003 19:17:12 +0200 (CEST)
> >
> >But that ignores the problem that sizeof(temp) doesn't take into account
> >the number of characters in the buffer, only total declared size of it. As
> >such, sizeof(temp) should never be used for emitting text files unless you
> >really, really, really - did I say really? - know what you are doing.
> >strlen() is available specifically for checking the length of a string.
> >
> >In the first WriteFile() call, temp contains 2 characters, a terminating
> >zero and an unknown number of extra garbage at the end - depending on what
> >size it was declared as.
> >
> >In the second WriteFile() call, temp constans 3 characters, a terminating
> >zero and an unknown number of extra garbage.
> >
> >Besides, sprintf(temp,"\r\n","") is a bit expensive since the formatting
> >string didn't contain any formatting. That is when strcpy(temp,"\r\n")
> >should be used.
> >
> >Further, since the emitted string is a constant, why not directly emit
> >WriteFile(hFile,"\r\n",2,&dWritten,NULL);
> >
> >Any why not check the return value and the value of dWritten? And - just
> >a bit more knit-picking - dWritten should be called dwWritten since it is
> >of type double-word.
> >
> >/Per W
> >
> >On Thu, 3 Jul 2003, Daniel Glenfield wrote:
> >
> > > Hey you guys hear that? I was correct!!! Ha ha! This feels great!
> > >
> > > Cheers,
> > > Daniel
> > >
> > > >From: "Jorge Abramian" <jab...@ma...>
> > > >Reply-To: <jab...@ma...>
> > > >To: <dev...@li...>
> > > >Subject: [Dev-C++] (no subject)
> > > >Date: Thu, 3 Jul 2003 09:47:14 -0400
> > > >
> > > >Hey guys, thanks for the help,
> > > >
> > > >Actually Daniel Glenfield was write. I did not try Per W. solution that
> > > >probably would work either.
> > > >
> > > >I changed the code to the followin and it worked well:
> > > >
> > > >/////////
> > > > for (loop=0;loop<Number_of_Points;loop++)
> > > > {
> > > > DWORD dWritten;
> > > > sprintf (temp,"\r\n","");
> > > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > > > sprintf (temp,"%3d",ran1[loop]);
> > > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > > > }
> > > >/////////
> > > >
> > > >
> > > >
> > > >
> > > >-------------------------------------------------------
> > > >This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > > >Data Reports, E-commerce, Portals, and Forums are available now.
> > > >Download today and enter to win an XBOX or Visual Studio .NET.
> > >
> > >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > >_______________________________________________
> > > >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
> > >
> > > _________________________________________________________________
> > > Sign-up for a FREE BT Broadband connection today!
> > > http://www.msn.co.uk/specials/btbroadband
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > > Data Reports, E-commerce, Portals, and Forums are available now.
> > > Download today and enter to win an XBOX or Visual Studio .NET.
> > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > > _______________________________________________
> > > 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
> > >
> >
>
> _________________________________________________________________
> Express yourself with cool emoticons - download MSN Messenger today!
> http://www.msn.co.uk/messenger
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> 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: Edward D. <eld...@ea...> - 2003-07-03 20:14:03
|
After installing ImageLib and wxWindows DevPaks in 4.9.8.1, I can not = find any Help files for these packages. Is there supposed to be Help = files with DevPaks ? If not, how does one learn to use any of them ? |
|
From: Daniel G. <sp...@ho...> - 2003-07-03 19:02:11
|
Given the speed of processors now, something like that can hardly be called
expensive can it?
>From: Per Westermark <pw...@ia...>
>To: Daniel Glenfield <sp...@ho...>
>CC: jab...@ma...,
><dev...@li...>
>Subject: Re: [Dev-C++] (no subject)
>Date: Thu, 3 Jul 2003 19:17:12 +0200 (CEST)
>
>But that ignores the problem that sizeof(temp) doesn't take into account
>the number of characters in the buffer, only total declared size of it. As
>such, sizeof(temp) should never be used for emitting text files unless you
>really, really, really - did I say really? - know what you are doing.
>strlen() is available specifically for checking the length of a string.
>
>In the first WriteFile() call, temp contains 2 characters, a terminating
>zero and an unknown number of extra garbage at the end - depending on what
>size it was declared as.
>
>In the second WriteFile() call, temp constans 3 characters, a terminating
>zero and an unknown number of extra garbage.
>
>Besides, sprintf(temp,"\r\n","") is a bit expensive since the formatting
>string didn't contain any formatting. That is when strcpy(temp,"\r\n")
>should be used.
>
>Further, since the emitted string is a constant, why not directly emit
>WriteFile(hFile,"\r\n",2,&dWritten,NULL);
>
>Any why not check the return value and the value of dWritten? And - just
>a bit more knit-picking - dWritten should be called dwWritten since it is
>of type double-word.
>
>/Per W
>
>On Thu, 3 Jul 2003, Daniel Glenfield wrote:
>
> > Hey you guys hear that? I was correct!!! Ha ha! This feels great!
> >
> > Cheers,
> > Daniel
> >
> > >From: "Jorge Abramian" <jab...@ma...>
> > >Reply-To: <jab...@ma...>
> > >To: <dev...@li...>
> > >Subject: [Dev-C++] (no subject)
> > >Date: Thu, 3 Jul 2003 09:47:14 -0400
> > >
> > >Hey guys, thanks for the help,
> > >
> > >Actually Daniel Glenfield was write. I did not try Per W. solution that
> > >probably would work either.
> > >
> > >I changed the code to the followin and it worked well:
> > >
> > >/////////
> > > for (loop=0;loop<Number_of_Points;loop++)
> > > {
> > > DWORD dWritten;
> > > sprintf (temp,"\r\n","");
> > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > > sprintf (temp,"%3d",ran1[loop]);
> > > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > > }
> > >/////////
> > >
> > >
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > >Data Reports, E-commerce, Portals, and Forums are available now.
> > >Download today and enter to win an XBOX or Visual Studio .NET.
> >
> >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > >_______________________________________________
> > >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
> >
> > _________________________________________________________________
> > Sign-up for a FREE BT Broadband connection today!
> > http://www.msn.co.uk/specials/btbroadband
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> > _______________________________________________
> > 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
> >
>
_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today!
http://www.msn.co.uk/messenger
|
|
From: Per W. <pw...@ia...> - 2003-07-03 17:15:32
|
But that ignores the problem that sizeof(temp) doesn't take into account
the number of characters in the buffer, only total declared size of it. As
such, sizeof(temp) should never be used for emitting text files unless you
really, really, really - did I say really? - know what you are doing.
strlen() is available specifically for checking the length of a string.
In the first WriteFile() call, temp contains 2 characters, a terminating
zero and an unknown number of extra garbage at the end - depending on what
size it was declared as.
In the second WriteFile() call, temp constans 3 characters, a terminating
zero and an unknown number of extra garbage.
Besides, sprintf(temp,"\r\n","") is a bit expensive since the formatting
string didn't contain any formatting. That is when strcpy(temp,"\r\n")
should be used.
Further, since the emitted string is a constant, why not directly emit
WriteFile(hFile,"\r\n",2,&dWritten,NULL);
Any why not check the return value and the value of dWritten? And - just
a bit more knit-picking - dWritten should be called dwWritten since it is
of type double-word.
/Per W
On Thu, 3 Jul 2003, Daniel Glenfield wrote:
> Hey you guys hear that? I was correct!!! Ha ha! This feels great!
>
> Cheers,
> Daniel
>
> >From: "Jorge Abramian" <jab...@ma...>
> >Reply-To: <jab...@ma...>
> >To: <dev...@li...>
> >Subject: [Dev-C++] (no subject)
> >Date: Thu, 3 Jul 2003 09:47:14 -0400
> >
> >Hey guys, thanks for the help,
> >
> >Actually Daniel Glenfield was write. I did not try Per W. solution that
> >probably would work either.
> >
> >I changed the code to the followin and it worked well:
> >
> >/////////
> > for (loop=0;loop<Number_of_Points;loop++)
> > {
> > DWORD dWritten;
> > sprintf (temp,"\r\n","");
> > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > sprintf (temp,"%3d",ran1[loop]);
> > WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> > }
> >/////////
> >
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> >Data Reports, E-commerce, Portals, and Forums are available now.
> >Download today and enter to win an XBOX or Visual Studio .NET.
> >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> >_______________________________________________
> >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
>
> _________________________________________________________________
> Sign-up for a FREE BT Broadband connection today!
> http://www.msn.co.uk/specials/btbroadband
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> 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: <sol...@ya...> - 2003-07-03 16:44:39
|
MFC comes with MS Visual C++. I got a CD with a trial cersion of it, I tried once to compile the examples with MFC in Dev, copying the MFC directories (I haven't installed MSVisual), and at first attempt I didn't achieve it. However, I haven't tried too hard, so perhaps it is possible to use MFC with dev, but just copying the MFC dirs is not enough (perhaps you need copy some other items I didn't). |
|
From: Daniel G. <sp...@ho...> - 2003-07-03 16:25:26
|
Hey you guys hear that? I was correct!!! Ha ha! This feels great!
Cheers,
Daniel
>From: "Jorge Abramian" <jab...@ma...>
>Reply-To: <jab...@ma...>
>To: <dev...@li...>
>Subject: [Dev-C++] (no subject)
>Date: Thu, 3 Jul 2003 09:47:14 -0400
>
>Hey guys, thanks for the help,
>
>Actually Daniel Glenfield was write. I did not try Per W. solution that
>probably would work either.
>
>I changed the code to the followin and it worked well:
>
>/////////
> for (loop=0;loop<Number_of_Points;loop++)
> {
> DWORD dWritten;
> sprintf (temp,"\r\n","");
> WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> sprintf (temp,"%3d",ran1[loop]);
> WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> }
>/////////
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
>_______________________________________________
>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
_________________________________________________________________
Sign-up for a FREE BT Broadband connection today!
http://www.msn.co.uk/specials/btbroadband
|
|
From: Daniel G. <sp...@ho...> - 2003-07-03 16:18:24
|
Can you use MFC in dev-cpp? You can download the libraries from somewhere? MFC is easy enough, just don't go expecting your applications to be small in size (not that it really matters to most people). >From: David McKen <ci...@ya...> >Reply-To: ci...@ya... >To: Dev-C Mailing List <dev...@li...> >Subject: Re: [Dev-C++] Classes for Windows >Date: Thu, 3 Jul 2003 06:58:27 -0700 (PDT) > >There is the MFC (Microsoft Foundation Classes), I have >never used it though so I am not so sure how easy it is. If >you want portablity (or even if you don't) wxWindows is a >GUI creation library (you get threads, sockets, etc) that >is not that hard to learn (I actually know this one). Also >there is GTK+ and QT (neither I have used, but I have heard >good things about them) > >Hope this Helps >David Mcken > >--- Esteban Valverde <est...@ho...> wrote: > > Hi, is there any class package for gcc to write windows > > applications instead > > the classical Windows API functions ? > > > > bye, Esteban > > est...@ho... > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET > > sites including > > Data Reports, E-commerce, Portals, and Forums are > > available now. > > Download today and enter to win an XBOX or Visual Studio > > .NET. > > >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > > _______________________________________________ > > 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 > > >===== >Signed >David Mcken > >Life Sucks >Live with it > >__________________________________ >Do you Yahoo!? >SBC Yahoo! DSL - Now only $29.95 per month! >http://sbc.yahoo.com > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 >_______________________________________________ >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 _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Daniel K. O. <dan...@ya...> - 2003-07-03 16:04:40
|
David McKen wrote: > There is the MFC (Microsoft Foundation Classes), I have > never used it though so I am not so sure how easy it is. If > you want portablity (or even if you don't) wxWindows is a > GUI creation library (you get threads, sockets, etc) that > is not that hard to learn (I actually know this one). Also > there is GTK+ and QT (neither I have used, but I have heard > good things about them) Based on my experience (and on www.trolltech.com 's info), Qt doesn't work with MinGW, only with MS Visual C++. But here is an interesting link: http://www.atai.org/guitool/ Daniel K. O. |
|
From: David M. <ci...@ya...> - 2003-07-03 13:58:27
|
There is the MFC (Microsoft Foundation Classes), I have never used it though so I am not so sure how easy it is. If you want portablity (or even if you don't) wxWindows is a GUI creation library (you get threads, sockets, etc) that is not that hard to learn (I actually know this one). Also there is GTK+ and QT (neither I have used, but I have heard good things about them) Hope this Helps David Mcken --- Esteban Valverde <est...@ho...> wrote: > Hi, is there any class package for gcc to write windows > applications instead > the classical Windows API functions ? > > bye, Esteban > est...@ho... > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET > sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual Studio > .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > 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 ===== Signed David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
|
From: Jorge A. <jab...@ma...> - 2003-07-03 13:47:33
|
Hey guys, thanks for the help,
Actually Daniel Glenfield was write. I did not try Per W. solution that probably would work either.
I changed the code to the followin and it worked well:
/////////
for (loop=0;loop<Number_of_Points;loop++)
{
DWORD dWritten;
sprintf (temp,"\r\n","");
WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
sprintf (temp,"%3d",ran1[loop]);
WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
}
/////////
|
|
From: Esteban V. <est...@ho...> - 2003-07-03 13:44:16
|
Hi, is there any class package for gcc to write windows applications instead the classical Windows API functions ? bye, Esteban est...@ho... |