For some reason, everything works... apart from the first line (the Symantec one).
Does anyone know how I can get that to work?
I used to use the system command, this works, however shows the command-prompt window (until it exits);
system("\"\"%ProgramFiles%\\Symantec\\LiveUpdate\\LUALL.exe\"\"");
Please tell me what needs to be done in order to stop the command-prompt window from opening, incorporate an icon & get the LiveUpdate program to load with ShellExecute.
Thanks in advance,
Panarchy
Panarchy
April 22nd, 2009, 07:57 AM
Hello Everyone.
Thanks for all your help over the topics.
Here's an update;
I fixed the command-prompt window from appearing by installing Code::Blocks on an XP virtual machine, creating a new project (Win32 GUI) with Dialogue Based (or something).
As far as I can tell, all this added was a #include "resource.h" line.
I have also gotten the %programfiles% thing fixed up as well.
One final question, how do I give the program an icon within Code::Blocks?
Please reply.
Thanks in advance,
Panarchy
Panarchy
April 22nd, 2009, 04:33 PM
The first icon in your resource file will be used as the icon of the executable. You'll have to create your resource file manually though, AFAIK Code::Blocks does not have a dialog for it like Dev-cpp. It's not extremely hard, just put something like this in it:
MY_ICON ICON "my_icon.ico"
The first word is the name of the icon (not important unless you want to refer to it in your code), the second word indicates it's an icon and then comes the name of the file to use.
8)
That worked for me!
SWEET - My project has been perfected!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.