The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Don57 on June 12, 2008, 02:10:28 PM

Title: Passing Variables between modules
Post by: Don57 on June 12, 2008, 02:10:28 PM
I am trying to pass counters and delimiters, all numeric, between different modules. With no success.

Title: Re: Passing Variables between modules
Post by: hutch-- on June 12, 2008, 02:14:14 PM
Don,

The trick is to declare the variables as PUBLIC in the module where they are created and in modules that use them, set them as EXTERNDEF so it knows they are not in the local module.
Title: Re: Passing Variables between modules
Post by: Don57 on June 12, 2008, 02:29:11 PM
Thank you Hutch, that's exactly what I needed to know. :bg