CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Eri523

Page 1 of 5 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    228

    Re: Creating a Property (Get/Set) Class

    Errr... Good question! :)

    I mainly took this as a funky experimental exercise and came to an alternative approach that uses operator overloading to mimic the original behaviour of the wrapped...
  2. Replies
    8
    Views
    225

    Re: Design advice required

    Not protected? Wouldn't making the constructor (more pecisely: all constructors, in case there's more than one) private effectively seal the class (i.e. make deriving from the class impossible at...
  3. Thread: Prime Numbers

    by Eri523
    Replies
    28
    Views
    498

    Re: Prime Numbers

    I'd have assumed that Word at least checks the file signature to verify it's a valid .doc file, and in case of failure falls back to opening it as plain text. However, after reading your post, I did...
  4. Thread: Prime Numbers

    by Eri523
    Replies
    28
    Views
    498

    Re: Prime Numbers

    At least VC++ 2010 does support it. (Well, actually, I didn't try with unsigned, but I'm confident that if it works without explicitly specifying signedness, that will work as well.)
  5. Thread: Prime Numbers

    by Eri523
    Replies
    28
    Views
    498

    Re: Prime Numbers

    I have no idea of what you mean by "windows form" here, but at least the Windows standard text file editor Notepad fails way before the file sizes you demand. AFAICT its limit is 32 kB.

    That...
  6. Thread: Prime Numbers

    by Eri523
    Replies
    28
    Views
    498

    Re: Prime Numbers

    A pretty simple yet complete definition of primes we can perfectly settle on. :)



    Actually, when researching for my post, I skipped the Fundamental Theorem section right to Primality Of One and...
  7. Thread: Prime Numbers

    by Eri523
    Replies
    28
    Views
    498

    Re: Prime Numbers

    Please note thar 1 is not a prime, i.e. rhe "and" in your sentence is to be interpreted in the sense of common human language understanding rather than the boolean sense (sort of "exclusive and")....
  8. Re: overtime, typical, bargaining for better hours

    Yes, but only after the user's total post count has reached a certain threshold (three, IIRC). And posts in the GD/CC section here don't count towards that total, so they probably don't contribute to...
  9. Replies
    26
    Views
    776

    Re: A few questions about exception handling

    Squaring doesn't seem to be an appropriate surrogate, already because it takes just one parameter, as opposed to the two that pow() takes. At least raising an integral base to a positive...
  10. Replies
    26
    Views
    776

    Re: A few questions about exception handling

    There also is another, IMO more straightforward way to look at the assembly language code generated by the compiler: VC++ features the compiler option /FA, which makes the compiler output the...
  11. Replies
    26
    Views
    776

    Re: A few questions about exception handling

    You should have posted your code within code tags. Even more than most other languages, assembly language code is particularly unreadable without them. With code tags (and after some additional...
  12. Re: [RESOLVED] Its Urgent please solve my create table query in vb6

    Besides...

    http://forums.codeguru.com/showthread.php?522759-Urgent!!!!!&highlight=Urgent
  13. Replies
    4
    Views
    206

    Re: Redefining DEBUG

    Actually, http://msdn.microsoft.com/en-us/library/vstudio/b0084kay(v=vs.100).aspx doesn't list DEBUG (and, to my surprise, not even NDEBUG), so apparently it's neither standard nor documented...
  14. Replies
    4
    Views
    206

    Re: Redefining DEBUG

    Can't you circumvent the name conflict problem by simply referring to _DEBUG rather than DEBUG in your own code?
  15. Re: How to capture a folder address with drag and drop ?

    ... and some folders do have extensions. (Just for completeness. :))
  16. Replies
    4
    Views
    226

    Re: encryption "crash-test"

    Perhaps this related thread can aid in the discussion: http://forums.codeguru.com/showthread.php?535145-How-quot-unbreakable-quot-is-my-code One of the core points there is that a secret encryption...
  17. Replies
    7
    Views
    317

    Re: Question about unions,bitfields

    Yeah, I agree to that being the probable reason for the failure. I didn't really test/investigate this, but I think a one-bit signed integer made up by such a bit field quasi comprises a sign bit...
  18. Replies
    8
    Views
    986

    Re: Ip Packets Decoder

    Which, BTW, considering the posted URL, apparently is for JPEG2000, not IP packets. :D Well, perhaps, if the OP didn't find one during the past almost seven years, any decoder would do... :lol:
  19. Replies
    19
    Views
    1,176

    Re: Capture a window

    I really welcome it when delevelopers have this sort of low-level experience. It tends to sharpen their sense to understand things. Of course it's a long way to go from there to high-level concepts...
  20. Re: Implicit default ctor - what is it for?

    You mean the default c'tor (i.e. the one that takes no parameters) that the compiler creates for your class automatically (i.e. by default) if you don't define one yourself? And by "built-in data...
  21. Replies
    26
    Views
    776

    Re: A few questions about exception handling

    So you're aware of the IDE menu option Debugging > Exceptions, where you can specify in detail on which types of exception the debugger shall break when they occur and before the runtime scans the...
  22. Replies
    5
    Views
    1,424

    Re: filestream/binarywriter issue

    The BinaryWriter writes objects to the file in a representation that allows to later reconstruct them as they were using a BinaryReader. The 0x07 is the length prefix that announces the count of...
  23. Replies
    5
    Views
    358

    Re: dialog box for visual studios2005

    Well, technically speaking, just open your source file in the Visual Studio code editor and change it. :p

    No, honestly, don't you think yourself that your question is pretty vague?

    Also, I...
  24. Replies
    19
    Views
    1,176

    Re: Capture a window

    Well, needlessly dynamically allocating an object just because some API demands a pointer to it instead of simply using the & operaror to take the address of an automatic (i.e. local) or class member...
  25. Replies
    26
    Views
    776

    Re: A few questions about exception handling

    Wow :eek:, that's tricky! Exception handling at machine code level is a quite specific topic I've never dealt with before. And then it's about x64, with which I have no practical experience either,...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width