473,804 Members | 3,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VC++ Dialog Designer - Oddness with ActiveX Controls

Hello, sorry for X-posting

Hope you are able to help with this one as its really urgent.

I have two unmanaged VC++ 7.0 projects which requre the use of ActiveX
controls within the dialog designer (not Winforms!). Both projects are
identical (except for the name) both in project settings and through file
compare. With one, I am able to right-click on the control within the dialog
designer, select 'Add Variable' and the 'Add Variable Wizard' will launch
correctly. The control will be identified correctly by the wizard (the
control check box will be active and checked, the control type will be OCX)
and I am able to add a control variable as per normal.

Unfortunately, in the second project when I attempt the same process the
wizard is unable to recognise the control and the control variable check box
is deactivated stopping further work.

As far as I am ble to tell, there no reason why one project should work and
the other should not.Any ideas?

Thanks in advance,

--
Nick Wilton BSc MInstP MCP
C++ Architect
www.darwinconsultants.co.uk
Nov 17 '05 #1
1 1327
I ad a similar problem a while back. I found that if I deleted the *.ncb,
*.opt and *.aps files ( which get regenerated the next time the project
opens), the problem goes away.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack For ActiveX & .Net - Windows Explorer Like Shell UI Controls


"Nick Wilton" <NickwATcafmexp lorerDOTcom> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Hello, sorry for X-posting

Hope you are able to help with this one as its really urgent.

I have two unmanaged VC++ 7.0 projects which requre the use of ActiveX
controls within the dialog designer (not Winforms!). Both projects are
identical (except for the name) both in project settings and through file
compare. With one, I am able to right-click on the control within the
dialog
designer, select 'Add Variable' and the 'Add Variable Wizard' will launch
correctly. The control will be identified correctly by the wizard (the
control check box will be active and checked, the control type will be
OCX)
and I am able to add a control variable as per normal.

Unfortunately, in the second project when I attempt the same process the
wizard is unable to recognise the control and the control variable check
box
is deactivated stopping further work.

As far as I am ble to tell, there no reason why one project should work
and
the other should not.Any ideas?

Thanks in advance,

--
Nick Wilton BSc MInstP MCP
C++ Architect
www.darwinconsultants.co.uk

Nov 17 '05 #2

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

Similar topics

4
2498
by: Zawa | last post by:
Why, when a I put and ActiveX Microsoft Web Browser component on my dialog (e.g. CBrowserDlg) and then call DoModal() dialog doesn't appear and DoModal() reasult -1 ? Should I register somehow this ActiveX in my project?
4
1343
by: Bob C. | last post by:
Hi All, I was working on MFC ActiveX controls using VC++. Now i moved to C#.NET. In MFC ActiveX we have DoPropertyExchange(), what is an equivalent to that in C#.NET (System.Windows.Forms.UserControl)?? How do i store my control's property values and retrieve it? Thanks,
0
3193
by: Andrew | last post by:
I get a Null Reference Exception if I close a modeless form (that is, a form displayed using Show()) when a selection is made from a ComboxBox. If the form is modal (displayed using ShowDialog()) or the selection is made from, say, a ListBox, no exception is thrown. I have included a simple example below. The error message refers to Unsafe Native Methods, but the code is 100% managed. What is going on ? I am using C#.NET 2003, Standard...
3
8153
by: Andrew | last post by:
I get a Null Reference Exception if I close a non-modal dialog (that is, a form opened with Show()) when a selection is made from a ComboBox. The error message refers to Unsafe Native Methods, but the code is 100% managed. The exception is not thrown if the dialog was modal (opened with ShowDialog()) or if the selection is made from, say, a ListBox. I have included a simple example below. I am using C#.NET 2003, Standard Edition.
3
1446
by: MD Websunlimited | last post by:
I'm having a problem utilizing a control that was created in VB 6 sp6 in VC 7 (unmanged). The VC7 is a dialog based application that uses the control. The control work perfectly in a VB test form but I can not get it to work in VC7. Whenever a property is accessed a memory access exception is produced. When I attempt to add a variable to the control I get an error saying that IExtender is not available. Is there something I'm missing...
2
2424
by: karspy | last post by:
In my COM Server i have added Dialog Box. i have registered OCX file and added that Activex Control to my Project also. It has created 1 header file and 1 source file. After that i have created an instance(object) of that ActiveX control and trying to call functions, But its giving run time error. Debug Assertion Filed! File: winocc.cpp Line: 345
4
9765
by: marc | last post by:
Hi, I have 2 activex controls on my form that I need to open up a common dialog box and select/browse files, then populate two text fields. The first one I have working: The first activex is set up to open up the Select File Dialog box. The properties of the activex are as follows: OLE Class CommonDialog
15
2022
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of converting the VB 6 project to VC in VS 2005. This seems to be a very different process. Where is a good place to start?
8
1992
by: Daniele Piccinini | last post by:
Hi all, In my vc++ 2005 dialog based application i need to use a comunication activex component in a secondary thread: CFINSAxEFS* pNewAx = new CFINSAxEFS(); if ( !pNewAx->Create( NULL, NULL, CRect( 0,0,0,0), pParent, pNode->m_nFinsID) )
0
9584
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
10583
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
9160
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...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
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
5525
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
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2995
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.