lian / msfs2020-go

connect to microsoft flight simulator 2020 using golang
MIT License
388 stars 57 forks source link

Can't find SimConnect.dll #1

Closed CyrilPaulus closed 3 years ago

CyrilPaulus commented 3 years ago

I have to following error when trying to launch vfrmap.exe

`panic: Failed to load D:\SimConnect.dll: The specified module could not be found.

goroutine 1 [running]: main.main() /users/lian/prj/go/lian/msfs2020-go/vfrmap/main.go:76 +0x88b`

Raging-Beard commented 3 years ago

Strange, for me when I run the exe, SimConnect.dll is created. That is to say, vfrmap.exe is the only file in the folder, upon running it, SimConnect.dll then also appears in the folder.

lian commented 3 years ago

yea, vfrmap.exe looks for SimConnect.dll in your current folder, and otherwise auto creates it. my only guess for your issue might be a permission issue on your D:\ top level folder and doesn't allow vfrmap.exe to auto create SimConnect.dll.

try to move the vfrmap.exe to a different folder. maybe for a test simply to your desktop folder.

CyrilPaulus commented 3 years ago

When I run vfrmap.exe I see that the SimConnect.dll is created but I still have this message.

I tried in different folder and they all have the correct access rights. I tried running it with an admin cmd, and still it won't work.

lian commented 3 years ago

@CyrilPaulus sorry, i'm unable to reproduce this. and don't have enough windows knowledge how best to debug this. have you tried on your C: disk?

please report back if you figure out this issue, or maybe someone else does.