1. Can I put the CTEXT macro in macros.asm so it is available ?
2. Any opinions on SyncToy ?
3. I have some code that won't compile.
Getting undefined symbols for all of the procedures in the code.
I would like to read some material on writing procedures.
start:
ASSUME FS:nothing
invoke GetCDHandle,CTEXT ("\\.\E:")
.if eax !=0
invoke VerifyMedia,hDevice
.if eax==TRUE
invoke SetDlgItemText,hWnd,1003,CTEXT ("CD Found!")
.else
invoke SetDlgItemText,hWnd,1003,CTEXT ("No CD Found!")
jmp @F
.endif
GetCDHandle proc lpszDevice:DWORD
invoke CreateFile,lpszDevice,GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL
.if eax != INVALID_HANDLE_VALUE
i usually add in macros.asm with an include line:
include \masm32\macros\macros.asm
or occasionally when i just want the CTEXT macro only, i just copy and paste it into my source. Whichever works best for you.
I have used SyncToy, and there is a cmd line version as well which is handy for scheduling auto syncs. Seems to work ok