| View previous topic :: View next topic |
| Author |
Message |
andonrui Cheater
Reputation: 0
Joined: 22 Apr 2008 Posts: 33
|
Posted: Thu Nov 20, 2008 7:26 am Post subject: when compiling do i need to? |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Nov 20, 2008 10:37 am Post subject: |
|
|
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 |
|
 |
andonrui Cheater
Reputation: 0
Joined: 22 Apr 2008 Posts: 33
|
Posted: Thu Nov 20, 2008 11:45 am Post subject: |
|
|
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 |
|
 |
|