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
(8) |
2
(14) |
3
(7) |
4
(23) |
5
(6) |
6
(1) |
|
7
(5) |
8
(4) |
9
(1) |
10
(9) |
11
(23) |
12
(28) |
13
(21) |
|
14
(1) |
15
(6) |
16
(2) |
17
(8) |
18
(11) |
19
(17) |
20
(11) |
|
21
(12) |
22
(17) |
23
(7) |
24
(5) |
25
(7) |
26
(4) |
27
(9) |
|
28
(13) |
29
(31) |
30
(9) |
31
(7) |
|
|
|
|
From: Michael C U. <mu...@cb...> - 2003-12-24 23:27:26
|
Hi Noorez,
The problem is in your switch structure. Your callback function doesn't
return a value from WM_PAINT. Replace the break statement at the end of
your case with a "return 0" statement, and I think that might fix your
problem.
Also. note that the braces around the code in your WM_PAINT case are not
necessary. You don't need to use braces to group case statements as all of
hem will execute up until it encounters a break or return.
Try replacing "break" with "return 0;" and also removing the braces from
the WM_PAINT case. That might fix your problem.
On Wed, 24 Dec 2003, Noorez Kassam wrote:
> This WinApp closes too fast to see results
>
> #include <windows.h>
>
>
> LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsgId, WPARAM wParam, LPARAM
> lParam);
>
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
> pszCmdLine, int nCmdShow)
> {
> static char szAppName[] = "hello";
> HWND hWnd;
> MSG msg;
> WNDCLASSEX wndClass;
>
> //register class
> wndClass.style = 0;
> wndClass.lpfnWndProc = WindowProc;
> wndClass. cbClsExtra = 0;
> wndClass.hInstance = hInstance;
> wndClass.hIcon = LoadIcon( hInstance, szAppName);
> wndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
> wndClass.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
> wndClass.lpszMenuName = NULL;
> wndClass.lpszClassName = szAppName;
> wndClass.hIconSm = wndClass.hIcon;
>
> if(RegisterClassEx(&wndClass)==0)//register class...
> return 0; //quit if it doesn't work
>
> //now create window
> hWnd = CreateWindow(szAppName, szAppName, WS_OVERLAPPEDWINDOW,
> CW_USEDEFAULT, CW_USEDEFAULT,
> CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance,
> NULL);
>
> if(hWnd == NULL)
> return 0;
>
> ShowWindow(hWnd, nCmdShow);
> UpdateWindow( hWnd );
>
> while( GetMessage(&msg, NULL, 0,0))
> {
> TranslateMessage(&msg);
> DispatchMessage(&msg);
> }
> return msg.wParam;
> }
>
>
> //process functions
> LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsgId, WPARAM wParam, LPARAM
> lParam)
> {
> static char *pszHello = "Hello, world";
>
> switch(uMsgId)
> {
> case WM_PAINT:
> {
> HDC hDC;
> PAINTSTRUCT paintStruct;
>
> hDC = BeginPaint( hWnd, &paintStruct);
>
> TextOut(hDC, 0,0, pszHello, lstrlen(pszHello));
>
> EndPaint( hWnd, &paintStruct );
> }
> break;
>
> case WM_DESTROY:
> PostQuitMessage(0);
>
> break;
>
> default:
> return DefWindowProc(hWnd,uMsgId,wParam,lParam);
> }
> return 0;
> }
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=https%3a%2f%2f2.zoppoz.workers.dev%3a443%2fhttp%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> 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: Noorez K. <coo...@ho...> - 2003-12-24 21:27:03
|
This WinApp closes too fast to see results
#include <windows.h>
LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsgId, WPARAM wParam, LPARAM
lParam);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
pszCmdLine, int nCmdShow)
{
static char szAppName[] = "hello";
HWND hWnd;
MSG msg;
WNDCLASSEX wndClass;
//register class
wndClass.style = 0;
wndClass.lpfnWndProc = WindowProc;
wndClass. cbClsExtra = 0;
wndClass.hInstance = hInstance;
wndClass.hIcon = LoadIcon( hInstance, szAppName);
wndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndClass.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
wndClass.lpszMenuName = NULL;
wndClass.lpszClassName = szAppName;
wndClass.hIconSm = wndClass.hIcon;
if(RegisterClassEx(&wndClass)==0)//register class...
return 0; //quit if it doesn't work
//now create window
hWnd = CreateWindow(szAppName, szAppName, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance,
NULL);
if(hWnd == NULL)
return 0;
ShowWindow(hWnd, nCmdShow);
UpdateWindow( hWnd );
while( GetMessage(&msg, NULL, 0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
//process functions
LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsgId, WPARAM wParam, LPARAM
lParam)
{
static char *pszHello = "Hello, world";
switch(uMsgId)
{
case WM_PAINT:
{
HDC hDC;
PAINTSTRUCT paintStruct;
hDC = BeginPaint( hWnd, &paintStruct);
TextOut(hDC, 0,0, pszHello, lstrlen(pszHello));
EndPaint( hWnd, &paintStruct );
}
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hWnd,uMsgId,wParam,lParam);
}
return 0;
}
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=https%3a%2f%2f2.zoppoz.workers.dev%3a443%2fhttp%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
|
|
From: Noorez K. <coo...@ho...> - 2003-12-24 21:14:18
|
My system pause function in this program is not read at the end of the
program so i can't
see the results.
// This program copies the contents of one file
// to another file.
// Program file: copyfile.cpp
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
int main()
{
ifstream in_file;
char ch;
in_file.open("myfile.txt");
in_file.get(ch);
while (! in_file.eof() && ! in_file.fail())
{
cout << ch;
in_file.get(ch);
}
in_file.close();
system("pause");
}
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=https%3a%2f%2f2.zoppoz.workers.dev%3a443%2fhttp%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
|
|
From: Noorez K. <coo...@ho...> - 2003-12-24 21:11:59
|
My windows APP is closing before i see any results! It complies fine but it
just closes
#include <windows.h>
LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsgId, WPARAM wParam, LPARAM
lParam);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
pszCmdLine, int nCmdShow)
{
static char szAppName[] = "hello";
HWND hWnd;
MSG msg;
WNDCLASSEX wndClass;
//register class
wndClass.style = 0;
wndClass.lpfnWndProc = WindowProc;
wndClass. cbClsExtra = 0;
wndClass.hInstance = hInstance;
wndClass.hIcon = LoadIcon( hInstance, szAppName);
wndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndClass.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
wndClass.lpszMenuName = NULL;
wndClass.lpszClassName = szAppName;
wndClass.hIconSm = wndClass.hIcon;
if(RegisterClassEx(&wndClass)==0)//register class...
return 0; //quit if it doesn't work
//now create window
hWnd = CreateWindow(szAppName, szAppName, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance,
NULL);
if(hWnd == NULL)
return 0;
ShowWindow(hWnd, nCmdShow);
UpdateWindow( hWnd );
while( GetMessage(&msg, NULL, 0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
//process functions
LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsgId, WPARAM wParam, LPARAM
lParam)
{
static char *pszHello = "Hello, world";
switch(uMsgId)
{
case WM_PAINT:
{
HDC hDC;
PAINTSTRUCT paintStruct;
hDC = BeginPaint( hWnd, &paintStruct);
TextOut(hDC, 0,0, pszHello, lstrlen(pszHello));
EndPaint( hWnd, &paintStruct );
}
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hWnd,uMsgId,wParam,lParam);
}
return 0;
}
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=https%3a%2f%2f2.zoppoz.workers.dev%3a443%2fhttp%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
|
|
From: Mark S. <mar...@li...> - 2003-12-24 09:46:36
|
Hi I've been getting many emails from the group in recent months which arrive empty, my IT dept has tried to find out the cause since they seem to get to the group host site OK & I have had the following response: -----Original Message----- From: SurfControl UK/EMEA Tech Support (CO) [mailto:su...@Su...] Sent: 19 December 2003 16:48 To: 'Jason Walker' Subject: RE: empty emails Hi Jason, We have been investigating the issue that you have reported regarding the message body being removed by the email filter. This issue is being caused because the footer that is being applied to the message by the sender. The footer is outside the defined boundaries of the message, this causes the email filter to enclose the footer within the last boundary thus when the message is viewed it reads the footer as the message body. Would it be possible to ask the sender not to apply the footer or to enclose the footer in the message body and not outside the boundary? Regards, Ian -------------------- Has anyone else had problems of the same sort or know a fix ? Best regards & seasonal greeting to all. Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.552 / Virus Database: 344 - Release Date: 15/12/2003 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. |