[WP34S] New GUI features
|
01-02-2016, 11:26 AM
(This post was last modified: 01-02-2016 12:28 PM by fhub.)
Post: #2
|
|||
|
|||
RE: [WP34S] New GUI features
(01-01-2016 10:56 PM)Marcus von Cube Wrote: I've enhanced the classic Windows GUI application with new menu choices:Great new features, Marcus - many thanks! There's only one small problem - importing only works when Perl is installed, i.e. when using wp34s_asm.pl as compiler. I'm using wp34s_asm.exe instead (not the Perl version), and so I get an error message that ".pl is not associated with any program". What I understand from your sources (in storage.c) it should try it again with wp34s_asm.exe (if wp34s_asm.pl fails), but it doesn't work - here's your code: Code:
Of course I could solve the problem by patching the wp34sgui.exe, but I think it would be better to solve this problem in the sources (especially because I'm sure that most Windows users would rather use the EXE version of wp34s_asm than the PL version). I guess the easiest fix would be to just swap the order of ".pl" and ".exe", i.e. first try assembling it with the EXE version, and if that fails then using the PL version. A second method would be to first check if wp34s_asm.exe exists in the folder stated in wp34s.ini, and if yes then use it - if not then use the .pl version. And a third method: the user could specify directly in wp34s.ini which assembler should be used, i.e. not only enter the folder but even the complete porgram, e.g. "..\tools\wp34s_asm.exe". But my first suggestion (i.e. trying ".exe" first) is certainly the most simple way. Edit: I've now tried it with swapped ".exe" and ".pl", and now users which only have the PL version would have problems, because if the wp34s_asm.exe does NOT exist, the while-loop is also NOT repeated with ".pl". So I guess it would indeed be the best to check for the existence of wp34s_asm.exe and wp34s_asm.pl, and use the one that in fact exists in the ..\tools folder. Franz |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)