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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: smgarth
  • Content: Threads
  • Order by date
  1. smgarth

    CreateDIBSection problem, bitmap bits respond to changes only once

    when I create a DIB with CreateDIBSection, I only seem to be able to write to the bits once. I inserted calls to GdiFlush throughout the code but that doesn't seem to solve the problem. here is the test code: #include <windows.h> LRESULT WndProc(HWND, UINT, WPARAM, LPARAM); struct dib {...
  2. smgarth

    mov reg16, [sp] doesn't work!!

    I can't figure this out. All I need to do is mov the contents of sp into a register, but nasm complains 'invalid effective address'. I've tried it with every single register combination, but it won't let me do it. Please help!
  3. smgarth

    Problem accessing the stack.

    Hello, I have a question with accessing stack variables - I am using NASM. Here is what I did on the calling side: push msg ; msg is a null-terminated string call print add esp, 4 And for the callee: print: mov si, [esp-4] ; more code... For some reason, esp-4 doesn't seem to hold the...

Part and Inventory Search

Back
Top