|
-
May 5th, 2020, 12:03 PM
#13
Re: How to use a _declspec(dllexport) in VB6?
Ok guys I'm back. And here is what I found.
Schmidt, _declspec(dllexport) does more than methods. It also does variables. NvOptimusEnablement is a variable, so the Sub Export trick is not gonna work. I even tested it on a sample DX app I made in VB6 years ago and got nothing. No GeForce tab or FPS. Even if that were to be the trick, it would be a function that returns a 4 byte value (DWORD) of &H1. I also tried extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000002; } just for funzies and it does nothing. Only the values of 0x00000001 and 0x00000000 are known from this:
http://developer.download.nvidia.com...ngPolicies.pdf
wqweto, I tried your obj file, and also got nothing. It was an outstanding try though and seemed promising. There is something that is missing. Maybe something Visual Studio 2019's C++ automatically included that VB6 never did. Otherwise why would enabling such a value triggered the GeForce?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|