Calling DLL From powershell

-1

My dll is a MFC build viusal studio like the dll system. I don't undestand why this message appair. Le script poweshell it's in the same directory and all dependences.

I have found this on the network

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/add-type?view=powershell-6

https://devblogs.microsoft.com/scripting/use-powershell-to-interact-with-the-windows-api-part-1/

My DLL exports a function with this profile it is developed under Visual studio 2019

BOOL Root::Run (int argc, LPCTSTR argw)

At the runtime I get following during the "Run" call with "2" arguments:

Attemptton load an incorrect format program. (HRESULT exception: 0x8007000B) ยป To the character Line:12: 1

Can someone explain what the error means?

dll
call
asked on Stack Overflow Dec 23, 2019 by G3D • edited Dec 23, 2019 by ascripter

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0