Winopen does not work on executable
5 次查看(过去 30 天)
显示 更早的评论
Hello everyone, I am trying to make an app and it works fine, but when I compile it to a standalone app winopen() will not work. Any ideas?
I have included the winopen.m during packeging and also used full Path, but still it does not work.
2 个评论
Abderrahim. B
2022-8-8
编辑:Abderrahim. B
2022-8-8
Hi!
what is the format of the file you are trying to open ? and on which operating system you are testing the App?
Thanks
回答(1 个)
dpb
2022-8-8
I've packaged it (winopen) in another app and it works fine. Looking at the above code snippet, I'd hypothesize your problem is that you're not using the fully-qualified filename to open and so it isn't finding the file -- but winopen unfortunately doesn't include any return parameter to report on its success in that regards; you could(*) do an exist on the filename first to ensure it does exist and is found first.
(*) Probably "should" instead of "could" is more appropriate
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!