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 


when compiling do i need to?

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

Joined: 22 Apr 2008
Posts: 33

PostPosted: Thu Nov 20, 2008 7:26 am    Post subject: when compiling do i need to? Reply with quote

hi,

when compiling a dll in vs2008 for win32 project, do i need to set what operating system to compile for?

the default in win98, vista, windows and how can i find the version number and add to the list? i would like to compile a dll to run in windows xp x64.

thanks alot
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Nov 20, 2008 10:37 am    Post subject: Reply with quote

Set the linker subsystem option to Windows, and use the /DLL switch if you aren't already.

The dll will be fine on x64, you can't inject it to 64 bit processes, but it will be fine on 32 bit ones.
Back to top
View user's profile Send private message
andonrui
Cheater
Reputation: 0

Joined: 22 Apr 2008
Posts: 33

PostPosted: Thu Nov 20, 2008 11:45 am    Post subject: Reply with quote

i mean this from targetver.h

#pragma once

// The following macros define the minimum required platform. The minimum required platform
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
// your application. The macros work by enabling all features available on platform versions up to and
// including the version specified.

// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER // Specifies that the minimum required platform is Windows Vista.
#define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0.
#define _WIN32_IE 0x0700 // Change this to the appropriate value to target other versions of IE.
#endif

i compiled everything and i use an external dll viewer to check and it shows my dll did export the functions correctly but when i try to dllcall, it just wont work so i was wondering if its the above?
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