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!

using structure var in different files

Status
Not open for further replies.

avivhal

Programmer
Nov 14, 2001
9
NL


I have the following struct:

typedef struct IPHWNDTAB
{
HWND hWnd;
char IP[30];
}IPHANDLE;
typedef IPHANDLE FAR IpHandle[5];


I want to use the var "IpHandle" in different files in my visual c++ project. some of the files are *.c files that create a dll and some are *.cpp files which are com interface files.

what is the best way to implement this so that I can use this "IpHandle" from different files in my project?

thanks,
Aviv.




 
Define the struct in a header file and #include it where and when required.

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

Part and Inventory Search

Sponsor

Back
Top