 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Fri Aug 14, 2009 5:58 am Post subject: Problem: RC1004: unexpected end of file found |
|
|
Ok, ive created a resource file, it worked, but after that i deleted some things and now its gives this error: RC1004: unexpected end of file found in Visual c++
| Code: | 1>------ Build started: Project: Kitterz Trainner, Configuration: Release Win32 ------
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>.\resource.h(18) : fatal error RC1004: unexpected end of file found
1>Build log was saved at "file://c:\Documents and Settings\RuBen\Bureaublad\Kitterz_Trainner_Src\Kitterz_Trainner_Src\Kitterz Trainner\Kitterz Trainner\Release\BuildLog.htm"
1>Kitterz Trainner - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
my resource file looks like this
| Code: | // Generated by ResEdit 1.4.7
// Copyright (C) 2006-2009
// http://www.resedit.net
#include "resource.h"
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
//
// Dialog resources
//
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_DIALOG1 DIALOGEX 0, 0, 118, 198
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | WS_VISIBLE | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
EXSTYLE WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST
CAPTION "Char Info + Hacks ~ Kitterz"
FONT 8, "Ms Shell Dlg 2", 400, 0, 1
{
LTEXT "Char X:", IDC_STATIC, 13, 16, 25, 8, SS_LEFT
LTEXT "Char Y:", IDC_STATIC, 13, 26, 25, 8, SS_LEFT
LTEXT "Attk Counter:", IDC_STATIC, 7, 38, 45, 8, SS_LEFT
LTEXT "0", IDC_CHARX, 68, 16, 19, 8, SS_LEFT
LTEXT "0", IDC_CHARY, 68, 26, 19, 8, SS_LEFT
LTEXT "0", IDC_ATTK, 67, 39, 19, 8, SS_LEFT
LTEXT "Unl Attk ~ F4", IDC_STATIC, 8, 65, 55, 8, SS_LEFT
LTEXT "Off", IDC_UNLIMITEDATTK, 71, 66, 19, 8, SS_LEFT
GROUPBOX "Char Info", IDC_STATIC, 5, 5, 101, 49
LTEXT "AutoLoot ~ F9", IDC_STATIC, 7, 78, 48, 8, SS_LEFT
LTEXT "Off", IDC_AUTOLOOT, 69, 79, 19, 8, SS_LEFT
GROUPBOX "Hacks/Other (Ctrl + F Key)", IDC_STATIC, 5, 54, 101, 50
LTEXT "AutoAttack ~ F10", IDC_STATIC, 5, 92, 58, 8, SS_LEFT
LTEXT "Off", IDC_AUTOATTACK, 69, 91, 19, 8, SS_LEFT
}
|
idk whats wrong?:S
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Fri Aug 14, 2009 6:00 am Post subject: |
|
|
put an extra empty line at the end of your resource file, just go to it, press ctrl-end and then press enter and save
not sure why this happens nor why the empty line is needed at the end
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Fri Aug 14, 2009 10:18 am Post subject: |
|
|
| Slugsnack wrote: | put an extra empty line at the end of your resource file, just go to it, press ctrl-end and then press enter and save
not sure why this happens nor why the empty line is needed at the end |
still got the same error, any other solutions?
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Fri Aug 14, 2009 10:39 am Post subject: |
|
|
| What's in resource.h?
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Fri Aug 14, 2009 10:55 am Post subject: |
|
|
| Code: | #ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif
#define IDD_DIALOG1 100
#define IDC_CHARX 1001
#define IDC_CHARY 1002
#define IDC_ATTK 1006
#define IDC_UNLIMITEDATTK 1015
#define IDC_AUTOLOOT 1016
#define IDC_AUTOATTACK 1018
#define IDC_HK4 60003
#define IDC_HK9 60008
#define IDC_HK10 60009
#define IDC_HK11 60010
#define IDC_HK12 60011
|
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Fri Aug 14, 2009 11:46 am Post subject: |
|
|
| sure you saved it ? cause i'm pretty sure that error is cause of that. otherwise upload it then i'll fiddle with it and get back to you
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Fri Aug 14, 2009 12:07 pm Post subject: |
|
|
| do u have msn?
|
|
| Back to top |
|
 |
Deltron Z Expert Cheater
Reputation: 1
Joined: 14 Jun 2009 Posts: 164
|
Posted: Fri Aug 14, 2009 12:14 pm Post subject: |
|
|
| Add an extra line to resource.h, not resource.rc.
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Fri Aug 14, 2009 12:16 pm Post subject: |
|
|
| yeah, PM me yours
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Fri Aug 14, 2009 12:36 pm Post subject: |
|
|
ive got it working
Last edited by NoMercy on Sat Aug 15, 2009 9:17 am; edited 1 time in total |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Aug 14, 2009 9:12 pm Post subject: |
|
|
Just a quick explanation of this error: Since resource files and defines don't have a statement delimiter (i.e. - ';' in C flavors) they instead use the newline character ('\n') to describe the end of a statement. This means you always need to add a blank line (the newline character) at the end of the file to place the delimiter.
|
|
| 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
|
|