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 Rhinorhino 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
Joined
Nov 14, 2001
Messages
9
Location
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