中華大帝
中華大帝

Reputation: 1

About program export variables

The graphics card manufacturer has an optimization scheme. The following variables are exported from the program, and the program will be executed with an independent graphics card. For the program compiled by the new version of the bcc compiler, the exported variables are prefixed with an underscore, and the -vu parameter is not supported. I don't know how to solve this.

// http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
// The following line is to favor the high performance NVIDIA GPU if there are multiple GPUs
// Has to be .exe module to be correctly detected.
extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;

// And the AMD equivalent
// Also has to be .exe module to be correctly detected.
extern "C" __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 0x00000001;

bcc32 old version

image

bcc32c new version

image

Upvotes: 0

Views: 90

Answers (0)

Related Questions