dev-cpp-users Mailing List for Dev-C++ (Page 126)
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: 365 <se...@hu...> - 2005-06-18 10:17:31
|
365专业性化妆品网上商城 365shopw 在这里(365shopw.com) 您可以找到世界顶级名牌化妆品、香水、彩妆、饰品、内衣、个人护理、美容工具、 时尚礼品。机票预定、丰光旅游、航空物流等 免费注册会员,让您享受终身服务。 让您在无重状态下购物!7日退货保障,购物零风险! 永远为客户的利益着想。 客服电话:010-85574172 网 址:http://www.365shopw.com |
|
From: Setrio <se...@gm...> - 2005-06-17 21:20:38
|
Hi, How can i call external dll functions from Dev-C++? I have a VC++ dll with some functions that i want to use from a Dev-C++ proyect. I have de .lib and .dll. I put the .lib in the linker options but without results. Any idea or quick tutorial on how import a dll in Dev-C++? Tks (sorry for my english) |
|
From: andrey <ak...@bk...> - 2005-06-17 08:51:07
|
hi, i think the best way to use opengl library (+ openglut) -----Original Message----- From: "Andrei R. Thomaz" <and...@gm...> To: dev...@li... Date: Thu, 16 Jun 2005 20:22:25 -0300 Subject: [Dev-C++] graphics library for windows > > hello list, > > I need a graphic library to make a screensaver for windows. Basically, i > need some functions not available in Windows GDI, as semi-transparent > shapes and alternative ways of filling a shape (inverting the colors in > the screen, this kind of thing). It needs to be compatible with Dev-C++. > I found Anti-Grain Geometry and Libart, with Google, but I would like to > ask if you know some library that can be useful for me. > > thank you, > andrei > ** > > -- > RGB Design Digital > www.rgbdesigndigital.com.br > > an...@rg... / (51) 92067436 > > > > > |
|
From: Lukas 'C. M. <gry...@gm...> - 2005-06-17 02:01:58
|
Note - not sure if it showed up properly, but there is a final } at the end of the pasted code - for some reason Gmail's tossed it in as part of the quoted text. |
|
From: Lukas 'C. M. <gry...@gm...> - 2005-06-17 02:00:29
|
Hello, Jarren!
Code follows below. Hope it helps/is useful. Just drop it into the
main file of a new console app and all should go well.
Please tell me if I've overlooked anything or you're curious about somethin=
g.
-Lukas
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
printf("File name: ");
char fname[80];
fgets(fname,sizeof(fname),stdin); // grab file name from user
fname[strlen(fname) - 1] =3D 0;
// put a null character at the last place of the string to ensure
that display works properly
// (to find out why, comment that line out and recompile)
FILE *fp =3D fopen(fname,"r"); // Open the file as an ascii read-only fil=
e
if (!fp) return 0; // File doesn't exist/can't be accessed/etc. =20
char first[5];
memset(first,0,sizeof(first)); // Ensure that the string will be blank
fread(first,sizeof(first)-1,sizeof(char),fp); // Read three
characters in from the file
first[strlen(first)-1] =3D 0; // as like last time (9th line)
printf("First %d characters of file: %s\n",sizeof(first)-2,first);
fseek(fp,0,SEEK_END); // Jumps to end of file
unsigned long int fsize =3D ftell(fp); // Returns position in file
printf("Size of file: %ld\n", fsize);
fseek(fp,-2,SEEK_END);
// Jumps back two from current position in file. Could also use SEEK_CUR
// as we're at the end
// of the file, but this works because we've jumped to the end.
char last[4];
memset(last,0,sizeof(last)); // same as before
fread(last,sizeof(last)-1,sizeof(char),fp); // read two characters from f=
ile
last[sizeof(last) - 1] =3D 0; // same as before
printf("Last %d characters of file: %s\n\n",sizeof(last)-2,last); =20
fclose(fp); // close the file
system("PAUSE");=09
return 0;
}
On 6/17/05, Jarren Long <vb...@gm...> wrote:
> Ok, what I need to do is open up a file and get the exact number of
> bytes in the file, including the first three and the last two
> characters, all stored in seperate variables. Example:
>=20
> //start file.txt
> This is a simple text file
> //end file.txt
>=20
> I want to be able to get this:
> Thi
> 36
> le
>=20
> I have no clue where to start. Any help would be great
>=20
> Cheers!
|
|
From: Jarren L. <vb...@gm...> - 2005-06-17 01:31:11
|
Ok, what I need to do is open up a file and get the exact number of bytes in the file, including the first three and the last two characters, all stored in seperate variables. Example: //start file.txt This is a simple text file //end file.txt I want to be able to get this: Thi 36 le I have no clue where to start. Any help would be great=20 Cheers! |
|
From: Andrei R. T. <and...@gm...> - 2005-06-16 23:22:47
|
hello list, I need a graphic library to make a screensaver for windows. Basically, i need some functions not available in Windows GDI, as semi-transparent shapes and alternative ways of filling a shape (inverting the colors in the screen, this kind of thing). It needs to be compatible with Dev-C++. I found Anti-Grain Geometry and Libart, with Google, but I would like to ask if you know some library that can be useful for me. thank you, andrei ** -- RGB Design Digital www.rgbdesigndigital.com.br an...@rg... / (51) 92067436 |
|
From: <ab...@xy...> - 2005-06-16 07:16:19
|
<html> <head> <title>田旺管理营销资料网</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 您好:<br> 您希望<a href="http://fxch.51.net/product.htm" target=_blank>成为管理营销高手</a>吗?<br> 您想免费阅读最新最有趣的<a href="http://fxch.51.net/article/" target=_blank>管理营销类文章</a>吗?<br> 请<a href="http://fxch.51.net" target=_blank>访问田旺管理营销资料网</a>。<br> 爱护眼睛,<a href="http://fxch.51.net/eyesafe.htm" target=_blank>防电脑辐射眼镜</a>保护您的心灵之窗。<br> 您想利用网络获得丰厚利润吗?请<a href="http://www.kuaiso.com/union/deault.asp?Parent_Id=fxch&USERID=19210" target=_blank>点这里</a>!。 <br> 谢谢!<br> 祝:工作愉快,鸿图大展! </body> </html> |
|
From: Noorez K. <lor...@ho...> - 2005-06-15 18:18:45
|
I'm having some problems with my file handling. The problem is very strange. The functions that I attached are all called from the Window Procedure. Here is a quick explanation. If I call the SaveAsText() function first, and use the SaveText() method, everything saves to the text file fine, when I look with notepad. But if I use the OpenText() or OpenTextDrop() function to open a text file, then try to use the SaveText() function, nothing goes to the text file at all. Can someone help me? _________________________________________________________________ Scan and help eliminate destructive viruses from your inbound and outbound e-mail and attachments. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: ymc014 <ym...@ym...> - 2005-06-14 10:04:27
|
Try changing ewndl to endl,remove semi-colon after "hello world" and =
replace with << like this:
# include <iostream>
# include <cstdlib> //added if you want to see your output on =
the screen, it appears very very
// quickly then disappear just as =
quick if you do not add this one.This is
// the library for the "system" =
command(see below).
using namespace std;
int main(){
cout << "hello world" << endl;
system("PAUSE"); //added if you want to see your output on the =
screen
return 0; // don't forget this one
}
=20
----- Original Message -----=20
From: MATTHEW CHEESMAN=20
To: dev...@li...=20
Sent: Tuesday, June 14, 2005 4:22 AM
Subject: [Dev-C++] can't compile "hello world"
hi,
i'm a beginner when trying to compilew "hello world" the standard =
program for beginners after typing in#include<iostream>
using namespace std;
int main( )
{
cout<<"hello world";ewndl;
}
i got the following message from the compiler : in function int main
statement cannot resolve address of over loaded function
can anyone advise or explain to a beginner what i"m doing wrong and =
why. Oh by the way i'm using version 4.9.9.2 of dev cpp with windows xp
from matt
e.mail me at mr matt che...@bl...=20
(the mrmatt bit should be included in the e.mail address
|
|
From: PIBCharon <PIB...@co...> - 2005-06-14 09:11:36
|
hi just include the header like every other header in one of your project-files : #include "myproject_private.h" inside this file there are 3 "defines", like this : #define VER_MAJOR 0 #define VER_MINOR 1 #define VER_RELEASE 1 well thats all you need! do whatever you like with this version information. for example print it to the console : printf( "version of my project is : %i.%i.%i\n", VER_MAJOR, VER_MINOR, VER_RELEASE ); hope this helps. if not please elaborate your specific problem a little bit more. greets Markus Am Sun, 12 Jun 2005 10:52:47 -0700 hat lordSauron <lor...@gm...> geschrieben: > I'm not that good though <sob!> > > Can you please elaborate on how I'd access this data? I've known about that > little file for while now (hey, that rhymes!), but haven't been able to > devise a way to get at the information. > > I've considered opening the file for i/o, but that sounds like overkill to > me. > > Lord Sauron the Great > lor...@gm... > Live Free or Die | www.redhat.com <http://www.redhat.com> | > www.bloodshed.net <http://www.bloodshed.net> | http://fsdev.forumer.com | > www.ubuntulinux.org <http://www.ubuntulinux.org> > -- Hi! I am a signature-virus. Please copy me into your sig. --- www.char0n.de --- |
|
From: Per W. <pw...@ia...> - 2005-06-14 08:30:48
|
I can reach it ok. /Per W On Tue, 14 Jun 2005, gpuime wrote: > Impossoble to reach > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > "Dev-cpp-users-list" in a sort of "California Hotel" : you can check > out any time you like, but you can never leave ! |
|
From: gpuime <gp...@pa...> - 2005-06-14 08:11:01
|
Impossoble to reach https://lists.sourceforge.net/lists/listinfo/dev-cpp-users "Dev-cpp-users-list" in a sort of "California Hotel" : you can check out any time you like, but you can never leave ! |
|
From: lordSauron <lor...@gm...> - 2005-06-14 00:33:15
|
Huh... Oh, and if you actually want to see your code, you should
include stdlib, and put before the very end "system("pause");" if you
don't want the window to blink in and out of existance faster than you
can read it, unless you're executing it from a command prompt window,
which I doubt.
--=20
-Lord Sauron the Great
lor...@gm...
Live Free or Die | www.redhat.com | www.bloodshed.net |
http://fsdev.forumer.com | www.ubuntulinux.org
|
|
From: Reid T. <Rei...@at...> - 2005-06-13 20:35:12
|
#include <iostream>=20
using namespace std;=20
int=20
main()=20
{=20
cout << "hello world" << endl;=20
}=20
=20
=20
=20
reid=20
-----Original Message-----=20
From: MATTHEW CHEESMAN [mailto:MRM...@bl...]=20
Sent: Monday, June 13, 2005 4:23 PM=20
To: dev...@li...=20
Subject: [Dev-C++] can't compile "hello world"=20
hi,=20
i'm a beginner when trying to compilew "hello world" the standard
program for beginners after typing in#include<iostream>
using namespace std;=20
int main( )=20
{=20
cout<<"hello world";ewndl;=20
}=20
i got the following message from the compiler : in function int main=20
statement cannot resolve address of over loaded function=20
can anyone advise or explain to a beginner what i"m doing wrong and why.
Oh by the way i'm using version 4.9.9.2 of dev cpp with windows xp
from matt=20
e.mail me at mr matt HYPERLINK
"mailto:che...@bl..."che...@bl... =20
(the mrmatt bit should be included in the e.mail address=20
|
|
From: MATTHEW C. <MRM...@bl...> - 2005-06-13 20:23:01
|
hi,
i'm a beginner when trying to compilew "hello world" the standard =
program for beginners after typing in#include<iostream>
using namespace std;
int main( )
{
cout<<"hello world";ewndl;
}
i got the following message from the compiler : in function int main
statement cannot resolve address of over loaded function
can anyone advise or explain to a beginner what i"m doing wrong and why. =
Oh by the way i'm using version 4.9.9.2 of dev cpp with windows xp
from matt
e.mail me at mr matt che...@bl...=20
(the mrmatt bit should be included in the e.mail address |
|
From: Per W. <pw...@ia...> - 2005-06-13 04:16:43
|
I'm not so sure if there is a question in here somewhere... Ever tried too
google? M$ have just about all information available online!
Anyway, WM_SETSEL is obviously wrong.
WPARAM is start, end LPARAM is end.
WM_REPLACESEL: WPARAM: Can undo, LPARAM text.
/Per W
On Sun, 12 Jun 2005, Noorez Kassam wrote:
> I'm testing replacing text in an EDIT control. The tutorials that I read
> weren't very clear. Here is the test method:
>
> void TEST(HWND main, HWND edit)
> {
> int nLength = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
> char* pszText = "BYE";
> SendMessage(edit, EM_SETSEL, (WPARAM)nLength, (LPARAM)nLength);
> SendMessage(edit, EM_REPLACESEL, (WPARAM)FALSE, (LPARAM)pszText);
> }
>
|
|
From: Noorez K. <lor...@ho...> - 2005-06-12 23:24:19
|
I'm testing replacing text in an EDIT control. The tutorials that I read
weren't very clear. Here is the test method:
void TEST(HWND main, HWND edit)
{
int nLength = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
char* pszText = "BYE";
SendMessage(edit, EM_SETSEL, (WPARAM)nLength, (LPARAM)nLength);
SendMessage(edit, EM_REPLACESEL, (WPARAM)FALSE, (LPARAM)pszText);
}
_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft®
SmartScreen Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|
|
From: Fibre O. <fib...@go...> - 2005-06-12 16:06:20
|
Markku Puro wrote: >Hi, > >I've used Inno Setup : http://www.jrsoftware.org/isinfo.php >And ISTool which helps create scripts for Inno Setup compiler : http://www.istool.org/default.aspx/ >There is also Inno Setup Form Designer (ISFD) : http://isfd.kaju74.de/ > >Regards, >Markku > >----- Original Message ----- >From: "Fibre Optic" <fib...@go...> >To: <dev...@li...> >Sent: Saturday, June 11, 2005 2:36 AM >Subject: [Dev-C++] How to prepare installation of my GTK DB ? > > > > >>Hi, >> >>I have just ended my GTK database and I would like to prepare some kind >>of installation package. I would like to prepare one exe file, which >>allows install GTK runtime library and my program. Which >>program/installer i need ? How to do ? >> >>Regards, >>Fibre Optic >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput >>a projector? How fast can you ride your desk chair down the office luge track? >>If you want to score the big prize, get to know the little guy. >>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >> > > >Does any one play with > > > Nullsoft Scriptable Install System (NSIS) ? > I am looking for FREE installer. In my case i have to install GTK runtime library and then my exe file. Does NSIS support execute/install exe files (in my case GTK .exe file) ??? Regards, Fibre Optic |
|
From: PIBCharon <PIB...@co...> - 2005-06-12 14:23:31
|
hi have a look into your projects directory, there should be a header file with the version info. its name is "projectname"_private.h . so if your projects name is "mytest" for example the file would be called "mytest_private.h" . just be sure not to alter its content, dev-cpp itself alters it with every compile! greets Markus Am Fri, 10 Jun 2005 13:19:54 -0700 hat lordSauron <lor...@gm...> geschrieben: > This is really more IDE specific to DevC++ 4.9.9.2 <http://4.9.9.2>, but I > was wondering, how do I access the current project version information. > > I know that the project can be told to keep the version information, but I > just don't get how to access this from within my programs, without having to > go into project properties and look at the current version and then copy > them into the program myself. Does anyone know how to do this? > > Lord Sauron the Great > lor...@gm... > Live Free or Die | www.redhat.com <http://www.redhat.com> | > www.bloodshed.net <http://www.bloodshed.net> | www.gnu.org<http://www.gnu.org>| > www.ubuntulinux.org <http://www.ubuntulinux.org> > -- Hi! I am a signature-virus. Please copy me into your sig. --- www.char0n.de --- |
|
From: Martin D. <nex...@qu...> - 2005-06-12 07:56:51
|
Big Playah wrote: >Hi, > >is anybody familiar with pdcurses? or curses at all... >I've decided to go back to character mode and not hessle with win32 >and other unnecessary (for me) things. >the dev-cpp port of conio misses the window function, so I've dropped >it too, and came up with pdcurses. >it knows many things, lacks only a few, but... is it really good for >working in a dos box? I don't need much portability and like things >which curses were originally designed for... but need some speed of >complex screen handling (editor/emulator purposes)... >opinions? >I can get along with the dev-cpp conio pack as well, but pdcurses >offers me so much more... >TIA, > >tom > >ps. I'm already convinced not to go win32, tried but didn't make any >good, that is no question... turbovision is way too complicated for my >projects, partly because never used it, and don't can't spend the time >learning it - at least not now... > > Hi, you can ask some UNIX/Linux programmers about this, *curses is originally UNIX console manipulation library used long before Borland came with conio. You can also read manual entries for functions with 'curs_' prefix at http://www.rt.com/man/indc.html Happy coding, next_ghost |
|
From: Big P. <big...@gm...> - 2005-06-11 22:47:11
|
Hi, is anybody familiar with pdcurses? or curses at all... I've decided to go back to character mode and not hessle with win32 and other unnecessary (for me) things. the dev-cpp port of conio misses the window function, so I've dropped it too, and came up with pdcurses. it knows many things, lacks only a few, but... is it really good for working in a dos box? I don't need much portability and like things which curses were originally designed for... but need some speed of complex screen handling (editor/emulator purposes)... opinions? I can get along with the dev-cpp conio pack as well, but pdcurses offers me so much more... TIA, tom ps. I'm already convinced not to go win32, tried but didn't make any good, that is no question... turbovision is way too complicated for my projects, partly because never used it, and don't can't spend the time learning it - at least not now... --=20 Coupe Quattro '89 Typ81 custom '84 |
|
From: Per W. <pw...@ia...> - 2005-06-11 22:08:52
|
Are you sure that style is a pointer?
And are you sure about MassageBox. Note the spelling. MessageBox is alot
better :)
/Per W
On Sat, 11 Jun 2005, Infinity wrote:
> I tried to make a simple window using this code
>
> #include <windows.h>
>
> // Prototype of a function with Windows procedurs
>
> LRESULT CALLBACK WindowProcedure(HWND,UINT,WPARAM,LPARAM);
>
> // Window class name
>
> static char gszClassName[]=3D"MyClass";
>
> // main()
>
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
> LPSTR lpCmdLine, int nCmdShow)
> {
> WNDCLASSEX WndClass;
> HWND hwnd;
> MSG Msg;
>
> // Registration of a window class
>
> WndClass.cbSize=3Dsizeof (WNDCLASSEX);
> WndClass.style=3DNULL;
> WndClass.lpfnWndProc=3DWindowProcedure;
> WndClass.cbClsExtra=3D0;
> WndClass.cbWndExtra=3D0;
> WndClass.hInstance=3DhInstance;
> WndClass.hIcon=3DLoadIcon(NULL, IDI_APPLICATION);
> WndClass.hCursor=3DLoadCursor(NULL, IDC_ARROW);
> WndClass.hbrBackground=3D(HBRUSH)(COLOR_WINDOW);
> WndClass.lpszMenuName=3DNULL;
> WndClass.lpszClassName=3DgszClassName;
> WndClass.hIconSm=3DLoadIcon(NULL, IDI_APPLICATION);
>
> // Class registration check
>
> if (!RegisterClassEx(&WndClass))
> {
> MassageBox(0,"Registration failed","Error", MB_ICONSTOP|MB_OK);
> }
>
> // Creating a window
>
> hwnd=3DCreateWindowEx(WS_EX_STATICEDGE,
> gszClassName,
> "Window",
> WS_OVERLAPPEDWINDOW,
> CW_USEDEFAULT, CW_USEDEFAULT,
> 500, 400,
> NULL, NULL,
> hInstance,
> NULL);
>
> // Window creation check
>
> if (hwnd=3D=3DNULL)
> {
> MessageBox (0, "Window creation failed","Error", MB_ICONSTOP|MB_OK);
> }
>
> // Showing a window
>
> ShowWindow(hwnd, nCmdShow);
> UpdateWindow(hwnd);
>
> // message loop
>
> while (GetMessage(&Msg, NULL, 0, 0))
> {
> TranslateMessage(&Msg);
> DispatchMessage(&Msg);
> }
>
>
> UnregisterClass("MyClass",hInstance);
> return Msg.wParam;
> }// END
>
> // Function with Windows procedurs
>
> LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT Message, WPARAM wParam,=
LPARAM lParam)
> {
> switch (Message) {
> case WM_CLOSE:
> DestroyWindow(hwnd);
> break;
> case WM_DESTROY:
> PostQuitMessage(0);
> break;
> default:
> return DefWindowProc(hwnd, Message, wParam, lParam=
);
> }
> }
>
>
> And I got the following error:
>
> In function `int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':
> 23 [Warning] converting to non-pointer type `UINT' from NULL
> 39 `MassageBox' undeclared (first use this function)
> (Each undeclared identifier is reported only once for each function it ap=
pears in.)
> C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1
> Help, Please!
>
> --
> Naru=E8ite svoj XXLadsl - instalacija i modem i dalje za samo 1 kn!
> Postanite i vi korisnik ultra brzog Interneta! http://www.iskon.biz/xxlad=
sl
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games. How far can you sho=
tput
> a projector? How fast can you ride your desk chair down the office luge t=
rack?
> If you want to score the big prize, get to know the little guy.
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Infinity <inf...@ne...> - 2005-06-11 21:29:06
|
I tried to make a simple window using this code
#include <windows.h>
// Prototype of a function with Windows procedurs
LRESULT CALLBACK WindowProcedure(HWND,UINT,WPARAM,LPARAM);
// Window class name
static char gszClassName[]=3d"MyClass";
// main()
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
WNDCLASSEX WndClass;
HWND hwnd;
MSG Msg;
// Registration of a window class
WndClass.cbSize=3dsizeof (WNDCLASSEX);
WndClass.style=3dNULL;
WndClass.lpfnWndProc=3dWindowProcedure;
WndClass.cbClsExtra=3d0;
WndClass.cbWndExtra=3d0;
WndClass.hInstance=3dhInstance;
WndClass.hIcon=3dLoadIcon(NULL, IDI_APPLICATION);
WndClass.hCursor=3dLoadCursor(NULL, IDC_ARROW);
WndClass.hbrBackground=3d(HBRUSH)(COLOR_WINDOW);
WndClass.lpszMenuName=3dNULL;
WndClass.lpszClassName=3dgszClassName;
WndClass.hIconSm=3dLoadIcon(NULL, IDI_APPLICATION);
// Class registration check
if (!RegisterClassEx(&WndClass))
{
MassageBox(0,"Registration failed","Error", MB_ICONSTOP|MB_OK);
}
// Creating a window
hwnd=3dCreateWindowEx(WS_EX_STATICEDGE,
gszClassName,
"Window",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
500, 400,
NULL, NULL,
hInstance,
NULL);
// Window creation check
if (hwnd=3d=3dNULL)
{
MessageBox (0, "Window creation failed","Error", MB_ICONSTOP|MB_OK);
}
// Showing a window
ShowWindow(hwnd, nCmdShow);
UpdateWindow(hwnd);
// message loop
while (GetMessage(&Msg, NULL, 0, 0))
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
UnregisterClass("MyClass",hInstance);
return Msg.wParam;
}// END
// Function with Windows procedurs
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
switch (Message) {
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hwnd, Message, wParam, lParam);
}
}
And I got the following error:
In function `int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':
23 [Warning] converting to non-pointer type `UINT' from NULL
39 `MassageBox' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1
Help, Please!
--
Naru=e8ite svoj XXLadsl - instalacija i modem i dalje za samo 1 kn!
Postanite i vi korisnik ultra brzog Interneta! http://www.iskon.biz/xxladsl
|
|
From: Infinity <inf...@ne...> - 2005-06-11 12:41:16
|
I have a bit of problem. I had shortcut to compile and run (F9). After I installed a newer version of Dev the shortcut was no longer set. I set it manually in tools->set shortcuts and it worked. When I closed and reopened Dev, shortcut was no longer set so I have to do it again every time I reopen Dev. What should I do? -- Naru=e8ite svoj XXLadsl - instalacija i modem i dalje za samo 1 kn! Postanite i vi korisnik ultra brzog Interneta! http://www.iskon.biz/xxladsl |