CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2009
    Posts
    118

    C++ Polymorphism

    What affects will polymorphism have on my application? Can i use it so my program CRC changes each time on runtime?

    I think I remember reading somewhere a long time ago about it but I forget.

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: C++ Polymorphism

    What are you talking about? Is this a guessing game?
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: C++ Polymorphism

    Can i use it so my program CRC changes each time on runtime?
    No. Those 2 things are totally unrelated. Polymorphism is a coding technique and the CRC of your program is just a calculation.

  4. #4
    Join Date
    Jun 2009
    Posts
    118

    Re: C++ Polymorphism

    Alright, well I thought I read that a long time ago.

    Anyways, sorry for the dumb thread.

    But I am curious how one may change the crc of their program so each time you launch its different.

    I know the crc is based on the file, some sort of calculation of it, but without recompiling and adding code, how can I change the crc in the pgram at launch time?

  5. #5
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: C++ Polymorphism

    What are you doing ? The crc of your program is totally not relevant for running it. Also, if the data doesn't change the crc check will also not change.

  6. #6
    Join Date
    Jun 2009
    Posts
    118

    Re: C++ Polymorphism

    Quote Originally Posted by Skizmo View Post
    What are you doing ? The crc of your program is totally not relevant for running it. Also, if the data doesn't change the crc check will also not change.
    I need the crc to change on each launch, ive seen it done before. I know the data needs to change, but I cant figure how without just recompiling it with adding some code..

    But i definitely know its possible..

  7. #7
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    Re: C++ Polymorphism

    I have this feeling that you are thinking about polymorphic code in the context of a polymorphic virus.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  8. #8
    Join Date
    Jun 2009
    Posts
    118

    Re: C++ Polymorphism

    what, lol.

    Im not a very good programmer, and Im most definetly not making a virus.

    I need the crc to change because for my program which I sell, each copy must be unique to each customer. So I distribute 1 copy, and when they launch it the crc is changed.

  9. #9
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: C++ Polymorphism

    Why don't you put your customer name into your program? That would definitely change the ultimate exe's CRC.
    Best regards,
    Igor

  10. #10
    Join Date
    Jun 2009
    Posts
    118

    Re: C++ Polymorphism

    I know, but I mean without recompiling. Like I send off 1 copy to ALL, and then everyone who runs it it changes the CRC when they either start it or exit.

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