dev-cpp-users Mailing List for Dev-C++ (Page 635)
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: Williams, T. W. <TIM...@sa...> - 2002-01-08 19:00:03
|
It's tough to tell without more code but my guess is that you don't =
have a
function declaration?
Admittedly, I haven't been following this list so maybe I missed =
something.
For example:
//must be declared before it is used.
int titleshot(int n);
int main()
{ =20
int i =3D titleshot(3);
system("PAUSE");
return 0;
}
int titleshot(int n)
{
return 1;
}
If it's more complex that this, post the code...
--tim
> -----Original Message-----
> From: Andre` Niel Cameron [mailto:An...@Ax...]
> Sent: Tuesday, January 08, 2002 1:45 PM
> To: Dev-C++
> Subject: [Dev-C++] (no subject)
>=20
>=20
> battle.c:8: warning: implicit declaration of function `int=20
> titleshot(...)'
>=20
> Any CLUE what this might mean?
> Regards,
> Andr=E9 C.
> Technical Support
> =D4=BF=D4=AC
> --------------------------------------------------------------
> --------------
> -
> Visit our support manual at http://supportmanual.com/
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|
|
From: Andre` N. C. <An...@Ax...> - 2002-01-08 18:47:56
|
battle.c:8: warning: implicit declaration of function `int titleshot(...)= ' Any CLUE what this might mean? Regards, Andr=E9 C. Technical Support =D4=BF=D4=AC -------------------------------------------------------------------------= --- - Visit our support manual at http://supportmanual.com/ |
|
From: http//:angelfire.com/dc/85 Sale's <bc...@ms...> - 2002-01-07 01:43:00
|
I have visaul J++ professional edition for sale. You can create whole programs.Just about anything you can create in C++ and more. I can give you like 5 websites that have ALOT of J++ apps & sorce code. Just email me. Thanks $30 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |
|
From: Gregor P. <pe...@in...> - 2002-01-07 00:04:44
|
=============================================================================
-----------------------------------------------------------------------------
THIS IS NOT AS MUCH TEXT AS IT SEEMS ON THE FIRST SIGHT!
THERE IS EVEN LESS CODE TO READ!
THIS POSTING IS JUST WELL STRUCTURED AND EXACTLY EXPLAINED
Make your viewer not braking the lines and it will be well
readable ...
GIVE IT A CHANCE ;-)
-----------------------------------------------------------------------------
=============================================================================
=============================================================================
--- you probably won't need this section ---
A little history/introduction
=============================================================================
I have this line of code in a file called 'lex.yy.c'
('command.cpp' is a self written C++ class which works well in different
programms so I suspect no error in here)
File: lex.yy.c
...
Command* tmpCommand = new Command();
...
which causes the following error:
scannerStr.cpp: In function `int yylex()':
scannerStr.cpp:121: `Command' undeclared (first use this function)
scannerStr.cpp:121: `tmpCommand' undeclared (first use this function)
so I add this include statement
#include <command.hpp>
to the corresponding header file 'lex.yy.h'.
The compiler seems to be satisfied now everything is fine so far
but between me an a runnung programm ist still the linker ...
=============================================================================
--- here comes the important part ---
And now to (something completly ... (no sorry it's just)) my problem
=============================================================================
My project-manger looks something like this:
-+ Scanner
|- lex.yy.c
|- lex.yy.h
|- scanner.c
As said the compiling works fine but the linker is complaining about
some 'undefined reference'(s): (btw: what's that?)
The exact error messages are:
c:\scanner\devcpp\lex.yy.o(.text+0x5ed):lex.yy.c: undefined reference to
`Command::Command(void)'
c:\scanner\devcpp\lex.yy.o(.text+0x2c18):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
c:\scanner\devcpp\lex.yy.o(.text+0x2c4f):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
c:\scanner\devcpp\lex.yy.o(.text+0x2e2d):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
c:\scanner\devcpp\lex.yy.o(.text+0x2f7f):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
=============================================================================
--- this may be a hint to the solution ---
the funny thing
=============================================================================
Without knowing what and why I did
I added the files:
command.cpp and
command.hpp
to the current scanner-project which expanded the project-manager
like this:
-+ Scanner
|- command.cpp
|- command.hpp
|- lex.yy.c
|- lex.yy.h
|- scanner.c
Adding the class command to the project make the first error dissapear:
c:\scanner\devcpp\lex.yy.o(.text+0x2c18):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
c:\scanner\devcpp\lex.yy.o(.text+0x2c4f):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
c:\scanner\devcpp\lex.yy.o(.text+0x2e2d):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
c:\scanner\devcpp\lex.yy.o(.text+0x2f7f):lex.yy.c: undefined reference to
`yy_flex_alloc(unsigned int)'
But why?
I tried to compare the make files and but I can't discover any
difference (ecxept of the 'command.o' file of course)... .
Can anybody give me some background knowledge about the linking process?
=============================================================================
--- just answer this and I will be happy ---
What makes a 'reference' defined while adding 'command' to the poject?
Is there a compiler/linker-option which does the same?
Does this (hopefully existing) option do the same for the
other 'undefined references'?
What do I have to add to the project (lex.yy.c is it already) to get
those 'references' defined?
=============================================================================
ANY help is wellcome!!!
In hope of helpful hints
Gregor (pe...@in...)
|
|
From: DXFX <vin...@ed...> - 2002-01-06 14:04:04
|
I'm sorry, but I stated it wrong... I have the DLLs, precompiled for me. Particularly, the .DLL files is what I have. What I know is to use this DLLs in new programs, I have to make interface libraries for the DLLs... How do I do that? I've been trying to use dlltool with this purpose. I'm using the following in the command line... dlltool -D MyDLL.dll -l MyDLL.a and the interface library comes out just fine. However, When I try to compile programs linking with the library, I'm still getting undefined references to functions. I have made a header file for the library, which contains the DLLs exported functions... but when I compile, I get the an undefined reference to the functions. Am I doing the thing right? I created the import/interface library then created my own header files. I included this header files with my code, then linked with the interface library... was it right? __________________________________ www.edsamail.com |
|
From: http//:angelfire.com/dc/85 Sale's <bc...@ms...> - 2002-01-05 19:23:20
|
Please look at my website http://angelfire.com/dc/85 click on software development and look at my software please that I made!very cool stuff. C++ is a little hard,J++ is very easy,nice to learn on. Hey anyone looking for Visual J++ Professional Edition.I have a origanal cd and product code. I bought it but I thought it was something else.For beginners you can make a program with visual J++ in five lines of code!Only $30 and $3 shipping.Allso you get Microsoft Developer Network Libary Ms Studio 97. Just e-amil me. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |
|
From: <fa...@bl...> - 2002-01-05 14:29:05
|
Hello Folks. I try hard to run the NeHe Lesson 6 Code with my Dev-C++ compiler. I can compile it , but if I execute the file there is an error message bo= x : Initalization Failed. I heard that I have to code my own texture loading routine, but I don`t know how that works. Some code would be nice (Somebody said, that I have to jump to lesson 25 , TGA loading, but I thi= nk that isn't a good idea.) There must be an other elegant way to solve this problem ? use allegro would be possible thanx Karim=20 ________________________________________ E-Mail for everyone! http://www.bluemail.ch/ powered by Bluewin! |
|
From: <ste...@ge...> - 2002-01-05 14:04:50
|
Hi all! I have a problem with my OpenGL game... I'm drawing two quads with a texture on 'em, which are masked. But they are aparently not masked when drawed to the depthbuffer. How can I do that? thanks - stein |
|
From: <ste...@ge...> - 2002-01-05 14:03:27
|
Hi all! > > I have a problem with my OpenGL game... > I'm drawing two quads with a texture on 'em, which are masked. > But they are aparently not masked when drawed to the depthbuffer. > How can I do that? > > thanks > > - stein |
|
From: <ste...@ge...> - 2002-01-05 14:00:23
|
Hi all! I have a problem with my OpenGL game... I'm drawing two quads with a texture on 'em, which are masked. But they are aparently not masked when drawed to the depthbuffer. How can I do that? thanks - stein |
|
From: <ian...@so...> - 2002-01-05 10:25:39
|
I am reading theForger's Win32 API Tutorial, I have trouble using resources, theForger's tutorial just talk about it in VC++ and BC++,what about Dev-C++? Can anyone show me how to make a simple win32 program with icon and menu by using resources. |
|
From: Ioannis V. <no...@ya...> - 2002-01-04 21:19:41
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Luigi Santillo > Sent: Friday, January 04, 2002 9:02 PM > To: dev...@li... > Subject: [Dev-C++] MinGW 2.95 vs Borland 5.5 compiler > > > Hello, > > I have both MinGW 2.95 and the Borland 5.5 compiler here are > a couple of > things that > the two compilers manage differently: since my knowledge of > the ANSI C++ is > very limited, I welcome any hints about which one complies > with the ANSI > standard. > > 1) I needed to include the C standard header file "ctype.h" > into a C++ > source file; > should I use:"#include <cctype>" (as MinGW says) or "#include > <ctype>" (as > Borland 5.5 says)? > > Of course I can always use "#include <ctype.h>", but I > suspect that this is > "old" C++. The valid C++ header files for that is <cctype> or <ctype.h>, NOT <ctype>. The difference between the 2 is that anything in <cctype> is defined in namespace std, and in <ctype.h> in the global namespace. Prefer the first. But both are valid ANSI C++. > 2) I need to read a C++ string and the character that comes > just after the > string; > should I assume that: spaces after the string are left on the > stream (as > MinGW says) > or that spaces after the string are extracted and discarded > (as Borland 5.5 > says)? It is as Borland says. In "The C++ Programming Language" 3rd Edition or Special Edition on page 112 it is written: "By default, operator >> skips whitespace (that is spaces, tabs, newlines, e.t.c.)..." So the operator >> of cin reads and ignores whitespace or as your Borland documentation says: "that spaces after the string are extracted and discarded". Notice that we are talking only about the operator >> of cin. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Luigi S. <gi...@li...> - 2002-01-04 19:07:22
|
Hello,
I have both MinGW 2.95 and the Borland 5.5 compiler here are a couple of
things that
the two compilers manage differently: since my knowledge of the ANSI C++ is
very limited, I welcome any hints about which one complies with the ANSI
standard.
1) I needed to include the C standard header file "ctype.h" into a C++
source file;
should I use:"#include <cctype>" (as MinGW says) or "#include <ctype>" (as
Borland 5.5 says)?
Of course I can always use "#include <ctype.h>", but I suspect that this is
"old" C++.
2) I need to read a C++ string and the character that comes just after the
string;
should I assume that: spaces after the string are left on the stream (as
MinGW says)
or that spaces after the string are extracted and discarded (as Borland 5.5
says)?
The following code is the one that I used to track the different behaviors:
simple.c
---------
#include <iostream>
#include <string>
//////////////////////////////////////////////////////////////////////
int
main()
{
std::string s;
std::cin >> s;
std::cout << "\nThe string found on the stream is:\t\"" << s
<< "\"\nthe character that follows it is a:\t";
switch(int c = std::cin.peek())
{
default:
std::cout << '\'' << (char) c << "\'\n";
break;
case EOF:
std::cout << "EOF\n";
break;
case '\n':
std::cout << "newline\n";
break;
case '\t':
std::cout << "tab\n";
break;
case ' ':
std::cout << "space\n";
break;
}
}
---------
Of course if my code is wrong, please let me know it.
Thanks for your time
--
gisan
|
|
From: carlos D. M. <cg...@wo...> - 2002-01-04 15:51:47
|
http://www.bloodshed.net/devcpp.html This is the page wher you can find it. |
|
From: Daniel G. <sp...@ho...> - 2002-01-04 15:49:32
|
<html><div style='background-color:'><DIV> <P>oh right, thanks!<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "Jason Hardman" <JAS...@BT...> <DIV></DIV>>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>>Subject: Re: [Dev-C++] Happy New Year! <DIV></DIV>>Date: Fri, 4 Jan 2002 15:03:41 -0000 <DIV></DIV>> <DIV></DIV>>Scanning through C++ code and looking out for certain keywords in this case. I'm only interested in obtaining information from certain elements of a C++ file. A program that parses a file or stream takes it in, breaks it down and interprets it for whatever purpose. <DIV></DIV>> <DIV></DIV>>Jason. <DIV></DIV>> ----- Original Message ----- <DIV></DIV>> From: Daniel Glenfield <DIV></DIV>> To: dev...@li... <DIV></DIV>> Sent: Friday, January 04, 2002 11:21 AM <DIV></DIV>> Subject: Re: [Dev-C++] Happy New Year! <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> Jason <DIV></DIV>> <DIV></DIV>> What do you mean by parsing C++ ? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> >From: "Jason Hardman" <DIV></DIV>> >To: "Dev-C++" <DIV></DIV>> >Subject: Re: [Dev-C++] Happy New Year! <DIV></DIV>> >Date: Thu, 3 Jan 2002 23:13:15 -0000 <DIV></DIV>> > <DIV></DIV>> >MessageHow do you mean? What sort of formatting? You could always write one if you can't find it on the net. I may even be tempted to try myself. I've been having a go at parsing C++ a little recently. <DIV></DIV>> > <DIV></DIV>> >Jason. <DIV></DIV>> > <DIV></DIV>> >----- Original Message ----- <DIV></DIV>> > From: Grigory Kagan <DIV></DIV>> > To: 'Dev...@li...' <DIV></DIV>> > Sent: Thursday, January 03, 2002 8:15 PM <DIV></DIV>> > Subject: FW: [Dev-C++] Happy New Year! <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > Do you know of any c/c++ code formater util. <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------------------------------ <DIV></DIV>> MSN Photos is the easiest way to share and print your photos: Click Here <DIV></DIV>> _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html> |
|
From: Jason H. <jas...@bt...> - 2002-01-04 15:11:18
|
Scanning through C++ code and looking out for certain keywords in this = case. I'm only interested in obtaining information from certain elements = of a C++ file. A program that parses a file or stream takes it in, = breaks it down and interprets it for whatever purpose. Jason. ----- Original Message -----=20 From: Daniel Glenfield=20 To: dev...@li...=20 Sent: Friday, January 04, 2002 11:21 AM Subject: Re: [Dev-C++] Happy New Year! Jason What do you mean by parsing C++ ? >From: "Jason Hardman"=20 >To: "Dev-C++"=20 >Subject: Re: [Dev-C++] Happy New Year!=20 >Date: Thu, 3 Jan 2002 23:13:15 -0000=20 >=20 >MessageHow do you mean? What sort of formatting? You could always = write one if you can't find it on the net. I may even be tempted to try = myself. I've been having a go at parsing C++ a little recently.=20 >=20 >Jason.=20 >=20 >----- Original Message -----=20 > From: Grigory Kagan=20 > To: 'Dev...@li...'=20 > Sent: Thursday, January 03, 2002 8:15 PM=20 > Subject: FW: [Dev-C++] Happy New Year!=20 >=20 >=20 > Do you know of any c/c++ code formater util.=20 -------------------------------------------------------------------------= ----- MSN Photos is the easiest way to share and print your photos: Click = Here _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Anders N. <An...@ek...> - 2002-01-04 14:29:13
|
No, I don't think so. I can't found the source code. Regards, Anders ----- Ursprungligt meddelande -----=20 Fr=E5n: "Juliet" <no...@li...> Till: "Anders Nilsson" <An...@ek...> Skickat: den 4 januari 2002 00:41 =C4mne: Re: Re: [Dev-C++] Make programs for Lego RCX > At 20.58 03/01/2002, you wrote: > >I really don't know how I do it in VB but it works. I found a = "program"=20 > >for it on some official Lego site and followed the manual. >=20 > Is the source included? >=20 >=20 |
|
From: DXFX <vin...@ed...> - 2002-01-04 13:51:20
|
The following however worked... I tried to isolate the type declaration of MONITORENUMPROC and it compiled successfully.
// file main.cpp
#include <iostream>
#include <windows.h>
// #include "lsmultimon.h"
#include "main.h"
void TestRun(MONITORENUMPROC);
BOOL CALLBACK TProc(HMONITOR, HDC, LPRECT, LPARAM);
int main() {
TestRun(TProc);
}
void TestRun(MONITORENUMPROC param) {
cout << "Compiled";
}
BOOL CALLBACK TProc(HMONITOR hm, HDC hdc, LPRECT lpr, LPARAM lp){
}
// file main.h
typedef BOOL (CALLBACK* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM);
In that case, I isolated the declaration of the type and it worked... but can't figure out why the other one I first sent won't work... It must be somewhere in that lsmultimon.h file... and I can't read that one or more lines that seem to make it wrong. Anyone know where the wrong lines are?
__________________________________
www.edsamail.com
|
|
From: DXFX <vin...@ed...> - 2002-01-04 13:38:05
|
I was editing the source file below to make it work with the MinGW compiler. However, there's this error that always appears and I don't know how to revise the statement. The line with the comment //~+ refers to what the compiler says is the problem. Please anyone help in revising that line(s).
// file lsmultimon.h:
#ifndef _LSMULTIMON_H
#define _LSMULTIMON_H
//
// If we are building with Win95/NT4 headers, we need to declare
// the multimonitor-related metrics and APIs ourselves.
//
#ifndef SM_CMONITORS
#define SM_XVIRTUALSCREEN 76
#define SM_YVIRTUALSCREEN 77
#define SM_CXVIRTUALSCREEN 78
#define SM_CYVIRTUALSCREEN 79
#define SM_CMONITORS 80
#define SM_SAMEDISPLAYFORMAT 81
// HMONITOR is already declared if WINVER >= 0x0500 in windef.h
// This is for components built with an older version number.
//
#if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500)
DECLARE_HANDLE(HMONITOR);
#define HMONITOR_DECLARED
#endif // !defined(HMONITOR_DECLARED) && (WINVER < 0x0500)
#define MONITOR_DEFAULTTONULL 0x00000000
#define MONITOR_DEFAULTTOPRIMARY 0x00000001
#define MONITOR_DEFAULTTONEAREST 0x00000002
#define MONITORINFOF_PRIMARY 0x00000001
typedef struct tagMONITORINFO
{
DWORD cbSize;
RECT rcMonitor;
RECT rcWork;
DWORD dwFlags;
} MONITORINFO, *LPMONITORINFO;
#ifndef CCHDEVICENAME
#define CCHDEVICENAME 32
#endif
#ifdef __cplusplus
typedef struct tagMONITORINFOEXA : public tagMONITORINFO
{
CHAR szDevice[CCHDEVICENAME];
} MONITORINFOEXA, *LPMONITORINFOEXA;
typedef struct tagMONITORINFOEXW : public tagMONITORINFO
{
WCHAR szDevice[CCHDEVICENAME];
} MONITORINFOEXW, *LPMONITORINFOEXW;
#ifdef UNICODE
typedef MONITORINFOEXW MONITORINFOEX;
typedef LPMONITORINFOEXW LPMONITORINFOEX;
#else
typedef MONITORINFOEXA MONITORINFOEX;
typedef LPMONITORINFOEXA LPMONITORINFOEX;
#endif // UNICODE
#else // ndef __cplusplus
typedef struct tagMONITORINFOEXA
{
MONITORINFO;
CHAR szDevice[CCHDEVICENAME];
} MONITORINFOEXA, *LPMONITORINFOEXA;
typedef struct tagMONITORINFOEXW
{
MONITORINFO;
WCHAR szDevice[CCHDEVICENAME];
} MONITORINFOEXW, *LPMONITORINFOEXW;
#ifdef UNICODE
typedef MONITORINFOEXW MONITORINFOEX;
typedef LPMONITORINFOEXW LPMONITORINFOEX;
#else
typedef MONITORINFOEXA MONITORINFOEX;
typedef LPMONITORINFOEXA LPMONITORINFOEX;
#endif // UNICODE
#endif
typedef BOOL (CALLBACK* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM); //~+ this is the
//~+ declaration
#ifndef DISPLAY_DEVICE_ATTACHED_TO_DESKTOP
typedef struct _DISPLAY_DEVICEA {
DWORD cb;
CHAR DeviceName[32];
CHAR DeviceString[128];
DWORD StateFlags;
CHAR DeviceID[128];
CHAR DeviceKey[128];
} DISPLAY_DEVICEA, *PDISPLAY_DEVICEA, *LPDISPLAY_DEVICEA;
typedef struct _DISPLAY_DEVICEW {
DWORD cb;
WCHAR DeviceName[32];
WCHAR DeviceString[128];
DWORD StateFlags;
WCHAR DeviceID[128];
WCHAR DeviceKey[128];
} DISPLAY_DEVICEW, *PDISPLAY_DEVICEW, *LPDISPLAY_DEVICEW;
#ifdef UNICODE
typedef DISPLAY_DEVICEW DISPLAY_DEVICE;
typedef PDISPLAY_DEVICEW PDISPLAY_DEVICE;
typedef LPDISPLAY_DEVICEW LPDISPLAY_DEVICE;
#else
typedef DISPLAY_DEVICEA DISPLAY_DEVICE;
typedef PDISPLAY_DEVICEA PDISPLAY_DEVICE;
typedef LPDISPLAY_DEVICEA LPDISPLAY_DEVICE;
#endif // UNICODE
#define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP 0x00000001
#define DISPLAY_DEVICE_MULTI_DRIVER 0x00000002
#define DISPLAY_DEVICE_PRIMARY_DEVICE 0x00000004
#define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008
#define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010
#endif
#endif // SM_CMONITORS
#endif // _LSMULTIMON_H
// file main.cpp:
#include <iostream>
#include <windows.h>
#include "lsmultimon.h"
void TestRun(MONITORENUMPROC); //~+ ERROR ON THIS
BOOL CALLBACK TProc(HMONITOR, HDC, LPRECT, LPARAM);
int main() {
TestRun(TProc);
}
void TestRun(MONITORENUMPROC param) {
cout << "Compiled";
}
BOOL CALLBACK TProc(HMONITOR hm, HDC hdc, LPRECT lpr, LPARAM lp){
}
The following where the errors.
8 main.cpp
`MONITORENUMPROC' was not declared in this scope
8 main.cpp
variable or field `TestRun' declared void
12 main.cpp
`TestRun' cannot be used as a function
15 main.cpp
`MONITORENUMPROC' was not declared in this scope
15 main.cpp
parse error before `)'
8 main.cpp
previous non-function declaration `int TestRun'
15 main.cpp
conflicts with function declaration `void TestRun(...)'
Whats confusing me is that the type MONITORENUMPROC has been already declared in the header file. (correct me in that If I am wrong)
Does anyone know what the compiler is telling me?
Thanks in advance...
dXfX
PS
lsmultimon.h is part of LiteStep Source code. I'm revising it to make it work with MinGW. Please Help ME!
__________________________________
www.edsamail.com
|
|
From: Daniel G. <sp...@ho...> - 2002-01-04 11:21:12
|
<html><div style='background-color:'><DIV> <P>Jason</P> <P>What do you mean by parsing C++ ?<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "Jason Hardman" <JAS...@BT...> <DIV></DIV>>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>>Subject: Re: [Dev-C++] Happy New Year! <DIV></DIV>>Date: Thu, 3 Jan 2002 23:13:15 -0000 <DIV></DIV>> <DIV></DIV>>MessageHow do you mean? What sort of formatting? You could always write one if you can't find it on the net. I may even be tempted to try myself. I've been having a go at parsing C++ a little recently. <DIV></DIV>> <DIV></DIV>>Jason. <DIV></DIV>> <DIV></DIV>>----- Original Message ----- <DIV></DIV>> From: Grigory Kagan <DIV></DIV>> To: 'Dev...@li...' <DIV></DIV>> Sent: Thursday, January 03, 2002 8:15 PM <DIV></DIV>> Subject: FW: [Dev-C++] Happy New Year! <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> Do you know of any c/c++ code formater util. <DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html> |
|
From: <HJT...@t-...> - 2002-01-04 08:02:38
|
I would like to ask again: Is there anybody working with dev-cpp (mingw..) and (Gui-Lib) wxwindows. I can't manage to get this working. Hans-Juergen Thiess, Berlin / Germany Christliche Software & Texte Mail: hjt...@ch... Web: www.christshop.com |
|
From: Jason H. <jas...@bt...> - 2002-01-03 23:13:33
|
MessageHow do you mean? What sort of formatting? You could always write = one if you can't find it on the net. I may even be tempted to try = myself. I've been having a go at parsing C++ a little recently. Jason. ----- Original Message -----=20 From: Grigory Kagan=20 To: 'Dev...@li...'=20 Sent: Thursday, January 03, 2002 8:15 PM Subject: FW: [Dev-C++] Happy New Year! Do you know of any c/c++ code formater util. |
|
From: Daniel G. <sp...@ho...> - 2002-01-03 21:25:54
|
<html><div style='background-color:'><DIV> <P>when I was compiling the Quake source code I had to get something from microsoft, run it, extract a certain file and drop it into my VC++ folder, and then it (should have) been able to use ASM. Except it didn't.</P> <P>Does this help? lol<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "gus...@uo..."<GUS...@UO...> <DIV></DIV>>To: "dev" <DEV...@LI...> <DIV></DIV>>Subject: [Dev-C++] help with asm <DIV></DIV>>Date: Thu, 3 Jan 2002 16:57:42 -0300 <DIV></DIV>> <DIV></DIV>>I want to include an assembler code in a project but i <DIV></DIV>>can't to use the asm instruction. can you help me with <DIV></DIV>>this?. thanks you. <DIV></DIV>>_________________________________________________________________ <DIV></DIV>>UOLMAIL - Todo Colombiano tiene derecho a lo mejor de Internet. <DIV></DIV>>http://www.uolmail.com.co <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html> |
|
From: Grigory K. <Gri...@il...> - 2002-01-03 20:15:53
|
Do you know of any c/c++ code formater util. |
|
From: <gus...@uo...> - 2002-01-03 20:06:04
|
I want to include an assembler code in a project but i can't to use the asm instruction. can you help me with this?. thanks you. _________________________________________________________________ UOLMAIL - Todo Colombiano tiene derecho a lo mejor de Internet. http://www.uolmail.com.co |