设置首页收藏本站
123
返回列表 发新帖
开启左侧

HSmartWindowControl使用问题,急急急!

[复制链接]
zzzkiti 发表于 2021-4-20 19:26:06 | 显示全部楼层
需要hcanvas.dll这个文件在运行目录下
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
大凡光学,专注标定板提供
yangdashi 发表于 2021-6-4 12:29:13 来自手机 | 显示全部楼层
基目录里面少了一个hcanvas.dll,我把这个dll放进基目录里面就好了
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Evgeniy 发表于 2021-8-3 19:12:00 | 显示全部楼层
Hi, colleagues!

It is pitty, but copy-paste of %HalconRoot%\...\*.dll(s) is not working for Halcon 18.

Operator DrawXld for HSmartWindowControl is not working.

Do you have any other solution of this problem?
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
绝地武士 发表于 2021-8-3 20:04:42 | 显示全部楼层
Evgeniy 发表于 2021-8-3 19:12
Hi, colleagues!

It is pitty, but copy-paste of %HalconRoot%\...\*.dll(s) is not working for Halcon  ...

Try non-interactive drawing object?the procedures like create_drawing_object_*?
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Evgeniy 发表于 2021-8-3 20:08:41 | 显示全部楼层
Hi, Jedi Knight!

Thank you for your answer.

Yes,

HDrawingObject rect2 = HDrawingObject.CreateDrawingObject(HDrawingObject.HDrawingObjectType.RECTANGLE2, 100, 100, 0, 200, 100);

It is working! But I need to create Xld contour mannually - point by point.

And second feature: Halcon allows to use Shift button for Rotating and Scaling of current contour, and also Ctrl button for Deleting last added point of current contour.
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Evgeniy 发表于 2021-8-3 20:10:55 | 显示全部楼层
I just need to draw any Xld-contour without freezing of HSmartWindowControl.

How to make it? I broke my head.
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
laihuaxun2004 发表于 2022-3-26 21:53:20 | 显示全部楼层
Evgeniy 发表于 2021-8-3 20:10
I just need to draw any Xld-contour without freezing of HSmartWindowControl.

How to make it? I brok ...

HSmartWindowControl does not support Draw_* operators
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Yanlf 发表于 2023-12-13 10:41:19 | 显示全部楼层
yuan_aoi 发表于 2019-6-28 08:53
在运行目录下放上halcon.dll, halcondotnet.dll, hcanvas.dll就可以了,我也折腾了好久才解决这个问题。
...

也放了,但是还是提示
“HalconDotNet.HOperatorException”类型的未经处理的异常在 halcondotnet.dll 中发生

其他信息: HALCON error #5104: Device or operator not available in operator draw_line
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Yanlf 发表于 2023-12-13 10:42:36 | 显示全部楼层
yangdashi 发表于 2021-6-4 12:29
**** 作者被禁止或删除 内容自动屏蔽 ****

“HalconDotNet.HOperatorException”类型的未经处理的异常在 halcondotnet.dll 中发生

其他信息: HALCON error #5104: Device or operator not available in operator draw_line

还是报错
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
hsrmlt 发表于 2024-8-12 09:11:45 | 显示全部楼层
我也遇到这个问题,不过解决了,要把Any CPU框架改为x64框架
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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