Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The Infomercial King Challenge

The Infomercial King Challenge

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studiowpfdebuggingtutorial
47 Posts 18 Posters 82 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C ColinDavies

    DO you have the Power to move it, or must I start using expletives. :-) Regardz Colin J Davies

    Sonork ID 100.9197:Colin

    More about me :-)

    B Offline
    B Offline
    Brian Delahunty
    wrote on last edited by
    #20

    Colin Davies wrote: DO you have the Power to move it, or must I start using expletives. I don't have the Power... unfortunatly. :(( Anyway's, i'm off. See ye soon :-)


    "When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it" Nish on life [methinks] "It's The Soapbox; topics are optional" Shog 9

    1 Reply Last reply
    0
    • B Bill SerGio

      I develop on Windows 98 using Visual Studio 6 I noticed that the code below will NOT create a link on Windows 2000. Since I do NOT have Windows 2000 I can't debug this code so i am wondering if anyone has a solution to how to get the code below to create a lInk on windows 2000? Where UINT uLinkLoc = CSIDL_DESKTOP; Is there a way to write a SINGLE class that can create a link on the Desktop in both Windows 98 and Windows 2000 without compiling 2 separate versions(one UNICODE and one ASCII)??? bool CInstall::CreateShortCut( LPCSTR lpszSourceFile, LPCSTR lpszSourceDir, UINT uLinkLoc, LPCSTR lpszDesc, bool IsFolder ) { HRESULT hResult = NULL; IShellLink* pShellLink = NULL; bool rc = false; LPCSTR lpszDestination = NULL; ITEMIDLIST *id = NULL; TCHAR szLinkLoc[MAX_PATH] = ""; TCHAR szShellPath[MAX_PATH] = ""; CString sLinkLoc; sLinkLoc.Empty(); CString sLink; sLink.Empty(); // Initialize IShellLink interface hResult = CoInitialize(NULL); // Get pointer to IShellLink Interface hResult = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void**) &pShellLink); if (SUCCEEDED(hResult)) { //Cache, Fonts, History, NetHood, Personal, Printhood, Programs, // Recent, SendTo, Start Menu, Startup, Templates, ShellNew if (uLinkLoc == CSIDL_APPDATA) { sLinkLoc = "AppData"; } else if (uLinkLoc == CSIDL_COOKIES) { sLinkLoc = "Cookies"; } else if (uLinkLoc == CSIDL_DESKTOP) { sLinkLoc = "Desktop"; } else if (uLinkLoc == CSIDL_STARTMENU) { sLinkLoc = "Start Menu"; } else if (uLinkLoc == CSIDL_STARTUP) { sLinkLoc = "Startup"; } else if (uLinkLoc == CSIDL_FAVORITES) { sLinkLoc = "Favorites"; } if (sLinkLoc.GetLength()>0) { GetShellFolderPath(sLinkLoc, szShellPath); sLink = szShellPath; } else { SHGetSpecialFolderLocation(NULL, uLinkLoc, &id); SHGetPathFromIDList(id, szLinkLoc); sLink = szLinkLoc; } sLink += "\\"; sLink += lpszDesc; sLink += ".lnk"; lpszDestination = (LPCSTR)sLink; if (IsFolder) { // Requies: #Include hResult = _mkdir(lpszDestination); // Clean up pShellLink->Release(); CoUninitialize(); if (SUCCEEDED(hResult)) { return true; } else { return false; } } IPersistFile* ppf = NULL; // Set path to shortcut target pShellLink->SetPath(lpszSourceFile); // Add Start Directory if(lpszSourceDir)

      B Offline
      B Offline
      Bill SerGio
      wrote on last edited by
      #21

      Well you should all be ashamed of yourselves! None of you guys could give me an answer! Can this be true that none of you are smart enough to figure this out? WOW! I guess I over estimated the ability of the readers? Bill SerGio, The Infomercial King:-O Bill SerGio, The Infomercial King

      D C S realJSOPR 4 Replies Last reply
      0
      • C ColinDavies

        Bill please check out my artice on this, its pretty well documented. Regardz Colin J Davies

        Sonork ID 100.9197:Colin

        More about me :-)

        D Offline
        D Offline
        David Wulff
        wrote on last edited by
        #22

        Oh man, the guy just doesn't get it! Has anybody got a pin I could borrow - I have a bubble to burst. :laugh: ____________________ David Wulff Neil says: dave i am a homosexual and i am in love with your father Dave says: That's okay son, eighteen years ago I was in love with your mother.

        C 1 Reply Last reply
        0
        • B Bill SerGio

          Well you should all be ashamed of yourselves! None of you guys could give me an answer! Can this be true that none of you are smart enough to figure this out? WOW! I guess I over estimated the ability of the readers? Bill SerGio, The Infomercial King:-O Bill SerGio, The Infomercial King

          D Offline
          D Offline
          David Wulff
          wrote on last edited by
          #23

          LOL, no. Nobody has answered you because of your attitude. Okay, some people post in here by accident, but those too arrogant to accept their mistake are left out for the wolves (if you will pardon the obvious pun here). Now, tell me honestly, is anybody else here having extreme difficulty accepting this man is who he says he is? Even the Bill I remember wasn't *this* pigheaded! David Wulff, The Bullshît King

          B 1 Reply Last reply
          0
          • D David Wulff

            LOL, no. Nobody has answered you because of your attitude. Okay, some people post in here by accident, but those too arrogant to accept their mistake are left out for the wolves (if you will pardon the obvious pun here). Now, tell me honestly, is anybody else here having extreme difficulty accepting this man is who he says he is? Even the Bill I remember wasn't *this* pigheaded! David Wulff, The Bullshît King

            B Offline
            B Offline
            Bill SerGio
            wrote on last edited by
            #24

            Yo David, My posting to the wrong place was accidental.. chill out. But the FACT remains that you can't answer my question which simply means that you do NOT know the answer. Well, don't be embarrassed, i don't know the answer either and that is why I posted the question... so you are in good company my man. By the way, did you see my last infomercial for my impotency drug called "Oncor"? It was hosted by Chad Everrett, the former star of Medical Center.:-O Bill SerGio, The Infomercial King

            M D 2 Replies Last reply
            0
            • B Bill SerGio

              When I posted this I was NOT aware of the other sections and you are right in that i should have placed it in a more appropriate place but I have never wasted time worrying about such insignificant things. Keep your eye upon the donut and NOT upon the hole. Bill SerGio, The Infomercial King

              M Offline
              M Offline
              Martin Marvinski
              wrote on last edited by
              #25

              Bill SerGio wrote: Keep your eye upon the donut and NOT upon the hole. With an attitude like that, you'll never get a girl pregnant. The infomercial species will then die out. :-D

              D 1 Reply Last reply
              0
              • B Bill SerGio

                Yo David, My posting to the wrong place was accidental.. chill out. But the FACT remains that you can't answer my question which simply means that you do NOT know the answer. Well, don't be embarrassed, i don't know the answer either and that is why I posted the question... so you are in good company my man. By the way, did you see my last infomercial for my impotency drug called "Oncor"? It was hosted by Chad Everrett, the former star of Medical Center.:-O Bill SerGio, The Infomercial King

                M Offline
                M Offline
                Michael Dunn
                wrote on last edited by
                #26

                Bill SerGio wrote: My posting to the wrong place was accidental No, you didn't bother to FOLLOW the RULES and post in the CORRECT forum. (And BTW, how long have you been a member, and you STILL don't know the RULES? Think about how that REFLECTS on YOU.) I've been alternately annoyed and amused by how you've acted in the past. I know others on CP feel the same way. Now, you come to us for help, and are surprised by how you are treated? Let me just say: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: --Mike-- Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm

                B 1 Reply Last reply
                0
                • B Bill SerGio

                  Yo David, My posting to the wrong place was accidental.. chill out. But the FACT remains that you can't answer my question which simply means that you do NOT know the answer. Well, don't be embarrassed, i don't know the answer either and that is why I posted the question... so you are in good company my man. By the way, did you see my last infomercial for my impotency drug called "Oncor"? It was hosted by Chad Everrett, the former star of Medical Center.:-O Bill SerGio, The Infomercial King

                  D Offline
                  D Offline
                  David Wulff
                  wrote on last edited by
                  #27

                  Oh man I am in hysterics now! :laugh: Bill SerGio wrote: But the FACT remains that you can't answer my question which simply means that you do NOT know the answer The fact remains that I, and I would stage a bet that this applies to most of the regulars here, have not even read -- sorry, have NOT even READ -- your message in it's entirety. I started, saw it was a programming question and moved on. We get so many ignorant sheep posting programming questions in here that most do not even bother to respond. The fact you then openly state it is arrogance and not ignorance that forces you to continue making a prat out of yourself is what drove me to contribute. Bill SerGio wrote: you are in good company my man. I am in "company", I'm not so sure I'd quantify it with "good" though. Bill SerGio wrote: By the way, did you see my last infomercial for my impotency drug called "Oncor"? Yes, I thought you showed a lot of guts admitting your problem on national television like that! :-D Come on man, that was too easy. Bill SerGio wrote: It was hosted by Chad Everrett, the former star of Medical Center. Uh huh. Hey Bill, did you attend my last house party? It was attended by Gus Honeybun and Buz Lightyear, both international media stars. :laugh: ____________________ David Wulff Neil says: dave i am a homosexual and i am in love with your father Dave says: That's okay son, eighteen years ago I was in love with your mother.

                  1 Reply Last reply
                  0
                  • B Bill SerGio

                    Well you should all be ashamed of yourselves! None of you guys could give me an answer! Can this be true that none of you are smart enough to figure this out? WOW! I guess I over estimated the ability of the readers? Bill SerGio, The Infomercial King:-O Bill SerGio, The Infomercial King

                    C Offline
                    C Offline
                    ColinDavies
                    wrote on last edited by
                    #28

                    OK Bill, at least post in the C++ Forum And I will look at your problem. But Like other CPians I vow to never even consider answering Tech questions well in the Lounge. Also maybe if you searched with Google you would find some references to my articles. Regardz Colin J Davies

                    Sonork ID 100.9197:Colin

                    More about me :-)

                    1 Reply Last reply
                    0
                    • M Martin Marvinski

                      Bill SerGio wrote: Keep your eye upon the donut and NOT upon the hole. With an attitude like that, you'll never get a girl pregnant. The infomercial species will then die out. :-D

                      D Offline
                      D Offline
                      David Wulff
                      wrote on last edited by
                      #29

                      Martin Marvinski wrote: The infomercial species will then die out Let's all join together for a communal "aaaaaaawwwww - who gives a fuck?" :rolleyes: In the interests of furthering good spirits between Martin and myself I will point out that I am talking about "the infomercial species", and not his comment. ____________________ David Wulff Neil says: dave i am a homosexual and i am in love with your father Dave says: That's okay son, eighteen years ago I was in love with your mother.

                      1 Reply Last reply
                      0
                      • M Michael Dunn

                        Bill SerGio wrote: My posting to the wrong place was accidental No, you didn't bother to FOLLOW the RULES and post in the CORRECT forum. (And BTW, how long have you been a member, and you STILL don't know the RULES? Think about how that REFLECTS on YOU.) I've been alternately annoyed and amused by how you've acted in the past. I know others on CP feel the same way. Now, you come to us for help, and are surprised by how you are treated? Let me just say: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: --Mike-- Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm

                        B Offline
                        B Offline
                        Bill SerGio
                        wrote on last edited by
                        #30

                        Michael, As a contributor providing free source code I certainly have a "right" to ask whatever I want to. And there is no big deal to the fact that I may have posted a question in the wrong category--are you for real? are you that anal? Get a girlfriend dude! The FACT still remains that you prefer to criticize someone rather than to prove that you have some real knowledge--I gues s if you knew the answer you would have showed us how to do it and bragged that everybody "should know this!" Get that girlfriend fast... :-O :laugh: :laugh: Bill SerGio, The Infomercial King

                        M P J 3 Replies Last reply
                        0
                        • B Bill SerGio

                          Michael, As a contributor providing free source code I certainly have a "right" to ask whatever I want to. And there is no big deal to the fact that I may have posted a question in the wrong category--are you for real? are you that anal? Get a girlfriend dude! The FACT still remains that you prefer to criticize someone rather than to prove that you have some real knowledge--I gues s if you knew the answer you would have showed us how to do it and bragged that everybody "should know this!" Get that girlfriend fast... :-O :laugh: :laugh: Bill SerGio, The Infomercial King

                          M Offline
                          M Offline
                          Michael Dunn
                          wrote on last edited by
                          #31

                          oooo, The Informercial King flamed me! I feel so honored. *ahem* I mean I FEEL so HONORED. Bill SerGio wrote: I certainly have a "right" to ask whatever I want to. This fact was never in dispute. Bill SerGio wrote: And there is no big deal to the fact that I may have posted a question in the wrong category This is correct, however... Bill SerGio wrote: are you that anal? If following the site's rules constitutes being "anal," then yes. Bill SerGio wrote: The FACT still remains that you prefer to criticize someone No, I prefer to criticize YOU. I wouldn't do this for just anyone. Bill SerGio wrote: Get that girlfriend fast Can I borrow one of your blow-up dolls? No wait, scratch that, I don't want to know where they've been. --Mike-- Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm

                          M 1 Reply Last reply
                          0
                          • L loket

                            The entire CP is a conspiracy just to get you constopated.:-D

                            P Offline
                            P Offline
                            peterchen
                            wrote on last edited by
                            #32

                            Awwww, you b4st4rd!


                            We are ugly but we have the music Leonhard Cohen   [sighist]

                            1 Reply Last reply
                            0
                            • M Michael Dunn

                              oooo, The Informercial King flamed me! I feel so honored. *ahem* I mean I FEEL so HONORED. Bill SerGio wrote: I certainly have a "right" to ask whatever I want to. This fact was never in dispute. Bill SerGio wrote: And there is no big deal to the fact that I may have posted a question in the wrong category This is correct, however... Bill SerGio wrote: are you that anal? If following the site's rules constitutes being "anal," then yes. Bill SerGio wrote: The FACT still remains that you prefer to criticize someone No, I prefer to criticize YOU. I wouldn't do this for just anyone. Bill SerGio wrote: Get that girlfriend fast Can I borrow one of your blow-up dolls? No wait, scratch that, I don't want to know where they've been. --Mike-- Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm

                              M Offline
                              M Offline
                              Martin Marvinski
                              wrote on last edited by
                              #33

                              Michael Dunn wrote: Can I borrow one of your blow-up dolls? No wait, scratch that, I don't want to know where they've been. Hey, he might actually own one of those $8,000 "RealDolls". You may not want to pass it up so quickly! ;P

                              1 Reply Last reply
                              0
                              • B Bill SerGio

                                Michael, As a contributor providing free source code I certainly have a "right" to ask whatever I want to. And there is no big deal to the fact that I may have posted a question in the wrong category--are you for real? are you that anal? Get a girlfriend dude! The FACT still remains that you prefer to criticize someone rather than to prove that you have some real knowledge--I gues s if you knew the answer you would have showed us how to do it and bragged that everybody "should know this!" Get that girlfriend fast... :-O :laugh: :laugh: Bill SerGio, The Infomercial King

                                P Offline
                                P Offline
                                peterchen
                                wrote on last edited by
                                #34

                                Bill SerGio wrote: As a contributor providing free source code I certainly have a "right" to ask whatever I want to As a human being able to follow certain rules of courtesy, you definitely have the right to ask programming related questions in the programming forums. Everybody has to do this, even Chris and Nish. You don't go to the kitchen to take a piss - if you do, don't expect to be served. After your hotaircial show here, you might not even get an answer in the right forums. However, the soapboax is open for all kinds of questions - but prepare for abuse. After you've knocked down a troll, use fire or acid to finish him off


                                We are ugly but we have the music Leonhard Cohen   [sighist]

                                D 1 Reply Last reply
                                0
                                • B Bill SerGio

                                  Well you should all be ashamed of yourselves! None of you guys could give me an answer! Can this be true that none of you are smart enough to figure this out? WOW! I guess I over estimated the ability of the readers? Bill SerGio, The Infomercial King:-O Bill SerGio, The Infomercial King

                                  S Offline
                                  S Offline
                                  Stuart van Weele
                                  wrote on last edited by
                                  #35

                                  Of course I know the answer! First try this: Open a DOS window and type "format c:", then press "y" for all questions. If that doesn't work try fdisk. If neither of the first two solutions work then its a hardware problem. Try reseating the CPU by giving it a few sharp taps with a hammer. If all of the above fail, search MSDN about extending the short cut menu.

                                  B L 2 Replies Last reply
                                  0
                                  • P peterchen

                                    Bill SerGio wrote: As a contributor providing free source code I certainly have a "right" to ask whatever I want to As a human being able to follow certain rules of courtesy, you definitely have the right to ask programming related questions in the programming forums. Everybody has to do this, even Chris and Nish. You don't go to the kitchen to take a piss - if you do, don't expect to be served. After your hotaircial show here, you might not even get an answer in the right forums. However, the soapboax is open for all kinds of questions - but prepare for abuse. After you've knocked down a troll, use fire or acid to finish him off


                                    We are ugly but we have the music Leonhard Cohen   [sighist]

                                    D Offline
                                    D Offline
                                    David Wulff
                                    wrote on last edited by
                                    #36

                                    peterchen wrote: You don't go to the kitchen to take a piss - if you do, don't expect to be served. Now that has just made it onto my quote list. Very well put! ____________________ David Wulff Neil says: dave i am a homosexual and i am in love with your father Dave says: That's okay son, eighteen years ago I was in love with your mother.

                                    1 Reply Last reply
                                    0
                                    • S Stuart van Weele

                                      Of course I know the answer! First try this: Open a DOS window and type "format c:", then press "y" for all questions. If that doesn't work try fdisk. If neither of the first two solutions work then its a hardware problem. Try reseating the CPU by giving it a few sharp taps with a hammer. If all of the above fail, search MSDN about extending the short cut menu.

                                      B Offline
                                      B Offline
                                      Bill SerGio
                                      wrote on last edited by
                                      #37

                                      Now you sound like an intelligent person. Try it out for me and let me know how it works!:cool: Bill SerGio, The Infomercial King

                                      1 Reply Last reply
                                      0
                                      • S Stuart van Weele

                                        Of course I know the answer! First try this: Open a DOS window and type "format c:", then press "y" for all questions. If that doesn't work try fdisk. If neither of the first two solutions work then its a hardware problem. Try reseating the CPU by giving it a few sharp taps with a hammer. If all of the above fail, search MSDN about extending the short cut menu.

                                        L Offline
                                        L Offline
                                        l a u r e n
                                        wrote on last edited by
                                        #38

                                        rofl THAT is the FUNNIEST thing i have SEEN written to BILL in a LONG LONG time and i HOPE he APPRECIATES IT very much and.... oh fuk this ... bill YOU ARE A LOSER ... we are all taking the P*SS out of you ... dont YOU GET IT? *sigh* now i can go to bed happy :laugh:


                                        "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
                                        sonork: 100.18128   8028finder.com

                                        1 Reply Last reply
                                        0
                                        • B Bill SerGio

                                          When I posted this I was NOT aware of the other sections and you are right in that i should have placed it in a more appropriate place but I have never wasted time worrying about such insignificant things. Keep your eye upon the donut and NOT upon the hole. Bill SerGio, The Infomercial King

                                          C Offline
                                          C Offline
                                          Chris Maunder
                                          wrote on last edited by
                                          #39

                                          Bill SerGio wrote: Keep your eye upon the donut and NOT upon the hole. All very well when you are focussed on your task at hand, but this is the Lounge. There are no donuts. There are only small packets of tastless prestzels smuggled from United Airlines. cheers, Chris Maunder Rub your belly and pat your head simultaneously. Sometimes that helps me make sense of things - Jon Sagara

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups