News:

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

Assume

Started by bomz, December 07, 2011, 01:49:30 PM

Previous topic - Next topic

bomz

What is the difference in using directive ASSUME inside DLL. I make apllication - it's work, but when I make dll using this code mistake occurs: Invalid use of assume.
Quoteassume edx:PTR CWPSTRUCT
      .if [edx].message == WM_INITDIALOG


change to
Quoteadd edx, 8
      .if dword ptr[edx] == WM_INITDIALOG

clive

Probably missing an include somewhere. MASM should not care where the code ends up, it is just building object files, the linker gets to package it in an executable form.

.if dword ptr[edx+8] == WM_INITDIALOG
It could be a random act of randomness. Those happen a lot as well.

bomz

QuoteProbably missing an include somewhere.
for training I get "Simple dll" from masm32 examples, and add strings
   assume edx:PTR CWPSTRUCT
   assume edx:nothing
The same result