Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jorgander

  1. jorgander

    recvfrom function

    may i ask why you were trying to find the remote address of a connection-oriented socket? if it is a client socket (i.e. you initiated the TCP connection with connect()), then you had to specify the address/port. if it is a server socket (i.e. returned by accept()), then the remote address and...
  2. jorgander

    how to find length of va_list string?

    thanks for the reply. i was afraid i'd have to roll my own.
  3. jorgander

    how to find length of va_list string?

    i've looked around for quite a while now, but can't find any reasonable solution for this. i'm trying to write a function that takes variable arguements (i.e. has char * fmt and '...' as two of its parameters), finds out how many bytes the resulting string formed by the arguement list will be...
  4. jorgander

    stack getting clobbered (value of esp)

    sorry i haven't been on this forum in a while... yes, i solved the problem, and sadly it was my own naivette. u see, i am used to debugging non-assembler code with msvc++, and in the debugger when u are running a recursive function and u "step over" a function call, the debugger will...
  5. jorgander

    stack getting clobbered (value of esp)

    something very strange when i'm debugging with msvc++ 6... if i step into every function call, esp doesn't get screwed up. however, if i step over a function call, it gets changed. to be more detailed, there are two sections of the recursive function, one to handle leaf nodes and one to...
  6. jorgander

    stack getting clobbered (value of esp)

    i would have posted the code in the first place but it is kind of long. obviously there is something i'm not doing right, i just can't tell what it is. but as long as i know that nothing else *should* be happening to the stack, then i know it's a bug in my code and i can eventually find it, as...
  7. jorgander

    stack getting clobbered (value of esp)

    i wrote a recursive function to search a tree structure, and i'm having problems with the code. the value of esp is not getting preserved over the recursive calls, but the strange thing is that as far as i can tell, upon every function entrance and corresponding function exit, the value is the...
  8. jorgander

    comparing unsigned 32-bit values

    when i was first learning the instruction set, i didn't read the descriptions of all the different jumps. i just assumed there were more or less the same (e.g. ja and jg) and just had different mnemonics. when i read the fine print, it became a little clearer.
  9. jorgander

    comparing unsigned 32-bit values

    never mind; i didn't know to use ja instead of jg, etc.
  10. jorgander

    comparing unsigned 32-bit values

    i'm sort of a newbie to assembly, but have been a C programmer for a long time, so i'm not clueless about this stuff... that being said, i am trying to compare a value agaist -1, (that is, 4294967295). for some reason, the sign bit is not getting set when i do this. i've tried js and jl, but...
  11. jorgander

    affecting the alpha channel with GDI functions???

    does anyone know how to get gdi functions (i.e. ellipse, textout, etc.) to draw to the alpha channel of a dc as well as the rgb channels? i'm already aware of the callback functionality with the LineDDA() function and that u can have your own function write to the alpha, but is it possible for...

Part and Inventory Search

Back
Top