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

Search:

Type: Posts; User: abcdefgqwerty

Page 1 of 8 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    1,187

    Re: windows hook problem

    You know as dumb as that makes me feel I think I was actually trying to inject into a windows calculator or other window applications. I will try that.
    Thanks
  2. Replies
    35
    Views
    2,889

    Re: The Goto Statement

    Its really this simple. Anything a programming language allows you to do is fair game to use. That being said people do not enjoy reading code with gotos in it, but will if they have to.
  3. Replies
    35
    Views
    2,889

    Re: The Goto Statement

    goto is faster then function calls. Really though speed isnt as important as readability and goto really does make things much much harder to read. In general you just avoid goto its not needed...
  4. Replies
    9
    Views
    1,074

    Re: partially AI program

    I think you would want a tree since thats the fastest structure for searching large amounts of things such as words. There are lots of ways to do that but all of them are complicated depending on how...
  5. Re: Allocate memory using malloc() and release it using delete

    You cant mix them. Think about why.
    int *a = new int[10]
    malloc(sizeof(int)*10)

    malloc returns void * and u cast it to the type. It simply gives u a pointer to the beginning of the block of...
  6. Replies
    2
    Views
    2,919

    Help on winsock send recv in c++

    Okay im using a tcp socket that is connection oriented. Now this is not anywhere near an ideal socket function. I just need a quick and dirty way to send a string and receive back a very simple fixed...
  7. Replies
    23
    Views
    19,196

    Re: char vs string

    strings are easier and faster most importantly. char is much more powerful because as always if you understand the building block of something you can create more then you can if your more limited...
  8. Replies
    16
    Views
    3,116

    Re: Fast variable length array

    I dont know. Besides a vector, or linked list type thing I dont see how much faster your gonna get. No matter what you do every element in the array will have to be moved when you change the size of...
  9. Replies
    21
    Views
    110,463

    Re: casting from std:string to char *

    I have to ask this because the reason i choose c# over c++ in a second is mainly because i hate c++ strings. Look how many questions get asked on just strings.
    Why does the string class not give you...
  10. Replies
    3
    Views
    975

    Re: Key-Logger program

    There are different ways to do that all of varying levels of complexity. Its to complicated to post code on here as thats a major project. One way is to install a global system wide hook that catches...
  11. Replies
    7
    Views
    1,136

    Re: Simple pointer question

    I see. Thanks guys for all the help I was confused and did think I had to use an LPRECT.
  12. Replies
    7
    Views
    1,136

    Re: Simple pointer question

    So I have to create a new RECT object and initialize the pointer with that to be able to do what i was trying to do before? So my attempt is giving it a pointer that points nowhere and the function...
  13. Replies
    7
    Views
    1,136

    Simple pointer question

    I had this


    LPRECT rec;
    playback->GetClientRect(rec);


    and it froze up everytime. So I try this eventually:
  14. Replies
    52
    Views
    9,739

    Re: Is using goto a bad practice

    I think it the answer is it depends. I think in most languages 99.8 percent of the time you should not be using gotos. That being said once in a very great while you might have nested switches or...
  15. Replies
    21
    Views
    3,247

    Re: atoi not working in VS8

    What i want to say is pretty meaningless and not helpful but ill just say it anyways. Old C functions like atoi, strcpy, strcmp, strtok and all those guys are time tested. They are library functions...
  16. Replies
    37
    Views
    4,711

    Re: Compiler for a huge app

    These guys are right as usual and are only trying to help. Plain and simple it makes no sense to hard code the bible into your program. There is nothing you cant do if you read that in from a file...
  17. Creating a Poker bot general question

    I am curious about the feasibility of making a poker bot. Now I know theres lots of attempts at this using all kinds of different methods. It seems to me most kinds of poker could be won at by a...
  18. Replies
    9
    Views
    5,613

    Re: DeviceIoControl or ReadFile?

    Someone in the driver forum might know since really its a userland program communicating with i guess a kernel driver.
  19. Replies
    2
    Views
    759

    Re: Question on viewing driver

    Good point. Windows xp and sp 2.It seems like at kernel level since you can access almost all system memory you could access the bios.
  20. Replies
    2
    Views
    759

    Kernel driver windows xp sp2 and bios

    Is there any way from a kernel driver to access the bios? Would it be possible to put the address like 10h and then call the interrupt and have the bios switch the display mode or something like that?
  21. Replies
    3
    Views
    1,213

    Re: Driver on windows xp sp 2

    The windows server 2003 sp 1 ddk faq listed here:
    http://www.microsoft.com/whdc/devtools/ddk/ddkfaq.mspx
    says that it only supports windows xp home and professional up to sp 1. What ddk do you need...
  22. Replies
    3
    Views
    1,213

    Re: Driver on windows xp sp 2

    Ah thanks a lot. That link takes me to a page with windows server 2003 ddk. Is that the ddk that is used for windows xp sp 2? the windows xp sp 1 link takes me to some junk on a java virtual machine....
  23. Replies
    3
    Views
    1,213

    Driver on windows xp sp 2 where to get ddk?

    Does anyone have the link to what I actually need to make a kernel level driver on windows xp sp 2? I eventually found a page with this among other files:...
  24. Replies
    156
    Views
    12,571

    Poll: Re: Old style C code in new projects

    You are right on the having to use pointers anyway. I guess your right it doesnt matter much but I only allocate pointers I need and I dont need some table of pointers that im not declaring...
  25. Replies
    156
    Views
    12,571

    Poll: Re: Old style C code in new projects

    Well I consider the virtual keyword to be part of OOP and using the virtual keyword the compiler builds and maintains a vtable of the virtual function pointers each one of these pointers obviously...
Results 1 to 25 of 190
Page 1 of 8 1 2 3 4





Click Here to Expand Forum to Full Width

Featured