i need help im new to c++
i mean for example i press a button and firefox opens whats the command to open firefox.exe
visual basic 2008 is "process.start ("Firefox.exe")"
btw i have cpp 2008
i need help im new to c++
i mean for example i press a button and firefox opens whats the command to open firefox.exe
visual basic 2008 is "process.start ("Firefox.exe")"
btw i have cpp 2008
Last edited by Stelthkid; 08-21-2009 at 06:59 PM.
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.
Be more specific? Like a lot more specific. What exactly do you need help with? What kind of help are you looking for? Rather, what do you mean how to open a program in c++?
Last edited by zeco; 08-21-2009 at 12:15 PM.
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.
If you mean you want to see the source code of an already compiled application, that's not what C++ compilers are for.
tyvm ill try this and ill get bak to u kk
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.
it wont work send me a pic of it
fkin oops
its not a cmd its a application with buttons if thats wot your telling me
Last edited by Stelthkid; 08-21-2009 at 08:07 PM. Reason: double post sorry
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.
ill attach some pics kk
and can u show me a tut
bottom left hand corner where your thing is
thats the whole thingCode:#pragma once namespace firstattempt { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// <summary> /// Summary for Form1 /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// </summary> public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) { InitializeComponent(); // //TODO: Add the constructor code here // } protected: /// <summary> /// Clean up any resources being used. /// </summary> ~Form1() { if (components) { delete components; } } private: System::Windows::Forms::Button^ button1; protected: private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components; #pragma region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> void InitializeComponent(void) { this->button1 = (gcnew System::Windows::Forms::Button()); this->SuspendLayout(); // // button1 // this->button1->Location = System::Drawing::Point(0, 0); this->button1->Name = L"button1"; this->button1->Size = System::Drawing::Size(409, 61); this->button1->TabIndex = 0; this->button1->Text = L"button1"; this->button1->UseVisualStyleBackColor = true; this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click); // // Form1 // this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; this->ClientSize = System::Drawing::Size(408, 191); this->Controls->Add(this->button1); this->Name = L"Form1"; this->Text = L"Form1"; this->ResumeLayout(false); } #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {system ("c:/program files/mozilla/firefox.exe"); } }; }
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.
well its different for me but do u know yet
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.
Yay!
[php]
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
WinExec("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", SW_SHOW);
}
};
}
[/php]
took me forever to get it to work, then i realised you need double backslash because of the \n e*** type things, and for one backslash you need \\
Last edited by zeco; 08-21-2009 at 09:02 PM.
ty ill try now ohk
grr it has build errors ... whats the x86 thing
Help me raise my Habamon!
Kills.....43781
Deaths.....2124
KDR.....20.61
Streak.....113
HS.....18391
HS%.....40%
GP.....93284
Thank Me If I Helped.