Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » How to access other classes variables?
Re: How to access other classes variables? [message #9638 is a reply to message #9630] Wed, 23 May 2007 07:40 Go to previous messageGo to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
There is another problem.

I have defined an object of class1 with global scope:

class1 global;


Then i use it in class2 like this:

String a_string = global.datagrid.Get(1);


datagrid is a sqlarrayctrl and a member of class1.

But i can't get any data from the datagrid, a_string is always empty.

Any tips?

Michael
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Constructor with parameter
Next Topic: How to use string array with functions?
Goto Forum:
  


Current Time: Tue May 07 20:11:44 CEST 2024

Total time taken to generate the page: 0.01828 seconds