GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Jul-2004, 23:30
omills omills is offline
New Member
 
Join Date: Jul 2004
Posts: 1
omills is on a distinguished road

controling dialog objects & multiple source files


I 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 GIDBlogGID Spam Detector 1.1.0 by gidnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a problem Chuckles Computer Hardware Forum 19 13-Sep-2004 12:17
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 02:26
web server in secure mode not connecting to http application tcsasp Apache Web Server Forum 0 06-Nov-2003 00:08
[Linux] How to upgrade an rpm with source files? JdS Computer Software Forum - Linux 2 18-Jun-2003 09:17

Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:15.


vBulletin, Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.