Sign in to follow this  
Followers 0
ABlock

Unicode/ANSI Compiling Trouble

1 post in this topic

Hi everyone,

I am working on a script that should be compatible with 98/Me/2000/XP but I cannot test it on 98/Me, so I'm pretty much in the dark.

The compiled executable should launch Media Player Classic, which is present in the same directory (mplayerc98me.exe and mplayerc2kxp.exe).

The 98/Me version works on all systems, but only the 2K/XP version supports unicode.

Any commandline parameters given to the launcher should be passed on to the player.

The code seems simple...

If @OSTYPE = "WIN32_WINDOWS" Then
    Run("mplayerc98me.exe" & " " & $CmdLineRaw)
ElseIf @OSTYPE = "WIN32_NT" Then
    Run("mplayerc2kxp.exe" & " " & $CmdLineRaw)
Else
    Exit
EndIf

...but I don't know how I should compile it. Using unicode I would lose downwards compatibility, using ANSI the unicode characters in the commandline parameters would probably get corrupted.

Is it possible at all to execute the correct player and keep unicode parameters with just a single launcher?

Thank you!

Regards, ABlock

P.S.: I'm not aiming for playing a unicode file on 98/Me here, I just want the best possible solution by using the same executable on every system.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0