Error: invalid token: trailing underscore

2021-04-15 Thread rb3
I have this problem in my interop library as well. Right now for symbol names like `_Mesh`, I use `$Mesh` in Nim and replace the `$` with `_` for use with the `importcpp` pragma.

Error: invalid token: trailing underscore

2021-04-13 Thread shirleyquirk
The supported solution is to wrap the ffi class using valid Nim identifiers. Something like `proc SpawnInstance(obj:SWbemObject) {.importc:"SpawnInstance_".}` But I have no clue about winim or windows, even less what that comScript macro does, and this looks like something to file with the main

Error: invalid token: trailing underscore

2021-04-13 Thread timothee
you can't, until we reconsider

Error: invalid token: trailing underscore

2021-04-13 Thread VickiCNolan
rocess.Create("Notepad.exe", nil, objConfig, intProcessID) Run nim c --run test.nim D:\test\test.nim(8, 32) Error: invalid token: trailing underscore How can I solve this problem.

Error: invalid token: trailing underscore

2021-04-13 Thread Yardanico
I'm not on Windows and don't know what does this code do, but trailing underscores are invalid for identifiers. You can try using stropping: import winim/com comScript: const HIDDEN_WINDOW = 12 var strComputer = "." var objWMIService = GetObject(r"wi