Scroll down for my question plz
Printable View
Scroll down for my question plz
anyone, please?
>_<................
As they say, we aren't here to do your work for you, neither we are here just waiting for you to ask something and jump immediatly to help you.
12 minutes after you posted your question you are already calling us useless. tsk!
Good luck solving your problem. We are useless anyhow.
Noo, I'm sorry, I'm just hot, stressed, need a cigarette,and am at a dead wall without this code fixed.., Sorry, you guys rock lol it's just me being a stress head (I'm in the UK it's very very very very very very very very very very very very hot right now)
Please go to the FAQ and research how to open another program from within a program again. There are better ways than system() to do what you want, and this is explained in the FAQ.
NOO, please i really wanna use system :( please
can someone make it work withCode:#include <iostream>
#include <shlobj.h>
#include <shlwapi.h>
#include <windows.h>
using namespace std;
int main()
{
cout<<"Your universe license has expired, contact [email protected] for renewal.\nProvide code 539";
cin.get();
return 1;
}
Please just help me I've read the FAQs, just help plzCode:int main(void)
{
char szPath[] = "C:\\WINDOWS\\system32\\Calc.exe";
HINSTANCE hRet = ShellExecute(
HWND_DESKTOP, //Parent window
"open", //Operation to perform
szPath, //Path to program
NULL, //Parameters
NULL, //Default directory
SW_SHOW); //How to open
/*
The function returns a HINSTANCE (not really useful in this case)
So therefore, to test its result, we cast it to a LONG.
Any value over 32 represents success!
*/
if((LONG)hRet <= 32)
{
MessageBox(HWND_DESKTOP,"Unable to start program","",MB_OK);
return 1;
}
return 0;
}
You edited your previous posts on this thread, effectivelly snuffing the whole context of the thread, and then placed a new post with the original question. Not happy with that you changed the original question to something completely different...
I'll just ignore you from now on
you're a real ........face arn't you, <3 btw do netstat -a notice i'm connected to you via netbios, WOW NICE JOB leaving file and printer sharing on, I shall now leave these forums and browse your hard drive ;D
Ooooooo I think I smell the bandog coming....
If this were my forum... it would have happened already. :)
...and I would have killed his dog for good measure.
son... be quiet and sit down. It will be quick
You are asking to be banned for being a troll that cannot ask for help properly, insults legitimate users, and makes empty threats.Quote:
<3 btw do netstat -a notice i'm connected to you via netbios, WOW NICE JOB leaving file and printer sharing on, I shall now leave these forums and browse your hard drive ;D
Perhaps read the forum rules, a do a google search on how to post to forums. (Try the one in laserlight's signature) If you're not getting the help you want, first, try re-explaining your problem. Then leave, this is a forum, not instant messaging, and the right reply might take some time to come. Simply taking a break will often clear one's mind, and you might solve any problem you have yourself.
Your code snippets work as they should for me. There's no commenting, so I'm not exactly sure what you're intending to happen.
The UK is a good ten degrees cooler than where I am. ;-)