CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    109

    Uploading/downloading registration

    I have a program. I want to distribute a passcode so that they
    can register the software one-time. The way I currently handle this
    is alot of work.

    My thought process was this: to create a 100 passcodes like:

    14123
    45143
    34533

    just random numbers. I give a number to someone, they type in the
    passcode and the software goes to a folder on the web, downloads
    an ascii file, removes that number from the list of numbers on that
    file, and then uploads that new file to the web. Since that number has
    been removed, the passcode was only valid once.

    I can download an ascii file from my website, but I can figure out
    how to upload that new file to replace the existing file. My question
    is twofold:

    1. Is my strategy a good strategy for distributing passcodes? Anything
    I can do to make it easier.

    2. How can I upload a file to replace an existing file on the web?

    Please, any response any one can give me will be greatly appreciated.
    Sample projects are adored!!

    Sincerely,
    Danielle Brina (an overworked graduate student)

  2. #2
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: Uploading/downloading registration

    Sorry Danielle, but you'll run into the age old problem of "sob stories". I've had this over & over again where a customer registers my s/ware and then calls me a few weeks later to say that their computer broke down and they need a new code.

    To add to your strategy I'd do this.... delete the code from the file but transfer it to another file that contains just one code (the last valid code you issued). Each time one of your apps starts up, make it log onto the web site and check that its code is the same as the currently valid one for that customer. That way, if your customer obtains a new code, his old copy will magically stop working.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  3. #3
    Join Date
    May 2002
    Posts
    109

    Re: Uploading/downloading registration

    John,

    Any chance you have a sample project you can share that would
    do this?

    I can download a file using a CWebGrab class, but I cant figure out
    how to upload it to a specific folder on a server.

    Any sample project you can possibly share would be great. My
    email address is brinasas@yahoo.com

    Sincerely,
    Danielle Brina (an overworked graduate student)

  4. #4
    Join Date
    Nov 2007
    Posts
    613

    Re: Uploading/downloading registration


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured