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

Search:

Type: Posts; User: spoulson

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    2,015

    Re: Any way to improve this?

    The reason I believe that defragmentation isn't done in native C++ is because it's too low level.

    Managed C++ is another layer of abstraction on top of C++, where it includes a higher level memory...
  2. Replies
    4
    Views
    494

    Re: The efficiency

    If enabled on the web server, web logs can show response time in ms.
  3. Replies
    3
    Views
    1,842

    Re: Argument of type void

    It looks like you're passing a function pointer, whose types aren't a perfect match. Let's see the code you've written.
  4. Re: why a member function in this example must be static?

    You can do a search on "Design Patterns". This looks like the Factory design pattern, in which some subset of code instantiates the proper class object.

    In this case, it always instantiates Dog...
  5. Replies
    6
    Views
    2,769

    Re: Get the size of an struct array?

    I like this method better:

    sizeof(ar) / sizeof(intArr)
  6. Replies
    3
    Views
    1,054

    Re: Brainstorm about Serial key generation

    ...Even better.
  7. Replies
    3
    Views
    1,054

    Re: Brainstorm about Serial key generation

    Use private key encryption. This way, the algorithm and public key can remain in your code, but the private key secured on your end to be used your key generator tool.

    In short:
    Generate...
  8. Re: makefile for linux help needed.. any makefile people here? :)

    Does the missing file error come from make or g++? If from make, then you have a rule somewhere that defines that header as a requisite for compiling the source file.


    mysource.c: mysource.h...
  9. Replies
    8
    Views
    677

    Re: functor parameter problem

    What is the third parameter intended to be used for?
  10. Replies
    4
    Views
    620

    Re: Please help with DB upload?

    You didn't mention what database version you're using.

    If using SQL Server 2000, you can use the Data import/export wizard to copy all objects and data.

    If using SQL Server 2005 (which it...
  11. Replies
    8
    Views
    491

    Re: XML or Database?

    That's understandable. My response was for something else, though. However, XML serialized objects should work fine for you.
  12. Replies
    8
    Views
    491

    Re: XML or Database?

    Care to explain why? There were more responses for alternatives than for using XML.
  13. Replies
    8
    Views
    491

    Re: XML or Database?

    I would choose XML only if it were necessary to read or edit it from a text or XML editor. Otherwise, I don't see any reason why you couldn't just use a disconnected DataSet and serialize to binary...
  14. Replies
    21
    Views
    1,133

    Re: Violating abstractions

    Why is the virtual destructor called at all? An assignment operator is supposed to assign values, not destroy them.

    Flaws aside, what was the author of that snippet trying to accomplish exactly?
  15. Replies
    8
    Views
    1,009

    Re: 1024+ Digit Decimal/Double!

    What class(es) do you recommend?
  16. Thread: Bit Fields

    by spoulson
    Replies
    17
    Views
    1,137

    Re: Bit Fields

    The data type is 'unsigned int', so it is not possible to be negative. I would expect that it should function just the same as any other unsigned int (or signed int for that matter), but with more...
  17. Replies
    31
    Views
    2,255

    Re: How to get certain bits from a value?

    The issue is not the compiler, but the platform portability. If you're compiling on a Intel, it'll use MSB (Most significant bit) order; whereas, if you compile to an LSB platform, like Motorola...
  18. Replies
    31
    Views
    2,255

    Re: How to get certain bits from a value?

    Many compilers will pad your structure to a default boundary, such as dword. Say you have a structure containing 24 bits of data, it may well be represented as sizeof(yourStruct) = 4 bytes, instead...
  19. Thread: map question

    by spoulson
    Replies
    8
    Views
    554

    Re: map question

    Well, it looks like cilu assumed your intentions were to clear the map<> of all elements. But after re-reading your post, I guess that's not what you're asking. So yes, feel free to set...
  20. Replies
    5
    Views
    2,244

    Re: Ajax = new mood?

    I disagree about AJAX being nonessential. The problem with a lot of web sites built even today is that they refresh the whole page to change something relatively small. Whether CGI, ASP, or...
  21. Replies
    36
    Views
    3,367

    Re: [RESOLVED] Can you call a constructor twice

    Could you explain this bit?

    CFoo foo;
    new(&foo)CFoo; // constructor called twice
  22. Replies
    36
    Views
    3,367

    Re: Can you call a constructor twice

    constructor != initializer

    The constructor can do anything you want, including initialize. I think the advise already posted here should suit your needs.
  23. Replies
    15
    Views
    1,248

    Re: Reduce flickering

    For controls like the Listbox, you can suspend updates while making multiple changes. I haven't tested this myself, but CWnd::LockWindowUpdate() and CWnd:UnlockWindowUpdate() seem to be what you're...
  24. Replies
    3
    Views
    556

    Re: Please suggest a name for our software

    I like to brainstorm some key words to describe the product, like say: learn, mentor, develop. Then, I'll go to thesaurus.com and find some synonyms I didn't think of. Sometimes the name jumps...
  25. Replies
    5
    Views
    2,244

    Re: Ajax = new mood?

    I've wondered the same thing. However, lots of features of HTTP, HTML, CSS, and other technologies were not heavily used even when browsers supported them fully. Simple things like CSS-based...
Results 1 to 25 of 71
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center