dev-cpp-users Mailing List for Dev-C++ (Page 471)
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: Per W. <pw...@ia...> - 2002-12-11 09:21:35
|
You may continue to include stdlib.h as normal. Put your atoi() in either your main program, or in a separate source file. Dev-C++ will make sure that the object file containing your atoi will be linked before the standard libraries, i.e. that your version of atoi will be used instead of the implementation in the standard libraries. The reason you want stdlib.h both when implementing and when using your atoi is that it must have exactly the same format as the original implementation, or any calls from within the standard libraries will fail. One other thing - if the original implementation of atoi in the standard libraries was placed in a source file together with a number of other standard functions, you might have to replace these functions too. A library is just a collection of individual object files, and the linker may never perform linking on individual functions or variables. All linking is performed on complete object files. I saw some references in a couple of other mails about using inline or placing the atoi declaration in a different include file etc. No, you don't need to do these steps. The linker thinks it's ok to have the same symbol defined in your object files and in the libraries. It will just pick the object file instead of extracting an implementation from the library file. The only reason for taking extra steps is if you want to be able to call both a new and an old implementation in the same program. In that case you have to do something like: #define atoi my_atoi in an include file, to map all calls to your new atoi. Then in the part of the program where you want to access the original atoi, you have to do: #undef atoi return atoi(x) Note that this concept doesn't work if atoi would already from the beginning be a #define'd symbol. The concept of fooling around with #define is for example used in a number of environments, to replace the memory allocation functions with debug versions that checks heap validity and that you remember to release all memory on program end. /Per W On Tue, 10 Dec 2002, Zachary Uram wrote: > At 03:27 AM 12/10/02, Per Westermark wrote: > >Yes, I can see that your code does try to use the <strlib.h> file, but > >there are no such standard file. Whenever you find that Dev-C++ is missing > >a standard include file, there is a very, very large proability that you > >have either misspelled the include file, or that it isn't such a STANDARD > >include file, but something special installed by some 3rd party tool on a > >machine somewhere. > > > >That's why I wondered if it wasn't <stdlib.h> that should be used instead. > >It might also be the <string.h> file that was intended. > > > ><stdlib.h> contains among other things atoi() implemented in your source. > ><string.h> contans strchr() declaration. > > > Hi Per, > > How can I tell the compiler to use my verson of atoi() and not the one in > the stdlib.h library? > I will try replacing strlib.h with string.h as well. > > Zach > > Zachary Uram > John 3:16 > <>< > > |
|
From: Yeoh H. <ye...@ye...> - 2002-12-11 08:48:41
|
Hi,
#if and #endif are compiler directives. This means that the compiler can
conditionally compile certain sections of code.
#if (_WIN32_IE >=3D 0x0300)
typedef struct tagINITCOMMONCONTROLSEX {
DWORD dwSize;
DWORD dwICC;
} INITCOMMONCONTROLSEX,*LPINITCOMMONCONTROLSEX;
#endif
What happens?
If _WIN32_IE is defined to be >=3D 0x0300 then compile the code within th=
e #if
and #endif block.
If _WIN32_IE is not defined, then the code within the #if and #endif bloc=
k
would not be included for compilation.
What is this _WIN32_IE >=3D 0x0300?
This means that if Windows 32 bit Internet Explorer version 3.0 or later =
is
installed, then the code within the #if and #end if is compiled.
Why this _WIN32_IE >=3D 0x0300? To explain why, you'll need more informat=
ion
from MSDN.
Here're some details about Common Controls from MSDN
<begin extract>
Because of ongoing enhancements, different versions of Comctl32.dll
implement different features. Throughout this document, programming eleme=
nts
are marked with a version number. This version number indicates that the
programming element is implemented in that version and later versions of
Comctl32.dll. If no version number is specified, the programming element =
is
implemented in all versions. The following table outlines the different
versions of Comctl32.dll and the distribution platform.
Version Distribution platform
4.00 Microsoft=AE Windows=AE 95/Windows NT=AE 4.0
4.70 Microsoft=AE Internet Explorer 3.x
4.71 Microsoft=AE Internet Explorer 4.0
4.72 Microsoft=AE Internet Explorer 4.01
To ensure that your application is compatible with different targeted
versions of the common control DLL (Comctl32.dll), a version macro was ad=
ded
to Commctrl.h. This version macro is used to define, exclude, or redefine
certain common control definitions for different versions of the DLL. The
macro name is _WIN32_IE and you, the developer, are responsible for defin=
ing
the macro as a hexadecimal number. This version number defines the target
version of the application that is using the DLL.
<end extract>
For details, please look up MSDN. It also has code to get the commctrl dl=
l
version.
Regards,
Yeoh
--
http://www.yeohhs.com
You wrote:
> OK. Thanks. But can you explain what that directive does? I don't like
using
> something I don't understand.
>
|
|
From: Zachary U. <ne...@st...> - 2002-12-11 08:07:57
|
At 02:15 AM 12/11/02, Sebastien Morand wrote: >Hi Zach, > >Not at all, you can try to put the word inline in this case. If your >function isn't too big, and isn't recursive (and have not weird >properties, like calling a funtion calling itself) this function will >be certainly inline everywhere you will use it so it will be faster >since the code of the function will be direclty put instead of the >call of the function. It it can't inline it and you put even so the >word inline, the worst you can get is a warning. Note that if you >compile with -O3 (gcc option) every function will be try to put as an >inline function. > >The way I suggest was just to have the declaration in the same time >than the definition to be sure that the compiler use your function. If >you put your function in another module and link the module together, >the compiler will use the stdlib function :( [snip] Merci beaucoup Sebastien. Je vois :) C'est bon~ Zach Zachary Uram John 3:16 <>< |
|
From: Vlada D. <dj...@im...> - 2002-12-11 07:51:44
|
----- Original Message -----
From: "Yeoh HS" <ye...@ye...>
To: "Vlada Djurovic" <dj...@im...>; "'DevC++ help'"
<dev...@li...>
Sent: Wednesday, December 11, 2002 2:20 AM
Subject: Re: [Dev-C++] version of commctrl.h
> Hi,
>
> If you take a look at commctrl.h, here's what you'll find.
> #if (_WIN32_IE >= 0x0300)
> typedef struct tagINITCOMMONCONTROLSEX {
> DWORD dwSize;
> DWORD dwICC;
> } INITCOMMONCONTROLSEX,*LPINITCOMMONCONTROLSEX;
> #endif
>
> That's why you are getting undeclared error message for
> INITCOMMONCONTROLSEX.
>
> To solve this you need to define _WIN32_IE to be at least 0x0300.
>
> One method is to add this define is in you code, before you include
> commctrl.h
> #define _WIN32_IE 0x0400
> #include <commctrl.h>
>
> Or, you can add the define to the compiler options.
>
> Best Regards,
> Yeoh
> ~`~`~`~`~`~`~`~`~`~`~
> http://www.yeohhs.com
> ~`~`~`~`~`~`~`~`~`~`~
>
OK. Thanks. But can you explain what that directive does? I don't like using
something I don't understand.
> ----- Original Message -----
> From: "Vlada Djurovic" <dj...@im...>
> To: "'DevC++ help'" <dev...@li...>
> Sent: Tuesday, December 10, 2002 8:32 PM
> Subject: [Dev-C++] version of commctrl.h
>
>
> > Hi.
> > I #included commctrl.h in one of my projects trying to create a toolbar.
I
> > get error messages like "INITCOMMONCINTROLSEX not declared" and
"BTNS_XXX
> > not declared". After that, I used TBSTYLE_XXX for button styles and
> > InitCommonControls() and it worked. I am running Win2000 and Dev-Cpp
> > 4.9.6.0. Could it be that I have some older version of commctrl.h or
> > libcomctl32 (also included in linker settings)? Or maybe I have some
older
> > version of comctl32.dll? How can I determine which versions I have?
> >
> > Regards,
> > Vlada
> >
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> 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: Sebastien M. <seb...@te...> - 2002-12-11 06:55:12
|
Hi Zach,
Not at all, you can try to put the word inline in this case. If your
function isn't too big, and isn't recursive (and have not weird
properties, like calling a funtion calling itself) this function will
be certainly inline everywhere you will use it so it will be faster
since the code of the function will be direclty put instead of the
call of the function. It it can't inline it and you put even so the
word inline, the worst you can get is a warning. Note that if you
compile with -O3 (gcc option) every function will be try to put as an
inline function.
The way I suggest was just to have the declaration in the same time
than the definition to be sure that the compiler use your function. If
you put your function in another module and link the module together,
the compiler will use the stdlib function :(
For instance:
/************
* test1.cpp *
*************/
#include <stdlib.h> /* This header has to be set BEFORE teset.h,
* otherwise you get a conflict in the definition,
* the compiler will say that the atoi function is
* already defined. */
#include "test.h"
int main()
{
atoi();
return 0;
}
/*********
* test.h *
**********/
int atoi(const char *)
{
printf("It's my atoi :)\n");
return 0;
}
if you compile gcc test1.cpp and run the a.out you get:
It's my atoi :)
as output.
But if you name the test.h in test2.cpp, remove the #include "test.h"
line of the test1.cpp file and compile gcc test1.cpp test2.cpp and run
the a.out, you get no output because the atoi function used is not
yours!
Now if you change
int atoi(const char *)
by
inline int atoi(const char *)
you function will run faster, but the behaviour will be the same,
anyway, it's always a good thing to make the inline word. By the way,
don't forget to put -O1, -O2 or -O3, because by default no function
will be inlined, even if you use the inline word.
I hope it's more clear, maybe you knew most of things I said :)
Sebastien.
On Tue, Dec 10, 2002 at 11:12:03PM -0500, Zachary Uram wrote:
> Hi Sebastien,
>
> Ah is this what an "inline function declaration" is? How can I do this in
> the header file?
>
> Zach
>
> At 11:04 PM 12/10/02, Sebastien Morand wrote:
> >Hi Zach,
> >If you use the include stdlib and want to use your own atoi
> >definition, you have to definite it (not only the declaration) in a
> >specific header your will include in all file where you use this function.
> >You must be sure that your file with the definition of atoi is include
> >AFTER stdlib.h if you use it in the same file. In all tests I made it
> >works.
> >
> >Have fun in coding,
> >Sebastien.
>
> Zachary Uram
> John 3:16
> <><
>
--
Time remaining: 28 weeks 6 days 0 hours 0 minutes
|
|
From: Naveen P <nav...@re...> - 2002-12-11 04:56:06
|
Can I use Borland compiler along with developer cpp? I have regualr expression where in which it filters the borland c++ compiler 5.5 listing. I have the regular expression. ^[^ ]+ [^ ]+ (.+) ([0-9]+:) Can it be implemented ? With Regards Naveen With Regards Naveen |
|
From: Zachary U. <ne...@st...> - 2002-12-11 04:14:01
|
Hi Sebastien, Ah is this what an "inline function declaration" is? How can I do this in the header file? Zach At 11:04 PM 12/10/02, Sebastien Morand wrote: >Hi Zach, >If you use the include stdlib and want to use your own atoi >definition, you have to definite it (not only the declaration) in a >specific header your will include in all file where you use this function. >You must be sure that your file with the definition of atoi is include >AFTER stdlib.h if you use it in the same file. In all tests I made it >works. > >Have fun in coding, >Sebastien. Zachary Uram John 3:16 <>< |
|
From: Sebastien M. <seb...@te...> - 2002-12-11 03:44:47
|
Hi Zach, If you use the include stdlib and want to use your own atoi definition, you have to definite it (not only the declaration) in a specific header your will include in all file where you use this function. You must be sure that your file with the definition of atoi is include AFTER stdlib.h if you use it in the same file. In all tests I made it works. Have fun in coding, Sebastien. On Tue, Dec 10, 2002 at 09:20:57PM -0500, Zachary Uram wrote: > At 03:27 AM 12/10/02, Per Westermark wrote: > >Yes, I can see that your code does try to use the <strlib.h> file, but > >there are no such standard file. Whenever you find that Dev-C++ is missing > >a standard include file, there is a very, very large proability that you > >have either misspelled the include file, or that it isn't such a STANDARD > >include file, but something special installed by some 3rd party tool on a > >machine somewhere. > > > >That's why I wondered if it wasn't <stdlib.h> that should be used instead. > >It might also be the <string.h> file that was intended. > > > ><stdlib.h> contains among other things atoi() implemented in your source. > ><string.h> contans strchr() declaration. > > > Hi Per, > > How can I tell the compiler to use my verson of atoi() and not the one in > the stdlib.h library? > I will try replacing strlib.h with string.h as well. > > Zach > > Zachary Uram > John 3:16 > <>< > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > 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 > -- Time remaining: 28 weeks 6 days 3 hours 6 minutes |
|
From: Zachary U. <ne...@st...> - 2002-12-11 02:22:51
|
At 03:27 AM 12/10/02, Per Westermark wrote: >Yes, I can see that your code does try to use the <strlib.h> file, but >there are no such standard file. Whenever you find that Dev-C++ is missing >a standard include file, there is a very, very large proability that you >have either misspelled the include file, or that it isn't such a STANDARD >include file, but something special installed by some 3rd party tool on a >machine somewhere. > >That's why I wondered if it wasn't <stdlib.h> that should be used instead. >It might also be the <string.h> file that was intended. > ><stdlib.h> contains among other things atoi() implemented in your source. ><string.h> contans strchr() declaration. Hi Per, How can I tell the compiler to use my verson of atoi() and not the one in the stdlib.h library? I will try replacing strlib.h with string.h as well. Zach Zachary Uram John 3:16 <>< |
|
From: Yeoh H. <ye...@ye...> - 2002-12-11 01:22:07
|
Hi,
If you take a look at commctrl.h, here's what you'll find.
#if (_WIN32_IE >= 0x0300)
typedef struct tagINITCOMMONCONTROLSEX {
DWORD dwSize;
DWORD dwICC;
} INITCOMMONCONTROLSEX,*LPINITCOMMONCONTROLSEX;
#endif
That's why you are getting undeclared error message for
INITCOMMONCONTROLSEX.
To solve this you need to define _WIN32_IE to be at least 0x0300.
One method is to add this define is in you code, before you include
commctrl.h
#define _WIN32_IE 0x0400
#include <commctrl.h>
Or, you can add the define to the compiler options.
Best Regards,
Yeoh
~`~`~`~`~`~`~`~`~`~`~
http://www.yeohhs.com
~`~`~`~`~`~`~`~`~`~`~
----- Original Message -----
From: "Vlada Djurovic" <dj...@im...>
To: "'DevC++ help'" <dev...@li...>
Sent: Tuesday, December 10, 2002 8:32 PM
Subject: [Dev-C++] version of commctrl.h
> Hi.
> I #included commctrl.h in one of my projects trying to create a toolbar. I
> get error messages like "INITCOMMONCINTROLSEX not declared" and "BTNS_XXX
> not declared". After that, I used TBSTYLE_XXX for button styles and
> InitCommonControls() and it worked. I am running Win2000 and Dev-Cpp
> 4.9.6.0. Could it be that I have some older version of commctrl.h or
> libcomctl32 (also included in linker settings)? Or maybe I have some older
> version of comctl32.dll? How can I determine which versions I have?
>
> Regards,
> Vlada
>
|
|
From: <h.r...@gm...> - 2002-12-10 20:52:02
|
try to include the path C:\Dev-Cpp\include\c++\mingw32 (if you use the default settings) in tools/compiler options/directories/c++ includes. That may help Horst > I downloaded the new version of Dev-C++ (4.9.7). But I have problems > when > I compile the project. When I compile it in version (4.9.6) the compiler > doesn't report any errors, but with version 4.9.7 the compiler reported > around 105 errors! I read a message that gave a solution, something about > including some files, but I deleted it. Can anyone help me? Your help > would > be greatly helpful. > > PS. Sorry for my English. -- Horst Rößner ICQ ID #74808448 h.r...@gm... www.hroess.net +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! |
|
From: Jose A. F. L. <alp...@ho...> - 2002-12-10 18:37:29
|
I downloaded the new version of Dev-C++ (4.9.7). But I have problems when I compile the project. When I compile it in version (4.9.6) the compiler doesn't report any errors, but with version 4.9.7 the compiler reported around 105 errors! I read a message that gave a solution, something about including some files, but I deleted it. Can anyone help me? Your help would be greatly helpful. PS. Sorry for my English. _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
|
From: Miguel M <rad...@ya...> - 2002-12-10 17:21:55
|
Hey Rodolfo, I was wondering if you can send me a copy of that file. I would like to take a look at it. Thanks. -Miguel rad...@ya... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now |
|
From: Daniel G. <sp...@ho...> - 2002-12-10 14:51:48
|
Glad you got it figured out!!! >From: Marc Heiligers <ma...@e-...> >To: dev-cpp-users-list <dev...@li...> >Subject: [Dev-C++] windres vs me (I WIN!) >Date: Tue, 10 Dec 2002 16:33:47 +0200 > >Hi All, > >Never mind, I figured it out. Don't define IDB_ABOUT in resource.h, and >then >use > >CONTROL "IDB_ABOUT", IDC_ABOUT, "Static", SS_BITMAP | SS_CENTERIMAGE | >SS_REALSIZEIMAGE, 1, 1, 158, 16 > >Thanks to all of you who are frantically searching through old books and >surfing the web trying to find a an answer for me. > >_____________________________ >Marc Heiligers > > >------------------------------------------------------- >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 _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: Marc H. <ma...@e-...> - 2002-12-10 14:30:17
|
Hi All, Never mind, I figured it out. Don't define IDB_ABOUT in resource.h, and then use CONTROL "IDB_ABOUT", IDC_ABOUT, "Static", SS_BITMAP | SS_CENTERIMAGE | SS_REALSIZEIMAGE, 1, 1, 158, 16 Thanks to all of you who are frantically searching through old books and surfing the web trying to find a an answer for me. _____________________________ Marc Heiligers |
|
From: Marc H. <ma...@e-...> - 2002-12-10 14:02:36
|
Hi All, I am trying to display a bitmap on a dialog. I use the following in my resource file: IDB_ABOUT BITMAP "res\\about.bmp" . . . ... DIALOGEX ... CONTROL IDB_ABOUT, IDC_ABOUT, "Static", SS_BITMAP | SS_CENTERIMAGE | SS_REALSIZEIMAGE, 2, 2, 156, 28 . . . IDB_ABOUT and IDC_ABOUT are defined in resource.h. I keep on getting a "parse error" on the CONTROL line. Any ideas? _____________________________ Marc Heiligers |
|
From: Vlada D. <dj...@im...> - 2002-12-10 12:30:48
|
Hi. I #included commctrl.h in one of my projects trying to create a toolbar. I get error messages like "INITCOMMONCINTROLSEX not declared" and "BTNS_XXX not declared". After that, I used TBSTYLE_XXX for button styles and InitCommonControls() and it worked. I am running Win2000 and Dev-Cpp 4.9.6.0. Could it be that I have some older version of commctrl.h or libcomctl32 (also included in linker settings)? Or maybe I have some older version of comctl32.dll? How can I determine which versions I have? Regards, Vlada |
|
From: Vlada D. <dj...@im...> - 2002-12-10 12:20:04
|
OK. I'll try both things. Thanks ----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Tuesday, December 10, 2002 12:29 PM Subject: [Fwd: Re: [Dev-C++] anoying message box] -------- Original Message -------- Subject: Re: [Dev-C++] anoying message box Date: Mon, 09 Dec 2002 16:29:39 -0500 From: Matthews <dem...@uw...> To: Carlos García del Monte <cg...@wo...> References: <008001c29f5f$5a6d57a0$8f3...@im...> I was pretty sure that it was caused by the class browser, not the code completion (which was just part of the problem I think.) Turn off class browsing and everything should be fine. At 12:20 PM 09/12/2002 +0100, you wrote: >Turn code completion off. > >Vlada Djurovic wrote: > >>Hi. >>Sometimes, when I type code in editor, this anoying message box keeps >>appearing, saying "List index out of bounds", or something like that. I >>noticed that it mostly appears when I use the .(dot) operator for assigning >>values to structure members or class members. I use Dev-cpp 4.9.6.0 and >>Win2000. What does this message box mean and is there a way to turn it of? >> >>Regards, >>Vlada >> >> >> >>------------------------------------------------------- >>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 >> >> >> > > > > >------------------------------------------------------- >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 > ------------------------------------------------------- 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: <we...@ha...> - 2002-12-10 11:45:29
|
Hi Carlos and Dev-c++ users, Thkz a lot by your help. But i was searching something done "a function, i don't know" .... if someone know whre find it... :) Else i will do it... thkz for help and attention :) Best Regards [ ]'s ----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Saturday, December 07, 2002 7:00 PM Subject: Re: [Dev-C++] Copy files recursively but only updated. :) > I hope this helps a little. Use sys/stats.h, dirent.h and those files > used for directory and file management. In sys/stat.h is defined an > struct anf functions for files, this structs have three members of time: > the creation date, last access and modification. Read at the > documentation of libc (You can find it as chm file from a link in > www.mingw.org documentation section, chapter 15) > > we...@ha... wrote: > > >Hi Guys, > > > >I need implement in my code a funciont that copy a directory recursively > >(the directory and subdirectory) but only the updated files. Someone know > >how to do it ?? > > > >ps.: I use always FileCopy() but it didn't copy updated files only i > >think... :/ > > > >Thkz a lot... > > > >Best Regards.. > > > >[ ]'s > > > > > > > >------------------------------------------------------- > >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 > > > > > > > > > > > > ------------------------------------------------------- > 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: <cg...@wo...> - 2002-12-10 11:32:47
|
-------- Original Message -------- Subject: Re: [Dev-C++] anoying message box Date: Mon, 09 Dec 2002 16:29:39 -0500 From: Matthews <dem...@uw...> To: Carlos Garc=EDa del Monte <cg...@wo...> References: <008001c29f5f$5a6d57a0$8f3...@im...> I was pretty sure that it was caused by the class browser, not the code completion (which was just part of the problem I think.) Turn off class browsing and everything should be fine. At 12:20 PM 09/12/2002 +0100, you wrote: >Turn code completion off. > >Vlada Djurovic wrote: > >>Hi. >>Sometimes, when I type code in editor, this anoying message box keeps >>appearing, saying "List index out of bounds", or something like that. I >>noticed that it mostly appears when I use the .(dot) operator for assig= ning >>values to structure members or class members. I use Dev-cpp 4.9.6.0 and >>Win2000. What does this message box mean and is there a way to turn it = of? >> >>Regards, >>Vlada >> >> >> >>------------------------------------------------------- >>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 >> >> =20 >> > > > > >------------------------------------------------------- >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: Pierre R. <pie...@wa...> - 2002-12-10 08:44:24
|
Hello, How to manage dependency relations with flex/bison files in Dev-Cpp? Thanks Pierre Raoul |
|
From: Per W. <pw...@ia...> - 2002-12-10 08:29:07
|
Yes, I can see that your code does try to use the <strlib.h> file, but
there are no such standard file. Whenever you find that Dev-C++ is missing
a standard include file, there is a very, very large proability that you
have either misspelled the include file, or that it isn't such a STANDARD
include file, but something special installed by some 3rd party tool on a
machine somewhere.
That's why I wondered if it wasn't <stdlib.h> that should be used instead.
It might also be the <string.h> file that was intended.
<stdlib.h> contains among other things atoi() implemented in your source.
<string.h> contans strchr() declaration.
/Per W
On Mon, 9 Dec 2002, Zachary Uram wrote:
> Well the code I am trying to compile uses strlib.h
> If you could tell me which library calls below use strlib.h and send me
> code to replace it with another library calls I would be happy to do that.
>
> Zach
>
> At 08:05 PM 12/9/02, you wrote:
> >Might you possibly have thought about using the <stdlib.h> include?
> >
> >/Per W
> >
> >On Mon, 9 Dec 2002, Zachary Uram wrote:
> >
> > > I am trying to compile programs that use <strlib.h> I checked in the
> > > Dev-C++ \include directory and there is no such header file?
> > >
> > > Attached is the code:
> > >
> > > #include <ctype.h>
> > > #include <stdio.h>
> > > #include <strlib.h>
> > >
> > > /* getline: get line into s, return length */
> > > int getline(char *s, int lim)
> > > {
> > > char *p;
> > > int c;
> > >
> > > p = s;
> > > while (--lim > 0 && (c = getchar()) != EOF && c != '\n')
> > > *p++ = c;
> > > if (c == '\n')
> > > *p++ = c;
> > > *p = '\0';
> > > return (int)(p - s);
> > > }
> > >
> > > /* atoi: convert s to an integer
> > > *
> > > * Here's the easy way:
> > > * int atoi(char *s){return (int)strtoul(s, NULL, 10);}
> > > * But I'll behave...
> > > */
> > > int atoi(char *s)
> > > {
> > > int n, sign;
> > >
> > > while (isspace(*s))
> > > s++;
> > > sign = (*s == '+' || *s == '-') ? ((*s++ == '+') ? 1 : -1) : 1;
> > > for (n = 0; isdigit(*s); s++)
> > > n = (n * 10) + (*s - '0'); /* note to language lawyers --
> > > * the digits are in consecutive
> > > * order in the character set
> > > * C90 5.2.1
> > > */
> > > return sign * n;
> > > }
> > >
> > > /* Shamelessly copied from my 4-12 answer
> > >
> > > itoa() is non-standard, but defined on p.64 as having this prototype:
> > >
> > > void itoa(int n, char s[])
> > >
> > > Instead of this, I thought I'd use a different prototype (one I got from
> > > the library manual of one of my compilers) since it includes all of the
> > > above:
> > >
> > > char *itoa(int value, char *digits, int base);
> > >
> > > Description: The itoa() function converts an integer value into an
> > > ASCII string of digits. The base argument specifies the number base for
> > > the conversion. The base must be a value in the range [2..36], where 2
> > > is binary, 8 is octal, 10 is decimal, and 16 is hexadecimal. The buffer
> > > pointed to by digits must be large enough to hold the ASCII string of
> > > digits plus a terminating null character. The maximum amount of buffer
> > > space used is the precision of an int in bits + 2 (one for the sign and
> > > one for the terminating null).
> > >
> > > Returns: digits, or NULL if error.
> > >
> > > */
> > >
> > > char *utoa(unsigned value, char *digits, int base)
> > > {
> > > char *s, *p;
> > >
> > > s = "0123456789abcdefghijklmnopqrstuvwxyz"; /* don't care if s is in
> > > * read-only memory
> > > */
> > > if (base == 0)
> > > base = 10;
> > > if (digits == NULL || base < 2 || base > 36)
> > > return NULL;
> > > if (value < (unsigned) base) {
> > > digits[0] = s[value];
> > > digits[1] = '\0';
> > > } else {
> > > for (p = utoa(value / ((unsigned)base), digits, base);
> > > *p;
> > > p++);
> > > utoa( value % ((unsigned)base), p, base);
> > > }
> > > return digits;
> > > }
> > >
> > > char *itoa(int value, char *digits, int base)
> > > {
> > > char *d;
> > > unsigned u; /* assume unsigned is big enough to hold all the
> > > * unsigned values -x could possibly be -- don't
> > > * know how well this assumption holds on the
> > > * DeathStation 9000, so beware of nasal demons
> > > */
> > >
> > > d = digits;
> > > if (base == 0)
> > > base = 10;
> > > if (digits == NULL || base < 2 || base > 36)
> > > return NULL;
> > > if (value < 0) {
> > > *d++ = '-';
> > > u = -value;
> > > } else
> > > u = value;
> > > utoa(u, d, base);
> > > return digits;
> > > }
> > >
> > > /* reverse, shamelessly copied from my 4-13 answer */
> > >
> > > static void swap(char *a, char *b, size_t n)
> > > {
> > > while (n--) {
> > > *a ^= *b;
> > > *b ^= *a;
> > > *a ^= *b;
> > > a++;
> > > b++;
> > > }
> > > }
> > >
> > > void my_memrev(char *s, size_t n)
> > > {
> > > switch (n) {
> > > case 0:
> > > case 1:
> > > break;
> > > case 2:
> > > case 3:
> > > swap(s, s + n - 1, 1);
> > > break;
> > > default:
> > > my_memrev(s, n / 2);
> > > my_memrev(s + ((n + 1) / 2), n / 2);
> > > swap(s, s + ((n + 1) / 2), n / 2);
> > > break;
> > > }
> > > }
> > >
> > > void reverse(char *s)
> > > {
> > > char *p;
> > >
> > > for (p = s; *p; p++)
> > > ;
> > > my_memrev(s, (size_t)(p - s));
> > > }
> > >
> > > /* strindex: return index of t in s, -1 if not found */
> > >
> > > /* needed strchr(), so here it is: */
> > >
> > > static char *strchr(char *s, int c)
> > > {
> > > char ch = c;
> > >
> > > for ( ; *s != ch; ++s)
> > > if (*s == '\0')
> > > return NULL;
> > > return *s;
> > > }
> > >
> > > int strindex(char *s, char *t)
> > > {
> > > char *u, *v, *w;
> > >
> > > if (*t == '\0')
> > > return 0;
> > > for (u = s; (u = strchr(u, *t)) != NULL; ++u) {
> > > for (v = u, w = t; ; )
> > > if (*++w == '\0')
> > > return (int)(u - s);
> > > else if (*++v != *w)
> > > break;
> > > }
> > > return -1;
> > > }
> > >
> > > /* getop */
> > >
> > > #define NUMBER '0' /* from Chapter 4 */
> > >
> > > int getop(char *s)
> > > {
> > > int c;
> > >
> > > while ((*s = c = getch()) == ' ' || c == '\t')
> > > ;
> > > *(s + 1) = '\0';
> > > if (!isdigit(c) && c != '.')
> > > return c; /* not a number */
> > > if (isdigit(c)) /* collect integer part */
> > > while (isdigit(*++s = c = getch()))
> > > ;
> > > if (c == '.') /* collect fraction part */
> > > while (isdigit(*++s = c = getch()))
> > > ;
> > > *++s = '\0';
> > > if (c != EOF)
> > > ungetch(c);
> > > return NUMBER;
> > > }
> > >
> > > /* Is there any more? */
> > >
> > >
> > > Zachary Uram
> > > John 3:16
> > > <><
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > 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
> > >
>
> Zachary Uram
> John 3:16
> <><
>
>
|
|
From: Luigi S. <gi...@li...> - 2002-12-10 06:09:53
|
On Fri, Dec 06, 2002 at 04:10:13PM +0000, Carl Franks wrote: > Hi, > > I'm trying to set up Dev-C++ to use the borland cbuilder 5.5 compiler. > I'm running win98 (rel. 2) > Dev-C++ 4.9.6.0 > ... > > Carl Franks > Hello Carl, On Win98SE, I have used Dev-C++ together with the "freecommandlinetools" of Borland. Version of Dev was 4.9.6.0, while the Borland compiler was named BC++ 5.5 (hope it is the same you call "cbuilder 5.5"). I placed a few notes, about my approach, at the page: www.gisan.freeurl.com (once there follow the link named "dev_bor") A brief remark is due: I should be considered a newbie and my experience is limited to simple console applications, so information I was able to provide, about using Dev-C++ and BC++ 5.5, is the answer to these 2 questions: - how do I compile a program like "hello world"? - how do I compile a program whose source code is in more than one file? Hopefully, my answers can get you started :-) -- >> gisan >> |
|
From: <fer...@te...> - 2002-12-10 03:40:29
|
Very, very much thanks!!! It´s works fine. Thanks again Fernando Correa da Conceição Rodolfo d'Ettorre escreveu: >Hi, > >Yes it is only that file, but since it links with a DLL, I guess it will be different for Linux. But the MySQL functions should be very similar. The zip file I am sending you contains libmysql.a, libmysql.dll and a small project example. > >If yoy could expand the zip file in this path: > >C:\mysql\examples\libmysqltest > >and place libmysql.a in the lib path the example should compile without any problem. > >Cheers > >Rodolfo > > >-----Original Message----- >From: Fernando Correa Da Conceição >[mailto:fer...@te...] >Sent: Tuesday, 10 December 2002 1:31 PM >To: Rodolfo d'Ettorre >Cc: dev...@li... >Subject: Re: [Dev-C++] mysql compile > > >I want it, and wank know how to link it to my aplication and what I need >to develop aplications with mysql on devcpp, is only this file? >I work with mysql on linux too, but there is different. > >Thanks >Fernando Correa da Conceição > >Rodolfo d'Ettorre escreveu: > > > >>Hi, >> >>I have generated a file, libmysql.a, that allows me to link with LibMySQL.DLL, so I could compile one of the examples that comes with MySQL. If anyone needs it, I can email it. >> >>Regards >> >>Rodolfo d'Ettorre >> >> >>------------------------------------------------------- >>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: James B. <jag...@ya...> - 2002-12-10 03:15:31
|
well its not too serious;)..., but the "current" (already opened on display) working source file in the new project profile i created wont have its background color changed after changing the 'space color' in Editor Options... i tried a new source file being made in the project after applying changes to the Editor Options, and the colors were correct..keep up the good work to the Bloodshed team.! :) (this shouldn't too hard to resolve.;)) jagginess --------------------------------- Post your free ad now! Yahoo! Canada Personals |