Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hShowWindows未声明或为赋值错误;invoke错误 #11

Open
phhh-xh opened this issue Apr 27, 2023 · 5 comments
Open

hShowWindows未声明或为赋值错误;invoke错误 #11

phhh-xh opened this issue Apr 27, 2023 · 5 comments

Comments

@phhh-xh
Copy link

phhh-xh commented Apr 27, 2023

你好,问题如下,这两个报错是什么原因啊
3

1

@jiaowomomo
Copy link
Owner

你好,问题如下,这两个报错是什么原因啊 3

1

目前我看不出具体原因,暂时猜测引用的DLL没有编译完全或halcondotnet.dll的X86和X64对应不上的可能性比较大。
如果有需要解决的问题,您可以加一下我的QQ

@phhh-xh
Copy link
Author

phhh-xh commented Apr 28, 2023

985903252 这是我的qq麻烦加一下

@jiaowomomo
Copy link
Owner

985903252 这是我的qq麻烦加一下

已申请

@phhh-xh
Copy link
Author

phhh-xh commented Apr 28, 2023

#10 关于这个问题回复的代码有点问题,下面代码验证过可以复制

if exist "$(ProjectDir)..\Calibration" (
robocopy /e /np /njh /njs /ndl /nc /ns /ts "$(ProjectDir)..\Calibration" "$(TargetDir)\Calibration")
if exist "$(ProjectDir)..\CameraDLL" (
robocopy /e /np /njh /njs /ndl /nc /ns /ts "$(ProjectDir)..\CameraDLL" "$(TargetDir)\CameraDLL")
if exist "$(ProjectDir)..\ExternTool" (
robocopy /e /np /njh /njs /ndl /nc /ns /ts "$(ProjectDir)..\ExternTool" "$(TargetDir)\ExternTool")
if exist "$(ProjectDir)..\MotionCardDLL" (
robocopy /e /np /njh /njs /ndl /nc /ns /ts "$(ProjectDir)..\MotionCardDLL" "$(TargetDir)\MotionCardDLL")
if exist "$(ProjectDir)..\ThirdPartyDLL\halcon.dll" (
copy /Y "$(ProjectDir)..\ThirdPartyDLL\halcon.dll" "$(TargetDir)")
)
)
)
)
)

@phhh-xh
Copy link
Author

phhh-xh commented Apr 28, 2023

如图,将hShowWindow1在WindowForm构造函数中赋值,然后添加到控件中,可以解决。
1
2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants