I'm building a class to instantiate a JScript/Edge JS runtime which should be compatible with both VBA and VB6 etc.
My project can be found here.
The only current issue I'm getting an error on
The error I am getting seems to be an argument error, and thus I suspect I've misunderstood something about how to declare the functions...Code:Private Declare Function IECreateRuntime Lib "jscript9.dll" Alias "JsCreateRuntime" (jsRuntimeAttributes As Integer, jsRuntimeVersion As Long, JsThreadServiceCallback As LongPtr, jsRuntimeHandle As Any) As Long Private Declare Function EdgeCreateRuntime Lib "chakra.dll" Alias "JsCreateRuntime" (jsRuntimeAttributes As Integer, JsThreadServiceCallback As LongPtr, jsRuntimeHandle As LongPtr) As Long '... retl = IECreateRuntime(0, -1, 0, VarPtr(pRuntime)) 'KEEP GETTING ERRORS? '... and ... retl = EdgeCreateRuntime(0, 0, VarPtr(pRuntime)) 'KEEP GETTING ERRORS?
The documentation for calling these functions can be found here:
https://docs.microsoft.com/en-us/mic...ntime-function
Any ideas?




Reply With Quote
