Need help launching

Posts 110 of 10 · Page 1 of 1
Need help launching
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.
try
Code:
Shell "C:\Nexon\Combat Arms\CombatArms_Direct.exe"
Woops My Code Was For VB.NET Not C++ Srry :S
Off Topic:

CodeDemon Go Visit Your Visitor Messages I Need Your Help...
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"http://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]
[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]
Lol i Thanks to all.. i can feel it almost there..

Now it says
Code:
Error	1	error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
.. Any help please?
Quote Originally Posted by SpongeBox View Post
Lol i Thanks to all.. i can feel it almost there..

Now it says
Code:
Error	1	error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
.. Any help please?
use
[php]ShellExecuteA(NULL, "open", "C:\\Nexon\\Combat Arms\\CombatArms_Direct.exe", NULL, NULL, SW_SHOWNORMAL);[/php]
Quote Originally Posted by Timboy67678 View Post
use
[php]ShellExecuteA(NULL, "open", "C:\\Nexon\\Combat Arms\\CombatArms_Direct.exe", NULL, NULL, SW_SHOWNORMAL);[/php]
OMG THANK YOU!! I WISH I CAN THANK YOU LIKE BILIGAZILLION TIMES!!!
Posts 110 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?