News:

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

is it possible to use a dword in a library

Started by ToutEnMasm, July 06, 2006, 04:50:49 PM

Previous topic - Next topic

ToutEnMasm

Hello,
I have put a dword on a library and i want to use it from the source code.
I declare it PUBLIC in the library,but it's don't work.
                                       ToutEnMasm

Casper

You are going to have to explain this in more detail or post the source.  Your words are very confusing to me.

Casper

Ossa

I always use EXTERNDEF in both, but if you already have it public, just use EXTERNDEF in the file you want to use it from.

Library code:

EXTERNDEF blah:DWORD

blah dd ?


Module code:

EXTERNDEF blah:DWORD

QuoteSyntax:   EXTERNDEF [langtype] name:qualifiedtype [, [langtype] name:qualifiedtype]...


  • If <name> is used in the current module but is not defined, <name> is made external.
  • If <name> is defined in the current module, it is made PUBLIC.
  • If <name> is neither used nor defined, the directive is ignored.

Ossa
Website (very old): ossa.the-wot.co.uk