11
Support Questions / Re: AdvancedHMI not correct .NET framework for nugget.
« Last post by paintman on May 10, 2024, 02:16:12 PM »I tried it with the NativeMethods you attached but I am still getting this error:
Could this just be a formatting issue with the form I am using to create the string that will be placed on the label?
Quote
Managed Debugging Assistant 'PInvokeStackImbalance'
Message=Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'AdvancedHMI!MfgControl.AdvancedHMI.NativeMethods::OpenPrinter' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.'
Could this just be a formatting issue with the form I am using to create the string that will be placed on the label?