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

Search:

Type: Posts; User: Linenoise

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    16
    Views
    3,251

    First off, I don't see how the number given to...

    First off, I don't see how the number given to you has anything to do with the number of bits you reverse. Are you saying that if the user gives you 13, you reverse the lower 4 bits, but if the user...
  2. Replies
    16
    Views
    3,251

    I'm still not sure what you're trying to do.. but...

    I'm still not sure what you're trying to do.. but you keep assigning x to either 0 or 1, so I'll assume that's the only range they can have, and that you want to end up with:

    y = 0000 abcd

    with...
  3. Thread: c++ editor

    by Linenoise
    Replies
    11
    Views
    853

    If you're looking to buy one, SlickEdit...

    If you're looking to buy one, SlickEdit. Best editor out there, hands down. It does everything Codewright does, but better (IMHO of course), plus it has a C-variant macro language that can do just...
  4. Replies
    16
    Views
    3,251

    I don't understand what you're trying to...

    I don't understand what you're trying to accomplish. First, you take the value of x, and set bit 0x8000. You assign that to y, which will cause the value to be truncated, as x is an int and y is a...
  5. In respect to #1, I ran across an effort to make...

    In respect to #1, I ran across an effort to make an open-source version of the .NET system. Mono
    They've apparently gotten support/funding from Novell, so it's pretty safe to say it'll work. ...
  6. Replies
    5
    Views
    995

    You probably don't want to use the finalizer...

    You probably don't want to use the finalizer anyway (~Classname). This isn't the same as the C++ destructor. It is called implicitly by the garbage collector at some point over which you have very...
  7. Replies
    17
    Views
    1,506

    You should also avoid using variable names like...

    You should also avoid using variable names like "i", "ii", and so on. You're just making it more confusing for yourself.

    i = StudentIdx
    ii = CategoryIdx
    iii = GradeIdx

    making the final...
  8. Replies
    13
    Views
    1,893

    If all you want to save is the last element,...

    If all you want to save is the last element, could you simply save it locally, DeleteAllItems, then add it back?
  9. Replies
    4
    Views
    1,134

    If this is a general-use program, I'm not sure...

    If this is a general-use program, I'm not sure you could do it by controlling that DSL-login thing DSL provides supply. Most of them don't really do anything, which is why you're able to set up one...
  10. Replies
    3
    Views
    571

    There's always a tradeoff between how broad (one...

    There's always a tradeoff between how broad (one function that calls X others in order) and how deep (one function that calls one function that calls one function...) you go. Too far either way and...
  11. Replies
    16
    Views
    2,213

    It really depends on what the function does. You...

    It really depends on what the function does. You only have a problem if calling the function results in two threads doing the same thing at the same time - to the same object. Consider two simple...
  12. Replies
    6
    Views
    1,272

    Memory. We use them for resource allocation...

    Memory. We use them for resource allocation tables. If you have a large set of resources and simply want to know if it's allocated or free, you can use 1/sizeof(bool) of the ram by packing the bool...
  13. Replies
    4
    Views
    548

    Most regular expression engines I've seen have a...

    Most regular expression engines I've seen have a "not" condition (cant imagine how you get around not having that..). So you'd want something like:

    ^~(astring).*

    or whatever the syntax would...
  14. For the keys, the KeyPress and KeyDown events...

    For the keys, the KeyPress and KeyDown events get posted multiple times if the key is held down, I believe (depending on the repeat rate that is set elsewhere in windows) - just call the procedure...
  15. Replies
    9
    Views
    1,968

    On the flip side: C# is interpreted, so it...

    On the flip side:

    C# is interpreted, so it will be slower
    C# appears to be pretty easy to reverse-engineer (it relies on obfuscators to get around this), so it may not be a good choice for some...
  16. Replies
    1
    Views
    646

    The hash table stores data. If you create the...

    The hash table stores data. If you create the table on the button click handler (and declared the variable in there too) you're sort of implying that the data belongs to the button. That probably...
  17. Thread: debugging

    by Linenoise
    Replies
    5
    Views
    777

    Yes, TRACE will help you. Logging is even better...

    Yes, TRACE will help you. Logging is even better since you don't need the IDE to see the output (it usually saves to a file).. there's lots of free logging libraries on this site.

    I can't imagine...
  18. Replies
    1
    Views
    608

    You mean.. GramErrorWord GEWArray[10];...

    You mean..



    GramErrorWord GEWArray[10];
    GEW *lrggew;

    lrggew = &(GEWArray[10]);
  19. Replies
    7
    Views
    987

    Is m_Settings declared anywhere? It's not in the...

    Is m_Settings declared anywhere? It's not in the couple of lines you pasted. You'll have to give alot more info for anyone to be able to help..
  20. Replies
    8
    Views
    8,414

    That's really fast.. can windows even service an...

    That's really fast.. can windows even service an interrupt and task switch fast enough to support that?
  21. Replies
    12
    Views
    1,252

    Looks like the compiler is padding out the...

    Looks like the compiler is padding out the structure to make memory accesses a bit faster. If the CPU needs to read memory 32-bits at a time, if the Char is at the top of those 32 bits, you have to...
  22. Replies
    9
    Views
    924

    MFC for windows only. Windows API for windows...

    MFC for windows only. Windows API for windows only. C# for Windows with .NET systems only. C/C++ for DOS or Unix systems. Java for running on all systems.

    It depends on what your target...
  23. Replies
    4
    Views
    641

    I wouldn't think so. I'd be concerned if it...

    I wouldn't think so. I'd be concerned if it actually CAME on a floppy.

    Alot of great programs are tiny. My editor's .exe file is 540K. That's not counting DLL's and such, but with enough...
  24. Replies
    5
    Views
    662

    I've looked at this a little bit, after I saw an...

    I've looked at this a little bit, after I saw an article about Gator suing people for callling their software "spyware". Gator is this program that used to come bundled with other software, and it...
  25. Replies
    28
    Views
    9,597

    I think -BOTH- are important. Writing good,...

    I think -BOTH- are important. Writing good, clean code that works right is very important, but doesn't mean jack if you don't have the vision to see how all the parts fit together. Likewise,...
Results 1 to 25 of 126
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured