09-04-2013 11:03 PM
refer to below picture, it is used to call WinAPI for screen shot, and then save to PNG file. This Vi run normally on the development flatform, but it is failed when build .exe application file. The error dialog pop-up "illegal path string, OS", but it is clear that the path is correct. Note: run the same PC with Win XP.
Home--colinzhang.net: My Blog
Solved! Go to Solution.
09-05-2013 12:24 AM
Can you attach the screenshot of error dialog that pops up...!!
09-05-2013 12:30 AM
Thanks for your reply. Yes, but it is Chinese. I also put the dialog location here.
Home--colinzhang.net: My Blog
09-05-2013 12:33 AM
When i put the dialog before Write PNG File, no error output.
Home--colinzhang.net: My Blog
09-05-2013 10:16 PM
Update:
i have found the reason but no solution. In fact, the Clipboard.Get Image is not working when build exe application. But this is the private Invoke Node, can't get any support from NI.
It seems to become to the public Invoke Node on LabVIEW 2012 version, who can help to verify it on LV2012 version? Thanks very much.
Home--colinzhang.net: My Blog
10-11-2013 02:20 AM
I have lv2012 and it does not work here either.
Has anyone found a solution?
10-11-2013 04:09 AM
No, it seems a bug that has reported to NI R&D.
Home--colinzhang.net: My Blog
10-11-2013 04:12 AM
oooh, Yes, I change to use .Net reference to copy the screenshot. Please visit my blog site for solution.
Home--colinzhang.net: My Blog
10-11-2013 04:35 AM
Thx man 😃
12-31-2013 12:08 AM
I find another solution that get the clipboard image. Hope it is helpful for next follower.
Use the IMAQ ClipboardToImage.vi under vision module, it can get the image successfully, but not verify it after build executable file.
Refer to below code,
Home--colinzhang.net: My Blog