dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
(2) |
|
2
(1) |
3
(8) |
4
(5) |
5
(3) |
6
(1) |
7
(8) |
8
(3) |
|
9
|
10
(11) |
11
(2) |
12
|
13
(3) |
14
(5) |
15
(2) |
|
16
(1) |
17
(4) |
18
(5) |
19
(3) |
20
(4) |
21
(3) |
22
|
|
23
(1) |
24
(7) |
25
(8) |
26
(1) |
27
(5) |
28
(3) |
29
(4) |
|
30
(2) |
31
(6) |
|
|
|
|
|
|
From: Alfred P. R. <al...@ya...> - 2005-01-10 19:20:36
|
I've loaded them as a resource file, then:
#include <windows.h> ...
int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil) {
...
HICON windowIcon;
...
windowIcon = LoadIcon(hThisInstance, "A"); ...
The resource file (*.rc) declares, in this instance an icon, "A" as:
A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "FileCleanerPro.ico"
If I recall correctly, this will work for BMP files also. BTW: The Win32 API Programmers Reference documents this in a kind of indirect way. I can e-mail it if you don't have the file, but be aware that it is 11.279MB in size.
Hopefully this helps!
A_B...@gm... wrote:
Hi,
I want to use the BitBlt and StrechBlt APIs for drawing images on a window.
Now this APIs needs handles to the window and the bitmap.
I can get the handle of the window, but how do I load a bitmap into memory and get its handle ???
thx, Acki
Alfred P. Reaud
|
|
From: Reid T. <Rei...@at...> - 2005-01-10 16:21:46
|
Per Westermark wrote:
> On Mon, 10 Jan 2005, Reid Thompson wrote:
>>=20
>> man atoi
>>=20
>> reid
>=20
> Confusion??? atoi converts "123" to 123 but it doesn't
> convert 'A' to a number - or actually it gets 'converted' to the
> value 0...=20
>=20
> /Per W
sorry - answered too quickly ---=20
#include <stdio.h>
int main(void)
{
char mychar =3D 'A';
char temp[8];
int ifromc =3D 0;
snprintf(temp, sizeof(temp), "%d", mychar);
printf("%s\n", temp);
ifromc =3D atoi(temp);
printf("%d\n", ifromc);
return(0);
}
reid
|
|
From: Per W. <pw...@ia...> - 2005-01-10 16:08:56
|
On Mon, 10 Jan 2005, Reid Thompson wrote: > > man atoi > > reid Confusion??? atoi converts "123" to 123 but it doesn't convert 'A' to a number - or actually it gets 'converted' to the value 0... /Per W |
|
From: <or...@vp...> - 2005-01-10 16:06:27
|
Patel, Nilesh M wrote: > Does anyone know how to change a char into an int.=20 > For example: an A into a 1=20 > or B into a 2. If you want 'A' to be 1, 'B' 2, etc., then: char ch =3D 'C'; // or whatever you wish to convert int i =3D ch - 'A' + 1; -- Greetings, Bal=E1zs |
|
From: Per W. <pw...@ia...> - 2005-01-10 16:05:22
|
This will do it: 1 + (ch - 'A') /Per W On Mon, 10 Jan 2005, Patel, Nilesh M wrote: > > Does anyone know how to change a char into an int. > For example: an A into a 1 > or B into a 2. |
|
From: <Rub...@al...> - 2005-01-10 15:56:50
|
Here is the code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc,char *argv[])
{
char *x,*y;
=20
if(argc=3D=3D1){
printf("Uso : 2token STRING\n");
return -1;
}
if((x=3D(char *)malloc(1000)) =3D=3D NULL)
return -1;
strcpy(x,argv[1]);
=20
if((y=3Dstrtok(x,"|")) !=3D NULL)
if((y=3Dstrtok(NULL,"|")) !=3D NULL)
printf("\n%s\n",y);
system("pause");
return 0;
}
Ruben Savia
Ingeniero Electr=F3nico
Datacom Services
eBD - eBusiness Division
Alcatel de Argentina S.A.
e-mail : rub...@al...=20
Phone: 5411 4349 - 1111 ext.1001
Fax: 5411 4349 - 1199
Alcanet : 2930-1001
Web site: www.ind.alcatel.com=20
|
|
From: Reid T. <Rei...@at...> - 2005-01-10 15:40:49
|
Patel, Nilesh M wrote: > Does anyone know how to change a char into an int. > For example: an A into a 1 > or B into a 2. >=20 >=20 >=20 >=20 >=20 >=20 >=20 > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf > Of dev...@li... > Sent: Sunday, January 09, 2005 11:15 PM > To: dev...@li... > Subject: Dev-cpp-users digest, Vol 1 #2284 - 1 msg >=20 >=20 > Send Dev-cpp-users mailing list submissions to > dev...@li... >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... >=20 > You can reach the person managing the list at > dev...@li... >=20 > When replying, please edit your Subject line so it is more > specific than "Re: Contents of Dev-cpp-users digest..." >=20 >=20 > Today's Topics: >=20 >=20 >=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The contents of this = message, together with any > attachments, are intended only for the use of the person(s) to which > they are addressed and may contain confidential and/or privileged > information. Further, any medical information herein is > confidential and protected by law. It is unlawful for > unauthorized persons to use, review, copy, disclose, or > disseminate confidential medical information. If you are not > the intended recipient, immediately advise the sender and > delete this message and any attachments. Any distribution, or > copying of this message, or any attachment, is prohibited. > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 >=20 >=20 >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from > ThinkGeek. It's fun and FREE -- well, > almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > 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 man atoi reid |
|
From: Patel, N. M <Nil...@qu...> - 2005-01-10 15:32:56
|
Does anyone know how to change a char into an int.=20 =46or example: an A into a 1=20 or B into a 2. -----Original Message----- =46rom: dev...@li... [mailto:dev...@li...]On Behalf Of dev...@li... Sent: Sunday, January 09, 2005 11:15 PM To: dev...@li... Subject: Dev-cpp-users digest, Vol 1 #2284 - 1 msg Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D The contents of this message, together with any attachments, are intended = only for the use of the person(s) to which they are addressed and may = contain confidential and/or privileged information. Further, any medical = information herein is confidential and protected by law. It is unlawful for= = unauthorized persons to use, review, copy, disclose, or disseminate = confidential medical information. If you are not the intended recipient, = immediately advise the sender and delete this message and any attachments. = Any distribution, or copying of this message, or any attachment, is = prohibited. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D |
|
From: <A_B...@gm...> - 2005-01-10 15:21:21
|
Thank you for the hint !!! :)
But now I have an other problem...
I get two different types of handles (HWND and HANDLE).
BitBlt needs for source and destination the handle type HDC.
So the only way to get this code to run seems to cast the two handles to H=
DC.
But BitBlt returns False and nothing is drawn to the window!
void wndAnfang::drawSchein(){
HWND hnd_Window;
HANDLE hnd_BMP;
if(hnd_Window =3D FindWindow("fltk", "AB-Sys")){
if(hnd_BMP =3D LoadImage(NULL, "F:\\Sources\\DevCpp\\Sys\\out\\Schein-=
Small.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE)){
bool b =3D BitBlt((HDC)hnd_Window, 0, 0, 300, 300, (HDC)hnd_BMP, 0, =
0, SRCCOPY);
DeleteObject(hnd_BMP);
message("%d %d %d",b,hnd_Picture,hnd_Schein);
}
}
}
Am 10 Jan 2005 um 13:51 hat OROSZI Bal=E1zs geschrieben:
>
> If you want to load a bitmap from a file (.bmp), then you have to look
> for an image library or write your own loader, as the Win32 API doesn't
> support loading bitmaps from files directly.
>
> It can load bitmaps from resources though. See LoadBitmap() for details.
>
> --
> Greetings,
> Bal=E1zs
|
|
From: <or...@vp...> - 2005-01-10 13:09:01
|
A_B...@gm... wrote: > Hi, > I want to use the BitBlt and StrechBlt APIs for drawing images on a win= dow. > Now this APIs needs handles to the window and the bitmap. > I can get the handle of the window, but how do I load a bitmap into=20 > memory and get its handle ??? If you want to load a bitmap from a file (.bmp), then you have to look=20 for an image library or write your own loader, as the Win32 API doesn't=20 support loading bitmaps from files directly. It can load bitmaps from resources though. See LoadBitmap() for details. -- Greetings, Bal=E1zs |
|
From: <A_B...@gm...> - 2005-01-10 00:27:55
|
Hi, I want to use the BitBlt and StrechBlt APIs for drawing images on a window. Now this APIs needs handles to the window and the bitmap. I can get the handle of the window, but how do I load a bitmap into memory and get its handle ??? thx, Acki |