
Originally Posted by
fatjuicymole
Well, you could use OLE/VBA as Outlook will register a server so it'll load when you access it and then you can have full control over it.
There's also the application registry. For example, if you were to type "outlook", you would find this:
[HKEY_CLASSES_ROOT\applications\OUTLOOK.EXE\shell\o pen\command]
@="\"C:\\Program Files\\Microsoft Office\\Office10\\OUTLOOK.EXE\" \"%1\""
In other words, exactly where "outlook.exe" is stored, and how to run it. There are many other applications here also, which can also be started just by typing there name into the start/run box.
Ok, thanks, I've a path from registry, although not the
[HKEY_CLASSES_ROOT\applications\OUTLOOK.EXE\shell\o pen\command] (i've not a shell\open\command) only for HKEY_CLASSES_ROOT\\Outlook.File.msg\\shell\\Open\\ command,
i've a string:
"C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /a "c:\tomek.txt"
"C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /a "c:\tomek.txt"
To copy to clipboard, switch view to plain text mode
when I'm doing:
QString program
= "\"C:\\Program Files\\Microsoft Office\\Office12\\OUTLOOK.EXE\" /a \"c:\\tomek.txt\"";
myProcess->start(program, arguments);
QString program = "\"C:\\Program Files\\Microsoft Office\\Office12\\OUTLOOK.EXE\" /a \"c:\\tomek.txt\"";
QProcess *myProcess = new QProcess(qApp);
myProcess->start(program, arguments);
To copy to clipboard, switch view to plain text mode
the outlook shows me:
command line argument is invalid
command line argument is invalid
To copy to clipboard, switch view to plain text mode
but when I paste a
"C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /a "c:\tomek.txt"
"C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /a "c:\tomek.txt"
To copy to clipboard, switch view to plain text mode
in start->run It works very fine :/
Bookmarks