Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global DLL Variables?

Status
Not open for further replies.

ithic

Programmer
Sep 18, 2002
23
0
0
US
I have a console program and also a DLL... in the DLL I have:

Code:
#pragma data_seg( ".shared" )
	int	g_cnt;
#pragma data_seg()
#pragma comment(linker, "/section:.shared,RWS")

What do I need in the console program in order to access g_cnt?
 
Figured it out. Ignore this post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top