Hi,
my app is non-unicode (because I use Gnozal`s PurePop3).
Now I want to use a commandline-tool (with RunProgram()) -> but that tool works only in Unicode-Mode.
I didn`t know, that running a unicode-commandline-app with RunProgram() must be compiled in Unicode-Mode...
Is there something, I can do?
br and thx
Do "Non-Unicode apps" only work with "encoding Plain text"?
Do "Non-Unicode apps" only work with "encoding Plain text"?
Last edited by Marco2007 on Sat Dec 18, 2010 10:07 am, edited 2 times in total.
PureBasic for Windows
Re: Non-Unicode app -> Can I use Runprogram() in Unicode?
Peeks() & PokeS() could work for you, they have flags that should let you translate the strings.
The best preparation for tomorrow is doing your best today.
Re: Non-Unicode app -> Can I use Runprogram() in Unicode?
I think this should work:
Greetings - Thomas
Code: Select all
Import "shell32.lib"
ShellExecuteW(hwnd.i, lpOperation.p-Unicode, lpFile.p-Unicode, lpParameters.p-Unicode, lpDirectory.p-Unicode, nShowCmd.i)
EndImportRe: Non-Unicode app -> Can I use Runprogram() in Unicode?
I don't see why RunProgram() shouldn't work for you. You can run a unicode program with it (from an ascii program).
Re: Non-Unicode app -> Can I use Runprogram() in Unicode?
do you only need to run the tool or do you need to read output/ write input?
Re: Non-Unicode app -> Can I use Runprogram() in Unicode?
Code: Select all
RunProgram("tiff2pdf.exe", "−o "+output$+" "+input$, "")http://www.libtiff.org/
That`s what I thought, too...You can run a unicode program with it (from an ascii program).
@Thomas: -> also just works, only when Unicode is on...
@KJ67: Let me try...
Last edited by Marco2007 on Fri Dec 17, 2010 11:33 pm, edited 1 time in total.
PureBasic for Windows
Re: Non-Unicode app -> Can I use Runprogram() in Unicode?
Maybe output$ or input$ contains unicode characters? If the filenames contain unicode characters it won't work in ascii mode.Marco2007 wrote:works only, when I compile in Unicode-mode.Code: Select all
RunProgram("tiff2pdf.exe", "−o "+output$+" "+input$, "")
http://www.libtiff.org/
Re: Non-Unicode app -> Can I use Runprogram() in Unicode?
@Trond:
F:\MailBB\IMAGE000.TIF
F:\MailBB\IMAGE000.PDF
....I`m so sad
F:\MailBB\IMAGE000.TIF
F:\MailBB\IMAGE000.PDF
....I`m so sad
PureBasic for Windows
Non-Unicode apps have to be compiled with "encoding Plain te
Changed Encoding UTF-8 to Encoding Plain Text -> now it works.
Do "Non-Unicode apps" only work with "encoding Plain text" (even when there are no Unicode-chars in the code)?
-> changed Topic-Title.
Do "Non-Unicode apps" only work with "encoding Plain text" (even when there are no Unicode-chars in the code)?
-> changed Topic-Title.
PureBasic for Windows

