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 


Question For Hex
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Mon Nov 26, 2007 8:07 pm    Post subject: Reply with quote

Oh ok lol
Pretty complex for changing back o.o

_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Nov 26, 2007 8:16 pm    Post subject: Reply with quote

Cause VB is too dumb to do a function to convert... So put it into a class and ur good.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Tue Nov 27, 2007 1:41 am    Post subject: Reply with quote

Just use Val()

For example:

Code:
Text1.Text = Val(&HA1)


Would give you: 161

And for converting another textboxes value:

Code:
Text1.Text = Val("&H" & Text2.Text)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Tue Nov 27, 2007 9:02 am    Post subject: Reply with quote

In C(++) there's no need to convert the numbers into hex (if they're int, not strings). This should apply to all "advanced" programming languages at least.

C++ example:
Code:
#include <iostream>

int main(int argc, char **argv)
{
   int number1 = 712366; // Dec 
   int number2 = 0x12355; // Hex
   std::cout << std::hex << number1 << std::endl;
   std::cout << std::dec << number2 << std::endl;
   return EXIT_SUCCESS;
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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