![]() |
|
#1
|
|||
|
|||
controling dialog objects & multiple source filesI was wondering if someone could give me hand with a small problem I have. I have a dialog based C++ application in MS Visual Studio 6 that because of its size has the code dividing among multiple source files.
My problem lies in the fact that I have a static text object in the dialog called IDC_Status I want to report the running status from various stages throughout the code. At the moment I know I can pass a text string to the object and have it reported from within the source file which is derived from the dialog itself. However, I need to be able to do the same from my other source files which aren’t derived from the dialog. I’ve tried setting up a function in the dialog source file that is passed a text string and updates the text object using: IDC_Status.SetWindowText(StatusString); However I’ve found to use SetWindowText the function has to be declared as static and therefore, it seems can’t be passed a values from other source files. I’m sure there is an easy way to do what I’m doing and I’m just missing something. If anyone could help it would be much appreciated. Cheers, Oliver |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having a problem | Chuckles | Computer Hardware Forum | 19 | 13-Sep-2004 13:17 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 03:26 |
| web server in secure mode not connecting to http application | tcsasp | Apache Web Server Forum | 0 | 06-Nov-2003 01:08 |
| [Linux] How to upgrade an rpm with source files? | JdS | Computer Software Forum - Linux | 2 | 18-Jun-2003 10:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The