Quote Originally Posted by Jacob Roman View Post
The question is, how can I write extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; } in VB6?
One way would be to just compile this C/C++ snippet to an .obj file and then use LinkSwitches in the project .vbp to add it to the final executable.

(Perhaps someone here can provide a zipped project with all steps above set up for you.)

cheers,
</wqw>