Hi,
I am experiencing a very strange problem with VC++.NET
2002 and I'm hoping somebody can tell me what I'm doing
wrong or whether it's a bug.
I created an ActiveX control and added some properties,
and added some controls to the propertiy page and linked
the properties to them, at this point they were working
fine - the on changed event handlers were firing, the
properties were updating, the control's OnDraw was being
called and it and the other main control class's member
functions had visibility of the relevant variables and
they were correct. I then added some extra functionality
to the OnDraw procedure, and a global function. Then, for
no apparent reason, the control's properties were not
being updated when I edited the property page, and the
control's OnDraw event wasn't being called. I tried
putting InvalidateControl() in the event handlers for the
properties, such as OnBackColorChanged in the control's
property page .cpp file, but that didn't work as they
weren't being called themselves! I couldn't understand
why, so I decided to start a new project and get to the
stage I was at when they were working, then copy and
paste the code I had written in bit by bit to see what
was causing the problem.
To add to my woe, this happened: I added one property to
the new control, a custom OLE_COLOR property, by choosing
the Add Propety option from the _DMyControl interface in
the MyControlLib node in class view, and added the
property fine. Then, when I came to add the second
property, in only had an option of property or function,
as opposed to property, function or variable, and it
displayed a totally different dialog box when I clicked
property! This time it had 'put' and 'set' options, so I
clicked help and it said these were only for ATL
projects!? This is bizarre, and totally confusing.
Does anybody know what is going on and what to do about
it? Is it a bug? If so, is there a patch available?
Thanks very much
Regards
Ben Taylor 1 1773
I manually solved this by checking the code that the
wizard generated against sample code in Prosise, and
discovered that he had the line DDP_Check(pDX,
IDC_MYBOOLPROP, m_myboolprop, _T("MyBoolProp")) in the
DoDataExchange function of the property page's class -
but the wizard didn't add this so I added it manually.
Hmmm... I'm not entirely sure this has fixed it
completely, although it has made it work. Should there be
another wizard command that I'm supposed to be using to
do this instead?
Thanks
Ben -----Original Message----- Hi, I am experiencing a very strange problem with VC++.NET 2002 and I'm hoping somebody can tell me what I'm doing wrong or whether it's a bug. I created an ActiveX control and added some properties, and added some controls to the propertiy page and linked the properties to them, at this point they were working fine - the on changed event handlers were firing, the properties were updating, the control's OnDraw was being called and it and the other main control class's member functions had visibility of the relevant variables and they were correct. I then added some extra functionality to the OnDraw procedure, and a global function. Then,
forno apparent reason, the control's properties were not being updated when I edited the property page, and the control's OnDraw event wasn't being called. I tried putting InvalidateControl() in the event handlers for
theproperties, such as OnBackColorChanged in the control's property page .cpp file, but that didn't work as they weren't being called themselves! I couldn't understand why, so I decided to start a new project and get to the stage I was at when they were working, then copy and paste the code I had written in bit by bit to see what was causing the problem. To add to my woe, this happened: I added one property to the new control, a custom OLE_COLOR property, by
choosingthe Add Propety option from the _DMyControl interface in the MyControlLib node in class view, and added the property fine. Then, when I came to add the second property, in only had an option of property or function, as opposed to property, function or variable, and it displayed a totally different dialog box when I clicked property! This time it had 'put' and 'set' options, so I clicked help and it said these were only for ATL projects!? This is bizarre, and totally confusing. Does anybody know what is going on and what to do about it? Is it a bug? If so, is there a patch available?
Thanks very much Regards Ben Taylor . This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Filip Wtterwulghe |
last post by:
Hello,
We have a number of VB6 ActiveX applicationmodule(s) that are loaded
into a IE6 WebBrowserControl . This WebControl is imbededded into
Application X . Now We want to send a message from...
|
by: Miguel Guerreiro |
last post by:
I have an ActiveX Control that I am trying to make work from an ASP
page, but so far all I got is great frustation! My Control is well
registered (and working fine from a VB stand-alone program I...
|
by: andy.g.ward |
last post by:
I keep getting this when trying to create an MFC activex control in a
c# windows service - anyone got any ideas what the missing module could
be???
Exception thrown :...
|
by: Anand Kale |
last post by:
How to have ActiveX control called from Web Form in ASP.Net ? ActiveX
control is written using VC++/MFC/ATL-COM.
Also kindly answer following issues,
1. Also how to take care of issues about...
|
by: Jeffery Franzen |
last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms?
I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app.
I do the add...
|
by: =?Utf-8?B?R3JlZyBN?= |
last post by:
Hello,
I'm running an asp.net, intranet web application using .net framework 1.1 on
IIS5.1 / 6.0. Through the web application, I would like to press a button on
the web page, have another window...
|
by: mmedved |
last post by:
I ran into a problem using a custom ActiveX I wrote in VB 2005.
It has a property that is "indexed" - that is, it has a parameter and
needs to be addressed as (Index) - kinda like this:
...
|
by: miarfej |
last post by:
Hi to all.. i am just new here, hoping to find some suggestions.
I am writing a code in VC++. It is about creating an activeX control using MFC. This control exposes the properties and methods of...
|
by: Jialiang Ge [MSFT] |
last post by:
Hello Philippe,
In addition to bruce's points, I'd suggest the KB article
http://support.microsoft.com/kb/317392. It demonstrates how to host an
ActiveX control in ASP.NET (for your first...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
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...
| |