473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Need help with exposure of object in MFC visual c++

I am trying to write a simple dialog form and use the appwizard that
comes with MS V C++ 6.0. Under "Resource View" tab I have layed out my
form as I would like it to look. I want to be able on the click of a
radio button to enable or disable the Edit region I have created. I do
not understand how to expose that object so that other classes can have
access to it.
So i have two classes called CDSXGUIApp AND CDSXGUIDlg. When I go to
create a function for the action of lick on the radio button it puts the
function in CDSXGUIApp. If I define a Edit Region called IDC_EDIT_FNAME
on my dialog box in "Resource View" how to I expose that object to the
rest of my classes?

Thanks
Spanker
Mar 17 '06 #1
2 1792
Test wrote:
[OT redacted]


Wrong newsgroup. Try microsoft.public.vc.language, or any other Windows
programming newgroup.
Mar 17 '06 #2

"Test" <te**@nichware.com> wrote in message
news:pL**************@bignews7.bellsouth.net...
| I am trying to write a simple dialog form and use the appwizard that
| comes with MS V C++ 6.0. Under "Resource View" tab I have layed out my
| form as I would like it to look. I want to be able on the click of a
| radio button to enable or disable the Edit region I have created. I do
| not understand how to expose that object so that other classes can have
| access to it.
|
|
| So i have two classes called CDSXGUIApp AND CDSXGUIDlg. When I go to
| create a function for the action of lick on the radio button it puts the
| function in CDSXGUIApp. If I define a Edit Region called IDC_EDIT_FNAME
| on my dialog box in "Resource View" how to I expose that object to the
| rest of my classes?
|
| Thanks
| Spanker

Your asking the wrong newsgroup, and before you get too deep into the failed
architecture that is MFC, take a look at WTL instead. Yeah, i know, its not
officially supported. Shame. Big Boo-Boo.

Mar 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tom | last post by:
I am working with the this object as oppose to the StreamReader object becuase I need to access a file (to find the contents) while an external application is updating the file. When I was...
1
by: lucho | last post by:
Hi everyone, I have the same problem as described under Q316317 (http://support.microsoft.com/default.aspx?scid=kb;en- us;316317) ie a compiler error saying c:\Program Files\Microsoft Visual...
3
by: Eran AMiel | last post by:
Hi I Am working with word object in vb.net and i need to know two thing 1. what is the rows number in the current page ? 2. in what row am i ? -- Thank For The Help Eran
3
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
2
by: Terry Olsen | last post by:
Using the following code, I get the error "No process is associated with this object" when calling the WinZip.WaitForExit() method. After I click the "Break" or "Continue" button on the dialog,...
1
by: shama | last post by:
Hi, I have to develop add-in for outlook, I am using visual studio .net 2005 I had add reference for outlook, but when I try to get the uuidof of Outlook::Explorerevents it will give error as...
2
by: borucik | last post by:
I am trying to use libcurl with Visual C++ 2005 Express Edition. I downloaded the file from here: http://curl.haxx.se/dlwiz/?type=lib&os=Win32&flav=-&ver=2000%2FXP It is the 7.16.0 version of the...
11
by: Dudely | last post by:
The following file, as far as I know, should work. However, I get a blank page. Using IE 7 "test2.html" is a simple file which has nothing more than "Goodbye World" in it. Am I doing...
25
by: samjnaa | last post by:
Please check for sanity and approve for posting at python-dev. In Visual Basic there is the keyword "with" which allows an object- name to be declared as governing the following statements. For...
1
by: markla | last post by:
Hi, I have an Entity data model built in Entity Framework, which sources data primarily from an MS SQL 2008 database, and sources some static (data dictionary) values from code-based objects. I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.