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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dll global variables

Status
Not open for further replies.

avivhal

Programmer
Nov 14, 2001
9
NL
I have a dll project in visual c++
and I want to have a variable which will change by different exe files which use this dll.
for example if i have
"int i=0; //global var of the dll file
.....
int func
{
if (....)
i++;
}
"

I would like i to be 1 for the next time func is called by a differet exe file.

thanks,
Aviv.
 
Lookup Using __declspec(dllimport) and __declspec(dllexport)in the MSDN.

HTH

William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top