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 strongm 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: *

  1. tntcoder

    Calling WINAPI functions inside a DLL

    Hi, Im trying to call functions from inside a DLL, im trying to call MessageBoxA at the moment (user32.dll), but i want to be able to call custom functions from my own C++ DLL. Please could someone give me an example of how to define the function? I think i have to use 'extern' and 'include'...
  2. tntcoder

    Adding Numbers

    I have been running the 16bit version with INTs inside windows in a dos prompt without problems. So if i make it 32bit i take it i have to call 32bit functions and cant use INTs? is this correct. So would i have to import functions from C++ libarys or something.
  3. tntcoder

    Adding Numbers

    Thanks for that mate ive managed to get it working. I have another question though. If im to make this 32bit, how do you display a string correctly? Using: mov ah, 09h mov dx, OFFSET t_msga int 21h That does not work when i put the program through a 32 bit assembler, how can i fix this? if i...
  4. tntcoder

    Adding Numbers

    Hi, Please could someone tell me why the below code wont work, im trying to add two numbers together and display the result (both numbers are entered by the user). Im new to this, but as far as i can see ive done it correctly but it just outputs a random character that means nothing to me. Also...
  5. tntcoder

    Bits & Bytes Help (beginner)

    Hey guys, Can someone explain this to me: 10000h in bytes is 4+4+4+4+4 = 20bytes yes? and because thers no 20bit reigster it goes in a 32bit dword. I think i understand that. But then with this code as an example: arrayD DWORD 10000h, 20000h mov eax, arrayD ; eax = 10000h mov eax...
  6. tntcoder

    Processor Help

    Hey guys, Ive just started learning assembly, not for anything in particular but i like the language and just want to make some general things in it so maybe one day i can use it as inline code in a higher level language. Anyway i dont quite understand the idea of the code being processor...

Part and Inventory Search

Back
Top