Lol just make a shortcut on your desktop or Process.start("Combatarms.exe")
somthing like that..
Hey i need help launching the game lol im using Microsoft visual studio and how can make a press of a button start combat arms??... This is really starting to piss me off im using C++..
Lol just make a shortcut on your desktop or Process.start("Combatarms.exe")
somthing like that..
1. Located Combat Arms folder
2. Run Combat Arms.
tryWoops My Code Was For VB.NET Not C++ Srry :SCode:Shell "C:\Nexon\Combat Arms\CombatArms_Direct.exe"
Off Topic:
CodeDemon Go Visit Your Visitor Messages I Need Your Help...
Last edited by austen407; 10-20-2010 at 02:43 PM.
SpongeBox (10-20-2010)
Alright so.. i double click to edit the program.. and it says
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
}
in the curley brackets, what am i supposed to put?... i have another button redirecting to a website..
Code:private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) { this->webBrowser1->Url = (gcnew System::Uri(L"https://Google.com", System::UriKind::Absolute)); }
OMG!!!! You guys are nubs.... try this [php]system("C:\\Nexon\\Combat_Arms\\ComabatArms_Direct .exe");[/php]
AND put this at beggining
[php]#include <Windows.h>[/php]
]This will be my future MPGH user name
[MPGH]pikamew4
w000tttt!!!!!
2doo-list
{become a mod on mpgh}[]
{become admin on MPGh}[]
{be kicked from combat arms}[]
{make a private VIP hack with telekill for myslf}mad:
{meet Dave on MPGH}[]
{learn c++}
{become a newb on MPGH}[]
{become a member on MPGH}[]
{**** up my profile with a lame picture}[]
-------------------------------
Starting PHOTOSHOP CS5
[IMG]https://i1141.photobucke*****m/albums/n593/pikamew4/MPGH.jpg?t=1286152941[/IMG]
Status: Working On Pub menu hack with OPK 0_o!!
SpongeBox (10-20-2010)
[php]ShellExecute(NULL, "open", "C:\\Nexon\\Combat Arms\\CombatArms_Direct.exe", NULL, NULL, SW_SHOWNORMAL);[/php]
u will need the header file and the library.
[php]#include <Shellapi.h>
#pragma comment(lib,"Shell32.lib")[/php]
SpongeBox (10-20-2010)
Lol i Thanks to all.. i can feel it almost there..
Now it says.. Any help please?Code:Error 1 error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
Last edited by SpongeBox; 10-20-2010 at 03:57 PM.
SpongeBox (10-21-2010)