473,795 Members | 2,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# and unmanaged activeX control

This is kinda a repost, except I am phrasing the question in a different way
since I have a better idea what the problem is now.

We are using the DSOFramer ( http://support.microsoft.com/?id=311765 ) in
our just about released project. The bug is simple... going to Word
externally and comming back to our embeded Word control results in the
toolbar (or also known asa CommandBars in the automation document) will no
longer accept clicks.

Built another small sample app up in C# and same problem. Built a project
in VC++ 6.0, and the problem does not exist. Ran Microsofts VB example from
the link above... the problem does not exist.

So my question: is there something about the managed world and unmanaged
world that I am missing? I take it activeX controls written in C++ and VB
are unmanaged... I am a little confused on the subject.

Does anyone see a different way of calling or talking to the control that
would make a difference? Is there a command I can send an activeX object in
general when brining my app back in focus that would clear/ reset/
reinitialize/ prompt the control to reset its controls? I can run a
WordControl.Sav e(), WordControl.Sav e(), WordControl.Ope n() and everything
works again, but that is not the solution as it is slow and makes the screen
flicker... but it does indeed reset the control so things work again.

Thanks for reading this. We look forward to reading your replies.
Jun 23 '06 #1
0 1451

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

Similar topics

0
1350
by: Pat | last post by:
I have a third party .net control that I need to use in unmanaged MFC. This control is a Forms control, and I need to find a way to drop it onto an unmanaged MFC Forms. I have read the article "Managed Controls in Unmanaged Hosts" by Chris Sells, but was unable to find a way to get a 3rd party .net control to work using his methed, and then going back to his example was unable to get it to work either. I have tried writing a wrapper around this...
1
1424
by: Lucia | last post by:
I'm working at .NET project to implement a COM interface for a .NET control. The .NET assembly is built with the correct license for the control. Some unmanaged code is creating an instance of the control, inside an MFC dialog. When the control is used inside a WinForm dialog, the license is correctly validated and everything works.
0
1212
by: Yanick Masse | last post by:
I'm writing an MFC ActiveX control and some C function expose in a DLL that will be used in Visual Basic .NET and Visual C#. I want to detect in my code if we are currently beeing debugged by any debugger (Managed and Unmanaged debugger.). Previously, we were using the win32 IsDebuggerPresent() method. This method always returns false when we are beeing debugged in a Visual Basic .NET application without "Unmanaged code debugging"...
2
1524
by: SpotNet | last post by:
Hi Newsgroup, General C# questions. If I have a class(es), of API functions just as they are. Would that be considered Unmanaged or unsafe (not meant as the c# keyword) code? If I implement error checking, and disposing appropriate resources for those functions would my program then be considered managed (or safe)? In general I'd like to ask (not just with API functions) can you construct an assembley that would confirm to the...
3
2687
by: Michiel | last post by:
Hello, I have an ActiveX control which I can call fine from HTML pages, using the object tag like <OBJECT ID="UserControl1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:85A5119D-0000-0000-0000-5467CB71943E" CODEBASE = http://mywebsite/MyActiveX.ocx#Version=1,1,0,0 VIEWASTEXT></OBJECT> , and then simply adding them to the object's id with a . like UserControl1.MyFunction()
2
2730
by: Sandy | last post by:
I am confused about Unmanaged Code, How .Net Framework treate that code, What is the use of that. Thanks in advance Sandeep Chitode
2
4121
by: jpuopolo | last post by:
All: I have developed an ActiveX control using unmanaged C++ (MFC). I have also developed a C# application to server as a test harness. Both ActiveX and test harness application are built in Debug mode. The VS.NET (2005) project is configured for native debugging. In the debugger, when I try to "step into" the ActiveX method, the debugger executes the code but does not enable me to "step into" - it behaves just like a "step over."
0
920
by: Michael L | last post by:
Dear all, I have an ActiveX control that is hosted by a C# webbrowser control. The activex is written in C++ and I need a way to communicate between the activex and other c# applications or c++ applications for multithreading. Can someone give me some hints? Thanks in advance, Michael L
0
1323
by: matthewr | last post by:
Hi, I'm using C# to create an app which tests various ActiveX controls. Given the ProgID of the ActiveX control I want to test and the location of the .ocx file, how can I get a list of its methods, properties and events? Currently, I'm using: Type T = Type.GetTypeFromProgID("<A Prog ID here>"); Object Control = System.Activator.CreateInstance(Type);
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10443
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
10216
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
10002
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
9044
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
6783
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
5437
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...
1
4113
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
2921
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.