dev-cpp-users Mailing List for Dev-C++ (Page 477)
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: Big P. <big...@li...> - 2002-11-29 12:55:20
|
wx-...@li... > I have a problem with a program which seems to stem from the fact > that I can't link some needed resources into it. If I don't link the > resource file, I get an error relating to a missing resource whenever > I try to create a dialog. When I DO add the resource file into my > program I get resource compiler errors: > > windres.exe -i mailprog_private.RC -I rc -o mailprog_private.res -O > coff --include-dir C:/Dev-Cpp/include/wx/msw [snip] > C:/Dev-Cpp/Bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include > /wx/memory.h:33: > iostream.h: No such file or directory > windres.exe: can't open cursor file `wx/msw/hand.cur': No such file > or directory > I got it!! After weeks of searching I got it working. I needed to add 'c:\dev-cpp\include' to the Resource Include Directory. Note that it's referring to 'hand.cur' using a relative search, that's why it has to be added in this fashion. Why doesn't Dev-cpp do this automatically by default? -- ______________________________________________ http://www.linuxmail.org/ Now with POP3/IMAP access for only US$19.95/yr Powered by Outblaze |
|
From: Lahsen B. <la...@ti...> - 2002-11-29 10:36:38
|
Hello, I use dev-cpp 4.9.6.0 with a default compiler g++-3. What's difference between g++ and gcc? I downlaod MinGW32 and i want use gcc-3-2 like defaut compiler for dev-cpp 4.9.6.0. How use MinGW32 with dev-cpp and how choice gcc-3-2 like default compiler? Thunks. |
|
From: Yeoh H. <ye...@ye...> - 2002-11-29 04:11:23
|
You have some very interesting viewpoints. I'm assuming that the programmer has already covered the basics of C++, OOP, data structures and algorithms and also using the compiler system.He wants to move on to higher levels. :-) Writing many programs do not take a very long time and it does not mean that you learn only a little during each project. It all depends on the nature, size and complexity of the program. Start with small projects. Define precisely what you want to learn from the project. This will determine the nature of the program. Then look for existing programs that do similar things. Download them, run them, see how they work. If source code is available, download it too but don't read them yet. Get a feel of how other software works, then design your own. Write the code the best way you know how at this moment. Once you've written your code, then take a look at what others have done. Compare yours with theirs. See how they do it. Is it any better? IMHO this is the best way for me to learn. If you don't know how to implement a particular feature, then read their code to see how they do it. Know why and how to do it, then write your own code. This OOP thing is great. In most cases, don't re-invent the wheel. Use other people's code, with their permission of course. Try Open Source codes. :-) IMHO, a programmer has to both READ other programmer's code and WRITE your own code. When I come to think of it, my ex-bosses, and existing clients have asked me what programs have I written and not what source codes I've read. :-) You have a great day Per Westermark. Best Regards, Yeoh -- P.S. I suppose, each programmer works and learns differently. So find a method that works and if it works for you, fine. :-) |
|
From: Sebastien M. <seb...@te...> - 2002-11-29 01:44:46
|
Hello,
Of course it doesn't work!!!
The second arguement of your template MUST be a vector and not a Compare object.
priority_queue<T, Sequence, Compare>
Here is the definition of the priority_queue template.
Sequence is by default vector, is you are ok to use vector type, so
define your template in this way:
priority_queue<int, vector<int>, less<int> > IntPQueue;
And it works ;o)
Happy coding,
Sebastien.
On Thu, Nov 28, 2002 at 04:11:12PM -0300, Marcos Carrard wrote:
> Hi!
>
> I have a little problem with Dev in STL library. The problem is in
> priority_queue with declaration of function object for relational test.
> The source code is:
>
> #include <iostream>
> #include <queue>
>
> using namespace std;
>
> int main()
> {
> typedef priority_queue< int, less<int> > IntPQueue; // HERE!!!!
> IntPQueue ipqueue;
> ipqueue.push (31);
> ipqueue.push (87);
> ipqueue.push (13);
> ipqueue.push (29);
> while (!ipqueue.empty())
> {
> cout << ipqueue.top() << endl;
> ipqueue.pop();
> }
> return 0;
> }
>
> What is doing?
>
> Thanks,
>
> Marcos
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> 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: 30 weeks 4 days 4 hours 57 minutes
|
|
From: Daniel O N. <dn...@ta...> - 2002-11-28 21:15:26
|
Hi Everbody !
I spend all day trying to figure out what's this error but i can=B4t so=
i
need your help,
I have a win2k with dev c++ 5.0 and mingw 2.0 (gcc 3.2) . I am trying =
to
compile this simple program but this is what i've got. I am using the
headers and libs from Visual C++ (mysql++-1.7.1-1-win32-vc++)
I've also link the liblibmysql and reimp it.
#include <stdio.h>
#include<windows.h>
#include <sqlplus.hh>
int main(int argc, char *argv[])
{
system("PAUSE");
return 0;
}
Thanks in advance !
In file included from C:/Dev-Cpp/include/sqlplus/row1.hh:12,
from C:/Dev-Cpp/include/sqlplus/compare1.hh:6,
from C:/Dev-Cpp/include/sqlplus/sqlplus.hh:12,
from main.cpp:3:
C:/Dev-Cpp/include/sqlplus/resiter1.hh:29: wrong number of template
arguments (
2, should be 1)
C:/Dev-Cpp/include/c++/3.2/bits/stl_iterator.h:91: provided for
`template<class
_Iterator> class std::reverse_iterator'
C:/Dev-Cpp/include/sqlplus/resiter1.hh:29: ISO C++ forbids declaration =
of `
reverse_iterator' with no type
C:/Dev-Cpp/include/sqlplus/resiter1.hh:30: wrong number of template
arguments (
2, should be 1)
C:/Dev-Cpp/include/c++/3.2/bits/stl_iterator.h:91: provided for
`template<class
_Iterator> class std::reverse_iterator'
C:/Dev-Cpp/include/sqlplus/resiter1.hh:30: ISO C++ forbids declaration =
of `
const_reverse_iterator' with no type
In file included from C:/Dev-Cpp/include/c++/3.2/backward/strstream:51,=
from C:/Dev-Cpp/include/sqlplus/sql_query1.hh:4,
from C:/Dev-Cpp/include/sqlplus/manip1.hh:10,
from C:/Dev-Cpp/include/sqlplus/vallist1.hh:4,
from C:/Dev-Cpp/include/sqlplus/row1.hh:13,
from C:/Dev-Cpp/include/sqlplus/compare1.hh:6,
from C:/Dev-Cpp/include/sqlplus/sqlplus.hh:12,
from main.cpp:3:
C:/Dev-Cpp/include/c++/3.2/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated heade=
r.
Please consider using one of the 32 headers found in section 17.4.1.2 o=
f
the C++ standard. Examples include substituting the <X> header for the
<X.h> header for C++ includes, or <sstream> instead of the deprecated
header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from C:/Dev-Cpp/include/sqlplus/manip1.hh:12,
from C:/Dev-Cpp/include/sqlplus/vallist1.hh:4,
from C:/Dev-Cpp/include/sqlplus/row1.hh:13,
from C:/Dev-Cpp/include/sqlplus/compare1.hh:6,
from C:/Dev-Cpp/include/sqlplus/sqlplus.hh:12,
from main.cpp:3:
C:/Dev-Cpp/include/sqlplus/set1.hh:12: parse error before `>' token
C:/Dev-Cpp/include/sqlplus/set1.hh:18: parse error before `&' token
C:/Dev-Cpp/include/sqlplus/set1.hh:18: `void operator()(...)' must be a=
nonstatic member function
C:/Dev-Cpp/include/sqlplus/set1.hh:18: confused by earlier errors, bail=
ing
out
make.exe: *** [main.o] Error 1
Execution terminated
=
|
|
From: Felipe L. <li...@cp...> - 2002-11-28 19:14:26
|
Does this compiler have the functions delay(); and kbhit(); In which libraries? Thanks ####### Felipe Lima CPTS - Centro de Pesquisa em Teste de Software Conv=EAnio PUCRS - HP Brasil Av. Ipiranga, 6681 - Pr=E9dio 30 - Bloco 4 - Sala 242 Fone: (51) 3320-3695 Porto Alegre - RS - Brasil |
|
From: Dreamjunky <li...@dr...> - 2002-11-28 18:55:15
|
Hello everyone,
I have a question for you. I had a barebones but working Win32 app., =
made some adjustments, and now my resource won't compile. I tried =
undoing all of the changes I made, there were only a couple, but =
apparently I missed some. When I compile the RC script it's fine, but =
when I try to compile the RES and OBJ into an exe I get this:
Error E2206 OWDB.RES 1: Illegal character '=FF' (0xff)
Over and over until the compiler drops out. Anyone know what the issue =
is? Any input would be appreciated.
Tvienti
|
|
From: <or...@vp...> - 2002-11-28 18:46:56
|
Hello Everyone!
PW> One problem with writing many programs is that it takes a very long time,
PW> while you learn only a little during each project
Well, I have to disagree here. I started programming 2 years ago. I
played too much on PC, and so my brother told that I should do
something "useful". I started from absolute zero (-273 *C), I didn't
even know what was the meaning of "programming". I learned from the
book "B.W.Kernighan-D.M.Ritchie: The C Programming Language" and I
have learned the basics. I never needed any other book.
I started my first Windows app 1 and 1/2 years ago, it was a simple
program that played Conway's Game of Life. I didn't even know anything
about memory handling that time, so I used static arrays. As the
program grew, I've read the memory handling things, and pointers from
the book, and I've learned very interesting things, and I was very
happy, that I understood pointers. Later I implemented something like
a doubly chained list (sorry, my english) from what I've heard from my
brother YEARS before. I realised later, that this type of list exists,
and is actually used often in programming.
Now, I am at writing a cross-platform free library that plays 2D
Cellular Automatons (my english again), and also implements a
(theoretically) endless universe (things like in Life32), rule
handling, reading from files, etc.
I can tell you, I've learned the most from writing, and struggling on
my own.
So by writing things all by yourself, you can learn MUCH more, than
from trying to understand often hardly optimised sources. Learning
from code reading is only advised later, when you have strong basics.
Yeoh HS wrote:
>> IMHO, the best way to become good at programming (Windows or otherwise) is
>> to write programs, many programs in whatever fields of application that
>> interests you. When you do this, you'll find that you'll need to learn more
>> about programming and matters related to that field and operating system.
>> That is very good. You find books and search the Internet to find the
>> required information, understand how it works, then use it in your projects.
>> As you continue, project after project, you'll learn much more. Each time
>> you think of a new project, you'll be exercising your creativity skills too.
>> :-)
This is exactly what I think too.
Sorry for the long post.
--
Best regards,
OROSZI Balázs mailto:or...@vp...
P.S.: Balázs is my first name (means the same as the english Basil).
Here, in Hungary we write the names exactly the opposite style,
than anywhere else :)
|
|
From: Marcos C. <ca...@un...> - 2002-11-28 18:11:42
|
Hi!
I have a little problem with Dev in STL library. The problem is in
priority_queue with declaration of function object for relational test.
The source code is:
#include <iostream>
#include <queue>
using namespace std;
int main()
{
typedef priority_queue< int, less<int> > IntPQueue; // HERE!!!!
IntPQueue ipqueue;
ipqueue.push (31);
ipqueue.push (87);
ipqueue.push (13);
ipqueue.push (29);
while (!ipqueue.empty())
{
cout << ipqueue.top() << endl;
ipqueue.pop();
}
return 0;
}
What is doing?
Thanks,
Marcos
|
|
From: Per W. <pw...@ia...> - 2002-11-28 18:08:43
|
Not true that sizeof never returns size of array. It depends on what
declaration the compiler sees when processing the sizeof operator.
void func(int *array) {
// sizeof(array) =3D sizeof(int*)
}
void func(int array[]) {
// sizeof(array) =3D sizeof(int*)
}
void func() {
int array[4];
// sizeof(array) =3D 4*sizeof(int)
}
Big gotcha about this.
char buf[100];
write(fd,buf,sizeof(buf));
converted to:
char *buf =3D malloc(100);
write(fd,buf,sizeof(buf))
would fail miserably, because the second version would only write 4 bytes
in a 32-bit machine...
/Per W
On Thu, 28 Nov 2002, Carlos Garc=EDa del Monte wrote:
> The sizeof applied to a array will give you the size of a pointer, never
> the size of the array.
> Say char *array; or char array[];
> Then sizeof(array) =3D 4. (at least in my intelIII x86, with win2k 4 is
> the size for any kind of pointer).
>=20
> The only solution is to have some special value for the end of the
> array. Which for strings is '\0', and you can try to set another
> depending on which kind of data you're working with and which range of
> values you can find, so you can then choose on of the values which are
> out of the range to set as that special value. So you can reach for it
> and you can then now, with the approppriate functions you can write the
> total size of the array and the size of each row of the multidimensional
> array.
>=20
> Samuel Keding escribi=F3:
>=20
> > Isn't there a keyword sizeof in C/C++? It seems like I
> > remember one but I've never had to use it. I think
> > there is one and I think it returns the number of
> > bytes in the array of objects. All you would have to
> > do is divide by the number of bytes that is in just
> > one object. I may be off on this. Like I said, I
> > haven't really had to use this before.
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Get the new Palm Tungsten T
> > handheld. Power & Color in a compact size!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > _______________________________________________
> > 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
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> 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
|
|
From: Carlos d. M. <cg...@wo...> - 2002-11-28 16:57:14
|
The sizeof applied to a array will give you the size of a pointer, never the size of the array. Say char *array; or char array[]; Then sizeof(array) =3D 4. (at least in my intelIII x86, with win2k 4 is the size for any kind of pointer). The only solution is to have some special value for the end of the array. Which for strings is '\0', and you can try to set another depending on which kind of data you're working with and which range of values you can find, so you can then choose on of the values which are out of the range to set as that special value. So you can reach for it and you can then now, with the approppriate functions you can write the total size of the array and the size of each row of the multidimensional array. Samuel Keding escribi=F3: > Isn't there a keyword sizeof in C/C++? It seems like I > remember one but I've never had to use it. I think > there is one and I think it returns the number of > bytes in the array of objects. All you would have to > do is divide by the number of bytes that is in just > one object. I may be off on this. Like I said, I > haven't really had to use this before. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > 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: Samuel K. <big...@ya...> - 2002-11-28 16:00:22
|
Isn't there a keyword sizeof in C/C++? It seems like I remember one but I've never had to use it. I think there is one and I think it returns the number of bytes in the array of objects. All you would have to do is divide by the number of bytes that is in just one object. I may be off on this. Like I said, I haven't really had to use this before. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
|
From: Bosso <han...@gm...> - 2002-11-28 15:58:09
|
You need to add -lcomctl32 to your linker options. Hannes On Thu, 28 Nov 2002 16:08:17 +0200 Megan Webster <me...@e-...> wrote: > Hi everyone, > > I get the following error messages when trying to compile my project that > uses "CommonControls": > [Basically a small program that uses a ToolBar...] > > - C:\Dev-Cpp\Projects\MenuBar.o [Warning] In function `WinMain': > - [Linker error] undefined reference to `InitCommonControls@0' > - [Linker error] undefined reference to `CreateToolbarEx@52' > - C:\Dev-Cpp\Projects\Makefile.win [Build Error] [MenuBar.exe] Error 1 > > I have included the Header file <commctrl.h> > > In WinMain() if have done the following... > --- > InitToolbar(); [this is the method that I use to initialize > the ToolBars structure] > InitCommonControls(); > > tbwnd = CreateToolbarEx(hwnd, > WS_VISIBLE | WS_CHILD | WS_BORDER, > ID_TOOLBAR, > NUMBUTTONS, > hThisInstance, > IDTB_BMP, > tbButtons, > NUMBUTTONS, > 0, 0, 16, 16, > sizeof(TBBUTTON)); > ---- > I don't recieve any other error messages and my Resource file and Header > file are all in order. > > If you have any ideas on how I can solve this problem, please let me know. > Thanks, > Megan. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > 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: Megan W. <me...@e-...> - 2002-11-28 14:05:55
|
Hi everyone,
I get the following error messages when trying to compile my project that
uses "CommonControls":
[Basically a small program that uses a ToolBar...]
- C:\Dev-Cpp\Projects\MenuBar.o [Warning] In function `WinMain':
- [Linker error] undefined reference to `InitCommonControls@0'
- [Linker error] undefined reference to `CreateToolbarEx@52'
- C:\Dev-Cpp\Projects\Makefile.win [Build Error] [MenuBar.exe] Error 1
I have included the Header file <commctrl.h>
In WinMain() if have done the following...
---
InitToolbar(); [this is the method that I use to initialize
the ToolBars structure]
InitCommonControls();
tbwnd = CreateToolbarEx(hwnd,
WS_VISIBLE | WS_CHILD | WS_BORDER,
ID_TOOLBAR,
NUMBUTTONS,
hThisInstance,
IDTB_BMP,
tbButtons,
NUMBUTTONS,
0, 0, 16, 16,
sizeof(TBBUTTON));
----
I don't recieve any other error messages and my Resource file and Header
file are all in order.
If you have any ideas on how I can solve this problem, please let me know.
Thanks,
Megan.
|
|
From: Ioannis V. <no...@ho...> - 2002-11-28 13:43:48
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Luc Saint-Elie > Sent: Thursday, November 28, 2002 11:35 AM > To: dev...@li... > Subject: [Dev-C++] Number of elements of a multidimensional array > > > Hello, > > I know this is a basic question... > How can I know the number of elements of a multidimensional > array (char > **result) ? > > Thanks in advance > > Luc If you are programming in C++, use std::vector instead. If you are programming in C you have to store it in a separate variable and transfer the value to every function call. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Per W. <pw...@ia...> - 2002-11-28 13:15:23
|
One problem with writing many programs is that it takes a very long time, while you learn only a little during each project - if you don't know what nice algorithms/constructs that are available, it isn't so easy to search for more indepth information on internet or in books either, and buy a lot of random books costs a lot of money. A faster method of learning how to program is to READ code. Download a lot of code and read it and really try to understand what makes the program tick. Start with small/simple programs and then progress. Don't learn how to copy code from other programs - that is copyright violations - but if you understand how other programs works, you will easily later come up with working solutions to your own problems. Any time you just can't understand something about a program, make a decision. Is it because the code is badly written then ignore it. If it seems that the original programmer really knew what he was doing, then spend just about ANY time to find out the function. When you finally overcomes the problem, it might be a real eye-opener - woow cool... /Per W On Thu, 28 Nov 2002, Yeoh HS wrote: > Hi Daniel, > > This is an interesting question. > > > crazy thing to ask as I know you don't become one overnight, but how can I > > get on and become good at windows programming? > IMHO, the best way to become good at programming (Windows or otherwise) is > to write programs, many programs in whatever fields of application that > interests you. When you do this, you'll find that you'll need to learn more > about programming and matters related to that field and operating system. > That is very good. You find books and search the Internet to find the > required information, understand how it works, then use it in your projects. > As you continue, project after project, you'll learn much more. Each time > you think of a new project, you'll be exercising your creativity skills too. > :-) > > >I'm specifically asking for tutorials on websites, general tips (don't > use/do use wizards in VC++), > > things like that. > For Visual C++ programmers, IMHO the best sites are: > 1. www.codeproject.com > 2. www.codeguru.com > > Best Regards, > Yeoh > -- > http://www.yeohhs.com > -- > ----- Original Message ----- > From: "Daniel Glenfield" <sp...@ho...> > To: <dev...@li...> > Sent: Wednesday, November 27, 2002 11:41 PM > Subject: [Dev-C++] How can I become a great windows programmer? > > > > crazy thing to ask as I know you don't become one overnight, but how can I > > get on and become good at windows programming? I'm specifically asking for > > tutorials on websites, general tips (don't use/do use wizards in VC++), > > things like that. > > > > you guys seem knowledgable, so I thought I'd shoot this one by you. Maybe > a > > little OT and I could go searching online for sites, but some of you may > be > > able to recommend some. > > > > Daniel > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > 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: <mar...@te...> - 2002-11-28 12:37:07
|
I think what Luc wants is a kind of run-time range control. Almost everyo= ne new to C misses it. There couldn't be such functions, and the reason i= s simple: most C software is based on the ability to surpass range bounds= . Keeping control of the bounds yourself is what you have to do, everytim= e you use low level arrays.=0D=0A=0D=0AI recommend using STL containers l= ike vector<>. Use it to write your own matrix<T> templates, it's not hard= to do. So you'll have all the controls you can use, with a very little o= verhead, if any.=0D=0A=0D=0AMMP=0D=0A=0D=0A=0D=0ADe:dev-cpp-users-admin@l= ists.sourceforge.net=0D=0APara:dev...@li...=0D=0AC= =F3pia:=0D=0AData:Thu, 28 Nov 2002 12:09:36 +0000=0D=0AAssunto:RE: [Dev-C= ++] Number of elements of a multidimensional array=0D=0A=0D=0A> Is there = not a C function that can do this?=0D=0A> =0D=0A> failing that, set an in= teger and use a while loop. something like=0D=0A> =0D=0A> // iterate thro= ugh array using whatever function it is, MoveNext or =0D=0A> whatever.=0D= =0A> // increment the integer.=0D=0A> // check for '/0'=0D=0A> // iterate= again=0D=0A> =0D=0A> something like that I guess.=0D=0A> =0D=0A> =0D=0A>= =0D=0A> >From: Juliano P=E1vel Brasil Cust=F3dio =0D=0A> >To: =0D=0A> >S= ubject: RE: [Dev-C++] Number of elements of a multidimensional array=0D=0A= > >Date: Thu, 28 Nov 2002 09:26:23 -0300=0D=0A> >=0D=0A> > So far as I kn= ow, it is not possible to do what you want. The=0D=0A> >programmer must c= ontrol the size of this kind of array so he can=0D=0A> >manipulate it. If= it wasn't a pointer you could achieve it by dividing=0D=0A> >the array b= y the size of one single element or something like this... Or=0D=0A> >if = you stored Null terminated strings you could search for the '\0'=0D=0A> >= character... Beyond this two cases, I don't know if it's possible, but=0D= =0A> >if someone else know any way, I'd like to know it too.=0D=0A> >=0D=0A= > > Juliano=0D=0A> >=0D=0A> >-----Original Message-----=0D=0A> >From: dev= -cpp...@li...=0D=0A> >[mailto:dev-cpp-users-admi= n...@li...] On Behalf Of Luc=0D=0A> >Saint-Elie=0D=0A> >Sent= : quinta-feira, 28 de novembro de 2002 06:35=0D=0A> >To: dev-cpp-users@li= sts.sourceforge.net=0D=0A> >Subject: [Dev-C++] Number of elements of a mu= ltidimensional array=0D=0A> >=0D=0A> >=0D=0A> >Venha para a VilaBOL!=0D=0A= > >O melhor lugar para voc=EA construir seu site. F=E1cil e gr=E1tis!=0D=0A= > >http://vila.bol.com.br Hello,=0D=0A> >=0D=0A> >I know this is a basic = question...=0D=0A> >How can I know the number of elements of a multidimen= sional array (char=0D=0A> >**result) ?=0D=0A> >=0D=0A> >Thanks in advance= =0D=0A> >=0D=0A> >Luc=0D=0A> >=0D=0A> >=0D=0A> >=0D=0A> >----------------= ---------------------------------------=0D=0A> >This SF.net email is spon= sored by: Get the new Palm Tungsten T=0D=0A> >handheld. Power & Color in = a compact size!=0D=0A> >http://ads.sourceforge.net/cgi-bin/redirect.pl?pa= lm0002en=0D=0A> >_______________________________________________=0D=0A> >= Dev-cpp-users mailing list=0D=0A> >Dev...@li...=0D= =0A> >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D=0A> >htt= ps://lists.sourceforge.net/lists/listinfo/dev-cpp-users=0D=0A> >=0D=0A> >= =0D=0A> >=0D=0A> >=0D=0A> >=0D=0A> >-------------------------------------= ------------------=0D=0A> >This SF.net email is sponsored by: Get the new= Palm Tungsten T=0D=0A> >handheld. Power & Color in a compact size!=0D=0A= > >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en=0D=0A> >____= ___________________________________________=0D=0A> >Dev-cpp-users mailing= list=0D=0A> >Dev...@li...=0D=0A> >TO UNSUBSCRIBE:= http://www.noicys.cjb.net/devcpp/ub.htm=0D=0A> >https://lists.sourceforg= e.net/lists/listinfo/dev-cpp-users=0D=0A> =0D=0A> =0D=0A> _______________= __________________________________________________=0D=0A> STOP MORE SPAM = with the new MSN 8 and get 2 months FREE* =0D=0A> http://join.msn.com/?pa= ge=3Dfeatures/junkmail=0D=0A> =0D=0A> =0D=0A> =0D=0A> -------------------= ------------------------------------=0D=0A> This SF.net email is sponsore= d by: Get the new Palm Tungsten T =0D=0A> handheld. Power & Color in a co= mpact size! =0D=0A> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm00= 02en=0D=0A> _______________________________________________=0D=0A> Dev-cp= p-users mailing list=0D=0A> Dev...@li...=0D=0A> TO= UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D=0A> https://list= s.sourceforge.net/lists/listinfo/dev-cpp-users=0D=0A> =0D=0A> |
|
From: Daniel G. <sp...@ho...> - 2002-11-28 12:09:41
|
Is there not a C function that can do this? failing that, set an integer and use a while loop. something like // iterate through array using whatever function it is, MoveNext or whatever. // increment the integer. // check for '/0' // iterate again something like that I guess. >From: Juliano Pável Brasil Custódio <jp...@bo...> >To: <dev...@li...> >Subject: RE: [Dev-C++] Number of elements of a multidimensional array >Date: Thu, 28 Nov 2002 09:26:23 -0300 > > So far as I know, it is not possible to do what you want. The >programmer must control the size of this kind of array so he can >manipulate it. If it wasn't a pointer you could achieve it by dividing >the array by the size of one single element or something like this... Or >if you stored Null terminated strings you could search for the '\0' >character... Beyond this two cases, I don't know if it's possible, but >if someone else know any way, I'd like to know it too. > > Juliano > >-----Original Message----- >From: dev...@li... >[mailto:dev...@li...] On Behalf Of Luc >Saint-Elie >Sent: quinta-feira, 28 de novembro de 2002 06:35 >To: dev...@li... >Subject: [Dev-C++] Number of elements of a multidimensional array > > >Venha para a VilaBOL! >O melhor lugar para você construir seu site. Fácil e grátis! >http://vila.bol.com.br Hello, > >I know this is a basic question... >How can I know the number of elements of a multidimensional array (char >**result) ? > >Thanks in advance > >Luc > > > >------------------------------------------------------- >This SF.net email is sponsored by: Get the new Palm Tungsten T >handheld. Power & Color in a compact size! >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >_______________________________________________ >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: Get the new Palm Tungsten T >handheld. Power & Color in a compact size! >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >_______________________________________________ >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 _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: <jp...@bo...> - 2002-11-28 11:47:29
|
So far as I know, it is not possible to do what you want. The programmer must control the size of this kind of array so he can manipulate it. If it wasn't a pointer you could achieve it by dividing the array by the size of one single element or something like this... Or if you stored Null terminated strings you could search for the '\0' character... Beyond this two cases, I don't know if it's possible, but if someone else know any way, I'd like to know it too. Juliano -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Luc Saint-Elie Sent: quinta-feira, 28 de novembro de 2002 06:35 To: dev...@li... Subject: [Dev-C++] Number of elements of a multidimensional array Venha para a VilaBOL! O melhor lugar para voc=EA construir seu site. F=E1cil e gr=E1tis! http://vila.bol.com.br Hello, I know this is a basic question... How can I know the number of elements of a multidimensional array (char=20 **result) ? Thanks in advance Luc ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T=20 handheld. Power & Color in a compact size!=20 http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ 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: <jp...@bo...> - 2002-11-28 11:26:30
|
So far as I know, it is not possible to do what you want. The programmer must control the size of this kind of array so he can manipulate it. If it wasn't a pointer you could achieve it by dividing the array by the size of one single element or something like this... Or if you stored Null terminated strings you could search for the '\0' character... Beyond this two cases, I don't know if it's possible, but if someone else know any way, I'd like to know it too. Juliano -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Luc Saint-Elie Sent: quinta-feira, 28 de novembro de 2002 06:35 To: dev...@li... Subject: [Dev-C++] Number of elements of a multidimensional array Venha para a VilaBOL! O melhor lugar para voc=EA construir seu site. F=E1cil e gr=E1tis! http://vila.bol.com.br Hello, I know this is a basic question... How can I know the number of elements of a multidimensional array (char=20 **result) ? Thanks in advance Luc ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T=20 handheld. Power & Color in a compact size!=20 http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ 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: Luc Saint-E. <lu...@sa...> - 2002-11-28 09:35:39
|
Hello, I know this is a basic question... How can I know the number of elements of a multidimensional array (char **result) ? Thanks in advance Luc |
|
From: Yeoh H. <ye...@ye...> - 2002-11-28 05:33:15
|
Hi, Are you using the latest Dev-C++ version? I'm using version 4.9.6.9 and clrscr() works. After you have created a Win32 console template application through File, New, Project, you need to do the following: 1. In your source file, you'll need to have this line. #include <conio.h> 2. In Project Options, Linker Options/Optional Libs or Object files, you need to add this: -lconio To see which console functions are supported, take a look at conio.c and conio.h in the Dev-C++ include directory. Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~` http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~` ----- Original Message ----- From: "ajli@home" <aj...@So...> To: <dev...@li...> Sent: Thursday, November 28, 2002 12:43 PM Subject: [Dev-C++] Need Help - Clear Screen > Uhh yeah...first mail; I'm not sure if this is the right place to send > stuff. I'm fairly new to pcs and C++. Anyhow, I'm trying to make a > little *game* for dos and I am forced to use these two a lot; > system("cls"); is incredibly slow; it takes like 3 seconds to clear the > screen. I've heard of alternative methods, but I've never managed to > get one to work -- I've tried things like adding conio.h and clscr(); > but it won't compile under dev c++ and since I have very little > experience with pcs, I have no idea how to configure it even with > instructions. If someone has an alternative method (with no > configuration) or can provide me with step by step instructions, it > would be very helpful (I'm using win98). > |
|
From: <aj...@ho...> - 2002-11-28 04:36:51
|
Uhh yeah...first mail; I'm not sure if this is the right place to send
stuff. I'm fairly new to pcs and C++. Anyhow, I'm trying to make a
little *game* for dos and I am forced to use these two a lot;
system("cls"); is incredibly slow; it takes like 3 seconds to clear the
screen. I've heard of alternative methods, but I've never managed to
get one to work -- I've tried things like adding conio.h and clscr();
but it won't compile under dev c++ and since I have very little
experience with pcs, I have no idea how to configure it even with
instructions. If someone has an alternative method (with no
configuration) or can provide me with step by step instructions, it
would be very helpful (I'm using win98).
|
|
From: Yeoh H. <ye...@ye...> - 2002-11-28 03:00:14
|
Hello, Luigi Santillo has written an article titled _Elementary Use of the Program "make" _. It is located at: http://www.codeguru.com/cpp_mfc/gm.html . Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~` http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~` ----- Original Message ----- From: Tvienti To: Post Dev-cpp Sent: Wednesday, November 27, 2002 5:20 AM Subject: [Dev-C++] Makefiles Hello, I'm new to this list. I'm also new to some aspects of programming (stuff I should've learned by now but have been putting off). Could anyone recommend a good tutorial on Makefiles? Thanks. Tvienti |
|
From: Yeoh H. <ye...@ye...> - 2002-11-28 02:35:14
|
Hi Daniel, This is an interesting question. > crazy thing to ask as I know you don't become one overnight, but how can I > get on and become good at windows programming? IMHO, the best way to become good at programming (Windows or otherwise) is to write programs, many programs in whatever fields of application that interests you. When you do this, you'll find that you'll need to learn more about programming and matters related to that field and operating system. That is very good. You find books and search the Internet to find the required information, understand how it works, then use it in your projects. As you continue, project after project, you'll learn much more. Each time you think of a new project, you'll be exercising your creativity skills too. :-) >I'm specifically asking for tutorials on websites, general tips (don't use/do use wizards in VC++), > things like that. For Visual C++ programmers, IMHO the best sites are: 1. www.codeproject.com 2. www.codeguru.com Best Regards, Yeoh -- http://www.yeohhs.com -- ----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dev...@li...> Sent: Wednesday, November 27, 2002 11:41 PM Subject: [Dev-C++] How can I become a great windows programmer? > crazy thing to ask as I know you don't become one overnight, but how can I > get on and become good at windows programming? I'm specifically asking for > tutorials on websites, general tips (don't use/do use wizards in VC++), > things like that. > > you guys seem knowledgable, so I thought I'd shoot this one by you. Maybe a > little OT and I could go searching online for sites, but some of you may be > able to recommend some. > > Daniel |