473,671 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1812
Test wrote:
[OT redacted]


Wrong newsgroup. Try microsoft.publi c.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
5846
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 working with the StreamReader object I got a deadlock when I tried reading the file while my external application was writing to it. So far I am able to create a FileStream object and open the file in question (CrawlerBackup.txt). But I am unable to...
1
3792
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 Studio .NET\Vc7 \PlatformSDK\Include\ShObjIdl.h(9528) : error C2872: 'IXMLDOMDocument' : ambiguous symbol could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(1845) : IXMLDOMDocument'
3
1075
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
6297
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 computer has drivers installed for this printer, and this printer is shared for the network. Question 1:
2
18357
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, the app exits but then the command window opens and the process runs on its own. Could the "WaitForExit" call be happening too soon? Private Sub ZipDirs(ByVal PCName As String) Dim WinZip As New System.Diagnostics.Process Dim args As String = "...
1
3084
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 "'Outlook::ExplorerEvents' :no GUID has been associated with this object" #pragma managed class ATL_NO_VTABLE CConnect : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CConnect, &CLSID_Connect>, public...
2
5040
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 library. The 'lib' subdiretory contains following files: libcurl-4.dll libcurl.la libcurl.a libcurl.dll.a I added the 'include' subdirectory to the include path of the project
11
4068
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 something wrong? If so, what? If not, why doesn't this work for me? I've also tried it using an absolute path for test2.html - makes no difference.
25
2564
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 example: with quitCommandButton .enabled = true .default = true end with
1
2350
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 know I *could* store the data dict values in SQL: for various reasons that's not the path I want to take. I have some lookups, which are based on code-based Objects. They are encapsulated in Objects because the values can change during...
0
8390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4221
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1801
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.