Fix this plz

This is a discussion on Fix this plz within the C++ Programming forums, part of the General Programming Boards category; Scroll down for my question plz...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    12

    Fix this plz

    Scroll down for my question plz
    Last edited by cpnoob; 06-11-2006 at 11:28 AM.

  2. #2
    Registered User
    Join Date
    Jun 2006
    Posts
    12
    anyone, please?

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    12
    >_<................
    Last edited by cpnoob; 06-11-2006 at 10:34 AM.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,403
    As they say, we aren't here to do your work for you, neither we are here just waiting for you to ask something and jump immediatly to help you.

    12 minutes after you posted your question you are already calling us useless. tsk!

    Good luck solving your problem. We are useless anyhow.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    12
    Noo, I'm sorry, I'm just hot, stressed, need a cigarette,and am at a dead wall without this code fixed.., Sorry, you guys rock lol it's just me being a stress head (I'm in the UK it's very very very very very very very very very very very very hot right now)

  6. #6
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,622
    Please go to the FAQ and research how to open another program from within a program again. There are better ways than system() to do what you want, and this is explained in the FAQ.

  7. #7
    Registered User
    Join Date
    Jun 2006
    Posts
    12
    NOO, please i really wanna use system please

  8. #8
    Registered User
    Join Date
    Jun 2006
    Posts
    12
    Code:
    #include <iostream>
    #include <shlobj.h>
    #include <shlwapi.h>
    #include <windows.h>
    
    
    using namespace std;
    
    int main()
    {
      cout<<"Your universe license has expired, contact support@activeworlds.com for renewal.\nProvide code 539";
      cin.get();
    
      return 1;
    }
    can someone make it work with

    Code:
    int main(void)
    {
      char szPath[] = "C:\\WINDOWS\\system32\\Calc.exe";
    
      HINSTANCE hRet = ShellExecute(
            HWND_DESKTOP, //Parent window
            "open",       //Operation to perform
            szPath,       //Path to program
            NULL,         //Parameters
            NULL,         //Default directory
            SW_SHOW);     //How to open
    
      /*
      The function returns a HINSTANCE (not really useful in this case)
      So therefore, to test its result, we cast it to a LONG.
      Any value over 32 represents success!
      */
    
      if((LONG)hRet <= 32)
      {
        MessageBox(HWND_DESKTOP,"Unable to start program","",MB_OK);
        return 1;
      }
    
      return 0;
    }
    Please just help me I've read the FAQs, just help plz

  9. #9
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,403
    You edited your previous posts on this thread, effectivelly snuffing the whole context of the thread, and then placed a new post with the original question. Not happy with that you changed the original question to something completely different...

    I'll just ignore you from now on
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  10. #10
    Registered User
    Join Date
    Jun 2006
    Posts
    12
    you're a real ........face arn't you, <3 btw do netstat -a notice i'm connected to you via netbios, WOW NICE JOB leaving file and printer sharing on, I shall now leave these forums and browse your hard drive ;D

  11. #11
    Registered User
    Join Date
    Aug 2003
    Posts
    1,197
    Ooooooo I think I smell the bandog coming....

  12. #12
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,066
    If this were my forum... it would have happened already.

    ...and I would have killed his dog for good measure.
    Sent from my iPad®

  13. #13
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,403
    son... be quiet and sit down. It will be quick
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  14. #14
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,310
    <3 btw do netstat -a notice i'm connected to you via netbios, WOW NICE JOB leaving file and printer sharing on, I shall now leave these forums and browse your hard drive ;D
    You are asking to be banned for being a troll that cannot ask for help properly, insults legitimate users, and makes empty threats.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  15. #15
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    Perhaps read the forum rules, a do a google search on how to post to forums. (Try the one in laserlight's signature) If you're not getting the help you want, first, try re-explaining your problem. Then leave, this is a forum, not instant messaging, and the right reply might take some time to come. Simply taking a break will often clear one's mind, and you might solve any problem you have yourself.

    Your code snippets work as they should for me. There's no commenting, so I'm not exactly sure what you're intending to happen.

    The UK is a good ten degrees cooler than where I am. ;-)
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can any1 plz make this assignment
    By jean in forum C Programming
    Replies: 17
    Last Post: 05-13-2009, 09:19 PM
  2. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  3. C++ code need help to fix
    By McReal in forum C++ Programming
    Replies: 9
    Last Post: 05-12-2007, 02:48 PM
  4. plz help me fix this problem
    By Joe100 in forum C++ Programming
    Replies: 8
    Last Post: 07-13-2003, 01:25 PM
  5. broken search can u fix? plz :)
    By */*/*/*/ in forum C++ Programming
    Replies: 2
    Last Post: 06-07-2003, 04:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21