Awards: July DOTM Results
The winner of the July 2006 Download of the Month is none other than not Mr. None, but cypry! His DinkC Editor kicked Mr. None's nonexistant behind with 100% of the votes. Congratulations.
Only a single vote?
-edit
I can modify this post as well, but I won't.
-edit
I can modify this post as well, but I won't.
How is that possible when I voted for None
I just looked up the votes, and it doesn't have a record of you voting. Are you sure you voted None for the July DOTM, and not the June DOTM (which was just a week before?)
Thanks. I already started to work on the 1.1 version, which will be MDI. I also want to improve a few things, and I know there are people here(yes, redink1, I'm thinking of you) that know the answer to my questions:
1. How do I add the option that set my program the default application for .c files?
2. How do I use another language procedures in a program(I want to include Compress.c from the Dink source in a Delphi application)?
Please help.
1. How do I add the option that set my program the default application for .c files?
2. How do I use another language procedures in a program(I want to include Compress.c from the Dink source in a Delphi application)?
Please help.
There's HKEY_CLASSES_ROOT in the registry, with which you can setup the file's type to show in the explorer. I'm searching through regedit now for the place with the keys that determine which program to open these files with.
EDIT: http://www.codeguru.com/vb/gen/vb_system/directoriesandfiles/article.php/c4837/#more might help.
EDIT: http://www.codeguru.com/vb/gen/vb_system/directoriesandfiles/article.php/c4837/#more might help.
2. I'm not sure. You could just call the compress.exe program with an exec-type statement instead of including the code.
Yeah that sounds about right redink
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?
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?
I have no experience with Delphi, but are you making sure you get the %1 application or whatever?
I managed to fix it. The problem was the registry key:
I had to write:
"<application path>""%1"
instead of
"<application path>"%1
Without double-quotes for %1, the ParamStr(1) were only until the first space.
Now it works fine. If someone wants to beta-test this new version, I'd be gratefull. If not, I'll release it in a few days.
I had to write:
"<application path>""%1"
instead of
"<application path>"%1
Without double-quotes for %1, the ParamStr(1) were only until the first space.
Now it works fine. If someone wants to beta-test this new version, I'd be gratefull. If not, I'll release it in a few days.
I'll gladly look at it for you. I'm a computer nerd so I love beta-testing. Hell, I even love doing alpha testing.