News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

exporting a label from a function.

Started by sukratu, November 06, 2015, 09:04:07 PM

Previous topic - Next topic

sukratu

Hi,

I want to export a label from a function to other modules in x64 MASM assembly.
code example
------------------------
.code
PUBLIC GetLable

GetLable PROC
...
...
LABELTOEXPORT:
...
...
GetLable ENDP
--------------------------------------

from above program, I want to export LABELTOEXPORT to other modules. How can I do it?
In Linux it is possible to make this label as global so that other modules can access it.
How to do it on Windows with MASM assembler.

Regards,
Sukratu


sukratu

Hi,

I got it. I need put :: after LABELTOEXPORT
e.g
LABELTOEXPORT::

and make it PUBLIC.

jj2007

Exactly! Btw, welcome to the forum :icon14:

If you have more questions, try
http://masm32.com/board/index.php?action=search;advanced
http://www.masmforum.com/board/index.php?action=search;advanced

... or come right here to post your questions.