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 


void dosen't

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Sep 18, 2008 2:55 pm    Post subject: void dosen't Reply with quote

return a value.
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Thu Sep 18, 2008 3:35 pm    Post subject: Reply with quote

Code:
void main(void) {
   _asm mov eax, 69
}


Debugger says: The program '[4556] testset.exe: Native' has exited with code 69 (0x45).

Run this:
Code:
#include <iostream>

void *function(void) {
   _asm mov eax, 700
}

int main(void) {
   std::cout << (int)function();

   std::cin.sync(); std::cin.ignore();
   return 0;
}


Doesnt really treat it like a function, but you get the idea. void is part of the language not computer.
Back to top
View user's profile Send private message MSN Messenger
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Thu Sep 18, 2008 6:51 pm    Post subject: Reply with quote

Why would void need to return anything? That's the point of void...
Back to top
View user's profile Send private message
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Fri Sep 19, 2008 1:59 am    Post subject: Reply with quote

Void is a typecast. just like an int and uint is. All in all they are just words, dwords or qwords.
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
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