The Dink Network

Reply to Re: Awards: July DOTM Results

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 16th 2006, 02:48 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
That's what I did before. I used the ShellExecute function. I didn't like to do that, because it called an external program, and the eventual errors couldn't be handled by my application. Now, I managed to solve this: I created a .dll from Compress.c, using C++ Builder, and use it in my application. It works. I also managed to do the registry thingy.
Now, a weird bug occured: when I start my program from command prompt, with a script as a parameter, or just drag the script into it, from windows explorer, it works fine. But when I try to open a script directly(after DinkCEditor has been set as default application), ParamStr(1) won't work anymore. The weird thing is that it worked fine in these conditions in the old version. Any sugestions?