Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Problem with injector.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Odecey
Master Cheater
Reputation: 1

Joined: 19 Apr 2007
Posts: 259
Location: Scandinavia

PostPosted: Fri Jan 02, 2009 5:50 pm    Post subject: Problem with injector. Reply with quote

Kitterz source has given me some trouble these last few hours, and I need to find out why. First I tried simply compiling the code, which did not work, but gave this output:
Code:
fatal error C1900: Il mismatch between 'P1' version '20080116' and 'P2' version '20070207'
1>LINK : fatal error LNK1257: code generation failed.
Reading something about that this has to do with my version of Visual Studio, I decided to rebuild the project rather than reinstalling the IDE. This time, the errors given were syntax errors, specifically:
Code:
error C2664: 'strcmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *'
This had me baffled, since the IDE did not give the same errors when building Kitterz project. I tried casting the WCHAR using WideCharToMultiByte, which seemed to work fine as the code compiled. However, when the program tried to inject a dll, it simply crashed. If you have any idea how to solve this, I'd love to hear.
_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Jan 02, 2009 6:04 pm    Post subject: Reply with quote

1.
Quote:
Fatal Error C1900

Il mismatch between 'tool1' version 'number1' and 'tool2' version 'number2'

Tools run in various passes of the compiler do not match. number1 and number2 refer to the dates on the files. For example, in pass 1, the compiler front end runs (c1.dll) and in pass 2, the compiler back end runs (c2.dll). The dates on the files must match and if they do not, reinstall and use the current version of each tool.


2. Try compiling as Multi-byte, go look in your project settings.
Back to top
View user's profile Send private message
Odecey
Master Cheater
Reputation: 1

Joined: 19 Apr 2007
Posts: 259
Location: Scandinavia

PostPosted: Fri Jan 02, 2009 6:26 pm    Post subject: Reply with quote

Can you be a little more specific on where I should check my settings?
The only thing I found which can resemble a settings tab was Tools>Options.
Couldn't find anything there regarding Multi-Bytes.
Edit: Is it possible to just reinstall these "tools", and not the whole VS?

_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
Back to top
View user's profile Send private message MSN Messenger
BirdsEye
Advanced Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 94

PostPosted: Fri Jan 02, 2009 6:34 pm    Post subject: Reply with quote

Odecey wrote:
Can you be a little more specific on where I should check my settings?
The only thing I found which can resemble a settings tab was Tools>Options.
Couldn't find anything there regarding Multi-Bytes.
Edit: Is it possible to just reinstall these "tools", and not the whole VS?


In Solution Explorer, left click your project file and select 'Properties', the last option. The project file should be right below your solution file. Now under 'Project Defaults' there should be a drop down list to the right of 'Character Set.' You now (obviously) pick 'Use Multi-Byte Character Set.'
Back to top
View user's profile Send private message
Odecey
Master Cheater
Reputation: 1

Joined: 19 Apr 2007
Posts: 259
Location: Scandinavia

PostPosted: Fri Jan 02, 2009 7:09 pm    Post subject: Reply with quote

Thanks to both of you, that solved the problem ^_^.
_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites