大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索
打印 上一主题 下一主题

Vb.net(Win) 错误RawPrinterHelper OpenPrinter has unbalanced the stack

[复制链接]
跳转到指定楼层
1#
发表于 2012-4-18 22:35:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
教学-如何How to send raw data to a printer by using Visual Basic .NET
http://support.microsoft.com/kb/322090

打印错误RawPrinterHelper::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.

Don't use this:
别用

Public Shared Function OpenPrinter(ByVal src As String, ByRef hPrinter As IntPtr, ByVal pd As Long) As Boolean

Use:
请用

Public Shared Function OpenPrinter(ByVal src As String, ByRef hPrinter As IntPtr, ByVal pd As IntPtr) As Boolean

手机版|大马资讯论坛  

GMT+8, 2024-4-24 11:18 , Processed in 0.040099 second(s), 12 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表