Connecting Tech Pros Worldwide Forums | Help | Site Map

how to access a C structure members from outside the source code

Newbie
 
Join Date: Jan 2007
Posts: 1
#1: Jan 4 '07
I have one function that accesses one of the structure member .Now I want to access this member from outside my source code ,that is if I modify the initialised structure member elements my source code wont require any further compilation for this?

Newbie
 
Join Date: Dec 2006
Posts: 8
#2: Jan 4 '07

re: how to access a C structure members from outside the source code


Quote:

Originally Posted by pallavid

I have one function that accesses one of the structure member .Now I want to access this member from outside my source code ,that is if I modify the initialised structure member elements my source code wont require any further compilation for this?


Hi pallavid ,

Use dynamic linking.
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,171
#3: Jan 4 '07

re: how to access a C structure members from outside the source code


Store the initialisation values in a file and read it when the program runs.
Newbie
 
Join Date: Dec 2006
Posts: 8
#4: Jan 5 '07

re: how to access a C structure members from outside the source code


Banfa ,

Its a simpler solution, Good idea.

Thanks
Reply