 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Sun Sep 14, 2008 9:13 am Post subject: [ResEdit] Give's like 50 errors. |
|
|
How are people even using ResEdit? It gives me 60+ errors on compile.
_________________
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Sun Sep 14, 2008 10:15 am Post subject: |
|
|
Maybe change to multibye instead of unicode. Anyways, when I used it, I got two errors still.
_________________
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sun Sep 14, 2008 11:01 am Post subject: |
|
|
What are some of the errors?
_________________
|
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Sun Sep 14, 2008 11:01 am Post subject: |
|
|
What compile are you currently using. I tried Microsoft visual c++ 06, 2005, 2008. Nothing. Making GUI's by hand is so boring =\
_________________
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Sun Sep 14, 2008 11:12 am Post subject: Re: [ResEdit] Give's like 50 errors. |
|
|
| Fuzz wrote: | | How are people even using ResEdit? It gives me 60+ errors on compile. |
Make sure that you include:
1. The .rc file in the project.
2. The resources.h file in your project
3. The linker is set to multi-byte
_________________
|
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Sun Sep 14, 2008 11:20 am Post subject: |
|
|
Well, there's like 50 syntax errors. I'll try multibyte right now.
Edit: all I see is how to change character set. Nothing about linker. How do I change to mutibyte in the linker.
_________________
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Sep 14, 2008 2:35 pm Post subject: |
|
|
| Fuzz wrote: | | What compile are you currently using. I tried Microsoft visual c++ 06, 2005, 2008. Nothing. Making GUI's by hand is so boring =\ |
Making GUI's via pure code is so much fun.
If you need to use a dialog editor your lazy
| Fuzz wrote: | Well, there's like 50 syntax errors. I'll try multibyte right now.
Edit: all I see is how to change character set. Nothing about linker. How do I change to multibyte in the linker. |
Character set is the multibyte.
If your using the UNICODE version of ResEdit, it shouldn't matter else, you'll have to change the character set to Multi-Byte character set.
Anyways, through all of this, you haven't done one thing, show us what the errors are.
_________________
|
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Sun Sep 14, 2008 2:39 pm Post subject: |
|
|
Ok lurc. Here yah go.
| Code: | --------------------Configuration: ValueRead - Win32 Debug--------------------
Compiling...
main.c
C:\Documents and Settings\Owner\Desktop\resedit\main.c(6) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(8) : error C2143: syntax error : missing ')' before '('
C:\Documents and Settings\Owner\Desktop\resedit\main.c(8) : error C2143: syntax error : missing ')' before '&'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(8) : error C2091: function returns function
C:\Documents and Settings\Owner\Desktop\resedit\main.c(8) : error C2143: syntax error : missing '{' before '&'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(8) : error C2059: syntax error : '&'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(8) : error C2059: syntax error : ')'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(9) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(9) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(10) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(10) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(11) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(11) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(14) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(14) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(15) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(15) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(16) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(16) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(17) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(17) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(18) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(18) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(19) : error C2143: syntax error : missing '{' before '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(19) : error C2059: syntax error : '.'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(20) : error C2143: syntax error : missing ')' before '&'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(20) : error C2143: syntax error : missing '{' before '&'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(20) : error C2059: syntax error : '&'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(20) : error C2059: syntax error : ')'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(22) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(23) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(24) : error C2065: 'WC_STATIC' : undeclared identifier
C:\Documents and Settings\Owner\Desktop\resedit\main.c(24) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\Documents and Settings\Owner\Desktop\resedit\main.c(24) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 2
C:\Documents and Settings\Owner\Desktop\resedit\main.c(24) : error C2065: 'IDC_STATIC' : undeclared identifier
C:\Documents and Settings\Owner\Desktop\resedit\main.c(24) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(25) : error C2059: syntax error : ','
C:\Documents and Settings\Owner\Desktop\resedit\main.c(25) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(25) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(25) : error C2059: syntax error : '<Unknown>'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(26) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\Documents and Settings\Owner\Desktop\resedit\main.c(26) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 2
C:\Documents and Settings\Owner\Desktop\resedit\main.c(26) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(27) : error C2059: syntax error : ','
C:\Documents and Settings\Owner\Desktop\resedit\main.c(27) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(27) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(27) : error C2059: syntax error : '<Unknown>'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(28) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\Documents and Settings\Owner\Desktop\resedit\main.c(28) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 2
C:\Documents and Settings\Owner\Desktop\resedit\main.c(28) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(29) : error C2059: syntax error : ','
C:\Documents and Settings\Owner\Desktop\resedit\main.c(29) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(29) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(29) : error C2059: syntax error : '<Unknown>'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(30) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\Documents and Settings\Owner\Desktop\resedit\main.c(30) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 2
C:\Documents and Settings\Owner\Desktop\resedit\main.c(30) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(31) : error C2059: syntax error : ','
C:\Documents and Settings\Owner\Desktop\resedit\main.c(31) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(31) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(31) : error C2059: syntax error : '<Unknown>'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(32) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\Documents and Settings\Owner\Desktop\resedit\main.c(32) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 2
C:\Documents and Settings\Owner\Desktop\resedit\main.c(32) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(33) : error C2059: syntax error : ','
C:\Documents and Settings\Owner\Desktop\resedit\main.c(33) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(33) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(33) : error C2059: syntax error : '<Unknown>'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(34) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\Documents and Settings\Owner\Desktop\resedit\main.c(34) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 2
C:\Documents and Settings\Owner\Desktop\resedit\main.c(34) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(35) : error C2059: syntax error : ','
C:\Documents and Settings\Owner\Desktop\resedit\main.c(35) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(35) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(35) : error C2059: syntax error : '<Unknown>'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(36) : error C2065: 'WC_BUTTON' : undeclared identifier
C:\Documents and Settings\Owner\Desktop\resedit\main.c(36) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
C:\Documents and Settings\Owner\Desktop\resedit\main.c(36) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 2
C:\Documents and Settings\Owner\Desktop\resedit\main.c(36) : error C2065: 'IDC_CHECKBOX1' : undeclared identifier
C:\Documents and Settings\Owner\Desktop\resedit\main.c(36) : error C2099: initializer is not a constant
C:\Documents and Settings\Owner\Desktop\resedit\main.c(37) : error C2059: syntax error : ','
C:\Documents and Settings\Owner\Desktop\resedit\main.c(37) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(37) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Owner\Desktop\resedit\main.c(37) : error C2059: syntax error : '<Unknown>'
Error executing cl.exe.
ValueRead.exe - 70 error(s), 14 warning(s) |
code:
| Code: |
// Generated by ResEdit 1.4.3
// Copyright (C) 2006-2008
// http://www.resedit.net
#include "windows.h"
HINSTANCE hInst = GetModuleHandle(0);
WNDCLASSEX wcex;
ZeroMemory(&wcex, sizeof wcex);
wcex.cbSize = sizeof wcex;
wcex.hbrBackground = GetSysColorBrush(COLOR_3DFACE);
wcex.lpszMenuName = 0;
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = DefWindowProc;
wcex.hInstance = hInst;
wcex.hIcon = LoadIcon(0, (LPCTSTR)IDI_APPLICATION);
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.lpszClassName = WndClass00;
RegisterClassEx(&wcex);
HFONT hfont0 = CreateFont(-11, 0, 0, 0, 400, FALSE, FALSE, FALSE, 1, 400, 0, 0, 0, TEXT("Ms Shell Dlg 2"));
HWND hwnd = CreateWindowEx(0, TEXT("WndClass0"), TEXT("Value Reader"), WS_VISIBLE | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU, 0, 0, 149, 86, 0, 0, hInst, 0);
HWND hCtrl0_0 = CreateWindowEx(0, WC_STATIC, TEXT("HP"), WS_VISIBLE | WS_CHILD | WS_GROUP, 2, 2, 41, 13, hwnd, (HMENU)IDC_STATIC, hInst, 0);
SendMessage(hCtrl0_0, WM_SETFONT, (WPARAM)hfont0, FALSE);
HWND hCtrl0_1 = CreateWindowEx(0, WC_STATIC, TEXT("MP"), WS_VISIBLE | WS_CHILD | WS_GROUP, 2, 18, 41, 13, hwnd, (HMENU)IDC_STATIC, hInst, 0);
SendMessage(hCtrl0_1, WM_SETFONT, (WPARAM)hfont0, FALSE);
HWND hCtrl0_2 = CreateWindowEx(0, WC_STATIC, TEXT("Attack"), WS_VISIBLE | WS_CHILD | WS_GROUP, 2, 34, 41, 13, hwnd, (HMENU)IDC_STATIC, hInst, 0);
SendMessage(hCtrl0_2, WM_SETFONT, (WPARAM)hfont0, FALSE);
HWND hCtrl0_3 = CreateWindowEx(0, WC_STATIC, TEXT("0"), WS_VISIBLE | WS_CHILD | WS_GROUP, 45, 2, 41, 13, hwnd, (HMENU)IDC_STATIC, hInst, 0);
SendMessage(hCtrl0_3, WM_SETFONT, (WPARAM)hfont0, FALSE);
HWND hCtrl0_4 = CreateWindowEx(0, WC_STATIC, TEXT("0"), WS_VISIBLE | WS_CHILD | WS_GROUP, 45, 18, 41, 13, hwnd, (HMENU)IDC_STATIC, hInst, 0);
SendMessage(hCtrl0_4, WM_SETFONT, (WPARAM)hfont0, FALSE);
HWND hCtrl0_5 = CreateWindowEx(0, WC_STATIC, TEXT("0"), WS_VISIBLE | WS_CHILD | WS_GROUP, 45, 34, 41, 13, hwnd, (HMENU)IDC_STATIC, hInst, 0);
SendMessage(hCtrl0_5, WM_SETFONT, (WPARAM)hfont0, FALSE);
HWND hCtrl0_6 = CreateWindowEx(0, WC_BUTTON, TEXT("Read"), WS_VISIBLE | WS_CHILD | WS_TABSTOP, 90, 2, 50, 16, hwnd, (HMENU)IDC_CHECKBOX1, hInst, 0);
SendMessage(hCtrl0_6, WM_SETFONT, (WPARAM)hfont0, FALSE);
|
_________________
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Sep 14, 2008 3:06 pm Post subject: |
|
|
No entry point.
Your missing WinMain/main
You gotta change this:
wcex.lpfnWndProc = DefWindowProc;
So that you assign a custom Windows procedure for your window.
wcex.lpszClassName = WndClass00;
WndClass00? Undefined?
Anyways, Character set can't be the problem now cause i can see that it uses macro's.
WC_STATIC - Gotta include commctrl.h
IDC_STATIC - Defined somewhere in a header u didn't get?
_________________
|
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Sun Sep 14, 2008 5:48 pm Post subject: |
|
|
Thanks lurc. Making them by hand seems better now.
_________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|