Forum: C++ Dec 13th, 2008 |
| Replies: 2 Views: 1,102 ; use windows sockets
http://msdn.microsoft.com/en-us/library/ms741394(VS.85).aspx |
Forum: C++ Dec 12th, 2008 |
| Replies: 1 Views: 469 ; get file size : GetFileSize
; get file creation, last access, last write time : GetFileTime
; set file creation, last access, last write time : SetFileTime |
Forum: Assembly Dec 12th, 2008 |
| Replies: 1 Views: 627 ; check out this link:
http://www.madwizard.org/programming/tutorials/mosaic/ |
Forum: C Dec 12th, 2008 |
| Replies: 1 Views: 580 ; check out this link:
http://msdn.microsoft.com/en-us/library/aa389273(VS.85).aspx |
Forum: C++ Dec 12th, 2008 |
| Replies: 1 Views: 510 ; just launch "devmgmt.msc" by winexec or by CreateProcess |
Forum: C Dec 12th, 2008 |
| Replies: 9 Views: 656 ; I have written an example for you.
; try this:
; all files are in attachement
#include <windows.h>
#include <winioctl.h>
struct Record
{ |
Forum: Assembly Dec 10th, 2008 |
| Replies: 1 Views: 364 ; i'm not sure if u can do that in "PE explorer"
; but in e.g.: OllyDBG you can edit the disassembled code of a ;program and then copy it to the .exe file "selection"->"copy to ;executable"
; and... |
Forum: C Dec 10th, 2008 |
| Replies: 9 Views: 656 ; yes you can separate data in the text or any other extension file ;with some characters (e.g: "<Name>Max</Name>" and so on) or ;you can separate data with e.g.: 0A4h or some other non-letter or... |
Forum: Assembly Dec 9th, 2008 |
| Replies: 5 Views: 711 ; here is a simple encrypting/decrypting app.:
; on encryption it will just inc hex values represented byeach char
; on decryption dec
.386
.model flat,stdcall
option casemap:none
include... |
Forum: Assembly Dec 9th, 2008 |
| Replies: 7 Views: 734 then you have to "inc si" and "jmp orderab" before "finish" |
Forum: C++ Dec 9th, 2008 |
| Replies: 5 Views: 287 ; it will print out "76"
; do means an action will happen and then it will check if the while ;statement is true, if so again it will go to do or else it will exit from ;do while loop
I = I + 25;... |
Forum: Assembly Dec 9th, 2008 |
| Replies: 4 Views: 1,014 ; you have to allocate enough memory for the string in the ".data?" ; section:
.data?
szBuff db 256 dup(?)
; then when you call StdIn it will write user input into szBuff
.386
.model... |
Forum: Assembly Dec 9th, 2008 |
| Replies: 4 Views: 1,014 ; you mean storing it even after program close?
; then : In Registry (RegOpenKeyEx, RegQueryValueEx, RegSetValueEx ...) , In a File ( CreateFile, WriteFile, ReadFile ...), In .ini File ( you can... |
Forum: Assembly Dec 9th, 2008 |
| Replies: 5 Views: 711 ; do you want later to decrypt it back or no? |
Forum: Assembly Dec 8th, 2008 |
| Replies: 6 Views: 961 INCLUDE Irvine32.inc
maxInt proto xVal:DWORD, yVal:DWORD
;.....................
push 2 ; yVal
push 3 ; xVal
call maxInt
;.....................
maxInt proc xVal:DWORD, yVal:DWORD
mov eax,... |
Forum: Assembly Dec 8th, 2008 |
| Replies: 6 Views: 961 INCLUDE Irvine32.inc
maxInt proto xVal:DWORD, yVal:DWORD
;.....................
push 2 ; yVal
push 3 ; xVal
call maxInt
;.....................
maxInt proc xVal:DWORD, yVal:DWORD
mov eax,... |
Forum: Assembly Dec 8th, 2008 |
| Replies: 7 Views: 734 ; because "cmp" instruction doesnt accept two memory operands
; CMP r , r/i
; CMP m , r/i
; instead of "cmp add1[si],add1[si+2]"
; try:
mov dx, add1[si]
cmp dx, add1[si + 2] |
Forum: Assembly Dec 7th, 2008 |
| Replies: 1 Views: 3,299 ; hi.
; it will jump if eax is greater.
; "jg" is the opposite |
Forum: Assembly Dec 4th, 2008 |
| Replies: 1 Views: 444 Yes I think so. If you want post your code here and we'll see. |
Forum: Assembly Dec 4th, 2008 |
| Replies: 6 Views: 961 ;Hi.
;Actually why did you compare eax with -9999 ?
cmp eax,-9999 ;?
----------------------------------------------------------------
;stdcall is pushing on the stack values in the opposite... |
Forum: Assembly Dec 3rd, 2008 |
| Replies: 5 Views: 3,616 ;try this one too - it takes two numbers in ascii, converts them to hex ;and adds them together, then it converts the result to ascii and ;displays it in MessageBox |
Forum: Assembly Dec 3rd, 2008 |
| Replies: 5 Views: 3,616 |
Forum: Assembly Nov 26th, 2008 |
| Replies: 3 Views: 1,522 ;Take a look at this one too:
str_cat proc strBase:DWORD, strAdd:DWORD
mov edi, strBase
mov al, 0
repne scasb
dec edi
mov esi, strAdd
@@:
mov al, [esi]
mov [edi],... |