News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Undefined symbols

Started by Magnum, November 08, 2011, 01:57:54 AM

Previous topic - Next topic

Magnum

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
Have a great day,
                         Andy

fearless

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
ƒearless