gpakosz / whereami

Locate the current running executable and the current running module/library on the file system 🔎
MIT License
472 stars 64 forks source link

Visual Studio giving error of "GetModuleFilenameW undefined"? #25

Closed Jimw338 closed 3 years ago

Jimw338 commented 3 years ago
Not sure anyway can help with this - any ideas why Visual Studio would say that GetModuleFilenameW would be undefined? I'm running V-Studio 2019 on Windows 10, inside Parallels Pro on a Mac. The project is a "default" "Console C++" project, and the source files (somehow) compiled the last time I compiled it a couple months ago. Since then, I reinstalled the Parallels app with a new license, but (as far as I can tell) am using the same virtual machine (the same pvm file). I have no idea what the "version" of V-Studio is. Or *where* it is - at least xCode has an "About" menu item - did that little interface nicety somehow escape MS's UX team? ("Wait - *WHAT* UX team? Oh, they must have been the victim of the Mexican Standoff in the infamous Microsoft Org Chart")
gpakosz commented 3 years ago

Hello @Jimw338 👋

I don't know. GetModuleFileNameW is definitely available in Visual Studio 2019.