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.
Solved! Go to Solution.
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.
I have lv2012 and it does not work here either.
Has anyone found a solution?
oooh, Yes, I change to use .Net reference to copy the screenshot. Please visit my blog site for solution.
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,