Results 1 to 24 of 24

Thread: How to use a _declspec(dllexport) in VB6?

Threaded View

  1. #18

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: How to use a _declspec(dllexport) in VB6?

    Quote Originally Posted by baka View Post
    why is this not automatic when using directx?
    this NvOptimusEnablement is only working when directx is used right? maybe also d2d?

    The trick created the typelib for directx9 and direct2d, is it not possible to add NvOptimusEnablement in those typelibs?
    Yes baka, it's only when a graphics library is used such as DirectX, OpenGL, or Vulkan. This one line of code taps into the GeForce part of your NVidea GeForce video card, unleashing superb speed.

    Anyway I have all the GeForce tests here. Both their methods, and my C++ app. Unfortunately I could not include the DirectXTK part of my C++ app cause it was 158 megabytes, so that you would have to do manually using Project > Manage NuGet Packages... and add directxtk_desktop_2015

    [EDIT] I found a hint in post #2 and #3 of here:
    https://groups.google.com/forum/#!to...ts/7OHZcXUegF0

    There is a bunch of symbols within the library "C", NvOptimusEnablement being one of them. I'm assuming Visual Studio automatically includes this in any C++ project. And that could potentially have something to do with it.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width