Module_1
.DATA?
Test_Data dd ?
PUBLIC Test_Data
.CODE
WinMain proc ....
mov Test_Data, 1
CALL Test_Sub
....
ret
WinMain endp
end
Module _2
.DATA?
EXTERNDEF Test_Data:DWORD
.CODE
Test_Sub proc
mov eax, Test_Data
nop
nop
nop
nop
ret
Test_Sub endp
end
This assembled and linked alright, but when I run it there is no address for Test_Sub. The program CALLs 0000 0000. I'm assuming that I haven't designated Test_Sub properly?
:wink