Results 1 to 8 of 8
  1. #1
    zatchbell3's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    186
    Reputation
    14
    Thanks
    47
    My Mood
    Amazed

    Omg,Stupid Shit,C++,Opening MPGH

    Well,i used to be always with vb 2008 but now ive upgraded to C++ and for some reason this stupid thing isnt working,VB2008 is cool and easy but im useing C++ now
    im making a multitool

    im trying to open mpgh in the default webbrowser which i tohught would be


    Code:
    system("start http://mpgh.net");
    but when i do i get this error


    Code:
    1>------ Build started: Project: CombatArmsMulti-Tool, Configuration: Debug Win32 ------
    1>  CombatArmsMulti-Tool.cpp
    1>c:\users\zatchbell32505\desktop\program1\combatarmsmulti-tool\combatarmsmulti-tool\Form1.h(106): error C3861: 'system': identifier not found
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    How do i make this "Indentifier" Found?



    EDIT:

    Also i used
    Code:
    ShellExecute(NULL, "open", "http://www.mpgh.net",
    			NULL, NULL, SW_SHOWNORMAL);
    and got even more errors
    Last edited by zatchbell3; 01-10-2011 at 05:35 AM.

  2. #2
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Shellapi.h for shellexecute and if u need to include library: Shell32.lib

    system is a console function, will not work on dlls(into a .dll 'system("PAUSE")'?)
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  3. #3
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    system is console command /\
    Last edited by LionelMessi10; 01-10-2011 at 06:11 AM.

  4. #4
    MrSkafighter's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    410
    Reputation
    23
    Thanks
    2,236
    My Mood
    Cool
    If you use

    Code:
    ShellExecute(NULL, "open", "http://www.mpgh.net", 
    NULL, NULL, SW_SHOWNORMAL);
    You must put #define <windows.h> or maybe you didn't add the sdk file "include" and "lib x86 or x64" i think.
    Last edited by MrSkafighter; 01-10-2011 at 06:16 AM.

  5. #5
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    Quote Originally Posted by MrSkafighter View Post
    If you use

    Code:
    ShellExecute(NULL, "open", "http://www.mpgh.net", 
    NULL, NULL, SW_SHOWNORMAL);
    You must put #define <windows.h> or maybe you didn't add the sdk file "include" and "lib x86 or x64" i think.
    Why include libs ? Hes coding an app not a dll i guess.

    Thanks Cosmos


  6. #6
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    do you know the basics?

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  7. #7
    MrSkafighter's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    410
    Reputation
    23
    Thanks
    2,236
    My Mood
    Cool
    Quote Originally Posted by kongamonga View Post
    Why include libs ? Hes coding an app not a dll i guess.
    Lol i don't know i just said.

  8. #8
    CABR_F371P3's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    18
    My Mood
    Psychedelic
    Code:
    #include <stdlib.h>
    #include <stdio.h>
    And no make no more stupids questions like this.