Open website with C++ menu

User Tag List

Results 1 to 11 of 11
  1. #1
    snipesh0tz's Avatar Member
    Reputation
    16
    Join Date
    Dec 2007
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Open website with C++

    Hi all,

    Here's a lil code to open a website with C++

    Code:
    #include <windows.h>
    
    int main()
    {
       ShellExecute(NULL, "open", "http://dreamincode.net",
                    NULL, NULL, SW_SHOWNORMAL);
    }
    In combination with this code, u could make a funny virus for your friends

    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    
    {
    // Turns the monitor off
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
    
    // Higher number is longer monitor off.
    Sleep(500);
    
    // Turns monitor on
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);
    
    return 0;
    }
    Tested in Dev C++
    Never forget to help people whenever you can

    Open website with C++
  2. #2
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's not a virus, just an annoyance.

    A virus is self-replicating, that's just 10-15 lines of epic fail.

  3. #3
    snipesh0tz's Avatar Member
    Reputation
    16
    Join Date
    Dec 2007
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    That's not a virus, just an annoyance.

    A virus is self-replicating, that's just 10-15 lines of epic fail.
    You are right about the first part.
    Explain the second please
    Never forget to help people whenever you can

  4. #4
    Function's Avatar Banned
    Reputation
    5
    Join Date
    May 2008
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cypher we dont need you telling the newbs about epic phail. Thats FUNCTION OVERLOAD!

    Like void newbs(int phail, int lawl, int somethingelse, string wtfnow);

    Dont do it man!

  5. #5
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by snipesh0tz View Post
    You are right about the first part.
    Explain the second please

    Your program sucks, you suck too.

    That more clear?

  6. #6
    breezy22's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post

    Your program sucks, you suck too.

    That more clear?
    Damn man you need to go to the doctor. I think you just had a nerdurism. twocents

  7. #7
    Functions's Avatar Banned
    Reputation
    10
    Join Date
    Dec 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or... You could go windows form mode in Visual C++ and learn to own the Cpp way

  8. #8
    Viitapiru's Avatar Member
    Reputation
    2
    Join Date
    Jan 2007
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cypher is right here. Your code is kinda stuff what script kiddies do.

  9. #9
    Valex's Avatar Member
    Reputation
    6
    Join Date
    Apr 2007
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems it would be fun to do, but I agree to the above posts. Maybe try something a bit more advanced.

  10. #10
    Onilink01's Avatar Member
    Reputation
    3
    Join Date
    Dec 2007
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm a script kiddy ... Well for C++, I just got into it though, I've got pretty good on HTML and Autoit.

  11. #11
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dont worry about Cypher he likes bein a dick, makes him feel better about himself


Similar Threads

  1. How to make a website with Hamachi
    By ddinek in forum WoW EMU Guides & Tutorials
    Replies: 124
    Last Post: 01-23-2009, 11:44 AM
  2. Why Does Wow Crash whenever I Open WOW with Model MPQ..
    By Phunter72 in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 01-22-2008, 07:21 PM
  3. How to have a signup Website with Hamachi?
    By talabo in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 11-22-2007, 12:51 PM
  4. Open clams with Glider
    By Marlo in forum WoW Bot Maps And Profiles
    Replies: 12
    Last Post: 04-19-2007, 01:51 PM
  5. Open clams with Glider
    By Marlo in forum World of Warcraft Bots and Programs
    Replies: 11
    Last Post: 12-27-2006, 08:07 AM
All times are GMT -5. The time now is 05:50 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search