Dynaverse.net
Off Topic => Ten Forward => Topic started by: Toasty0 on January 05, 2004, 09:57:18 pm
-
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
-
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Is It the lack of a } at the End?
stephen
-
nope...the snippet is incomplete so there would be no closing brackett. But good catch had it been a complete source file.
Best,
Jerry
-
Ahh Darn, <slaps head with a pinata stick>
hehe, oh well, I'll wait and see what It is. unless It's using the wrong case "L" or "i"
stephen
-
static TCHAR szAppName[]=TEXT9"SysMets1");
Does there need to be a ( since there's a ); at the end?
Just a wild guess.
-
Quote:
static TCHAR szAppName[]=TEXT9"SysMets1");
Does there need to be a ( since there's a ); at the end?
Just a wild guess.
Close.
that line should read:
static TCHAR szAppName[]=TEXT("SysMets1");
Nice catch. 
Best,
Jerry
-
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
missing a semi-colon at the end?
-
Quote:
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
missing a semi-colon at the end?
No, that's what the { below is for.
Had it been a declaration only, and not a definition, then yes the missing ; would be a catch.
-
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Got it. Of course. It was easy. You've used C++ (or some bastard variant). Always a big mistake that.
-
Quote:
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Got it. Of course. It was easy. You've used C++ (or some bastard variant). Always a big mistake that.
Golly, I hope you didn't want it in C or Pacal. 
-
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
-
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Is It the lack of a } at the End?
stephen
-
nope...the snippet is incomplete so there would be no closing brackett. But good catch had it been a complete source file.
Best,
Jerry
-
Ahh Darn, <slaps head with a pinata stick>
hehe, oh well, I'll wait and see what It is. unless It's using the wrong case "L" or "i"
stephen
-
static TCHAR szAppName[]=TEXT9"SysMets1");
Does there need to be a ( since there's a ); at the end?
Just a wild guess.
-
Quote:
static TCHAR szAppName[]=TEXT9"SysMets1");
Does there need to be a ( since there's a ); at the end?
Just a wild guess.
Close.
that line should read:
static TCHAR szAppName[]=TEXT("SysMets1");
Nice catch. 
Best,
Jerry
-
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
missing a semi-colon at the end?
-
Quote:
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
missing a semi-colon at the end?
No, that's what the { below is for.
Had it been a declaration only, and not a definition, then yes the missing ; would be a catch.
-
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Got it. Of course. It was easy. You've used C++ (or some bastard variant). Always a big mistake that.
-
Quote:
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Got it. Of course. It was easy. You've used C++ (or some bastard variant). Always a big mistake that.
Golly, I hope you didn't want it in C or Pacal. 
-
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
-
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Is It the lack of a } at the End?
stephen
-
nope...the snippet is incomplete so there would be no closing brackett. But good catch had it been a complete source file.
Best,
Jerry
-
Ahh Darn, <slaps head with a pinata stick>
hehe, oh well, I'll wait and see what It is. unless It's using the wrong case "L" or "i"
stephen
-
static TCHAR szAppName[]=TEXT9"SysMets1");
Does there need to be a ( since there's a ); at the end?
Just a wild guess.
-
Quote:
static TCHAR szAppName[]=TEXT9"SysMets1");
Does there need to be a ( since there's a ); at the end?
Just a wild guess.
Close.
that line should read:
static TCHAR szAppName[]=TEXT("SysMets1");
Nice catch. 
Best,
Jerry
-
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
missing a semi-colon at the end?
-
Quote:
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
missing a semi-colon at the end?
No, that's what the { below is for.
Had it been a declaration only, and not a definition, then yes the missing ; would be a catch.
-
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Got it. Of course. It was easy. You've used C++ (or some bastard variant). Always a big mistake that.
-
Quote:
Quote:
#include < windows.h >
#include "sysmets.h"
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPRAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPreInstance, PSTR szCmdLine, int iCmdLine)
{
static TCHAR szAppName[]=TEXT9"SysMets1");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc=WndProc;
wndclass.cbClsExtra =0;
wndclass.cbWndExtra =0;
Within that code there is a mistake. Anyone care to call it. Yes, the code is incompletre, but that isn't the error. 
Best,
Jerry
Got it. Of course. It was easy. You've used C++ (or some bastard variant). Always a big mistake that.
Golly, I hope you didn't want it in C or Pacal. 