473,654 Members | 3,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP/Custom Activex Error

I have set up a website and am testing ASPs. I have created
a very simple ActiveX component with two interfaces:

AboutBox() - displays About details
calcpi() - returns 3.14159

Here is my configuration (All the most up to date versions
except for Visual C++):

Windows XP (Home Edition).
Visual C++ 6.0
Apache Webserver
SUN ASPONE
Internet Explorer

When I use ATL COM Appwizard to create my ActiveX
component (DLL really), I can get the following
to work quite easily:

<%
Set x =Server.CreateO bject("AC.AcCtr l.1")

x.calcpi()
%>

However, when I use MFC ActiveX Control Wizzard to create
my ActiveX (.ocx really) component, the above does not
work. Well, the instantion of the x object appears to
work but I obtain the following error when I try to
invoke x.calcpi():

error '8000ffff'

/t.asp, line 4

Can anyone tell me what they think is happening here?

Possible problems: Internet Explorer ?
ActiveX Wizzard ?
XP Home Edition ?
SUN ASPONE ? (least likely)
Thanks,
John Gabriel
Nov 19 '05 #1
1 1615
to host an active/x control in IE you must implement the IDispatch interface
for all your methods you wish to call. (this is somethimes referd to as a
"dual" interface).

-- bruce (sqlwork.com)

"John Gabriel" <Jo*********@di scussions.micro soft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
I have set up a website and am testing ASPs. I have created
a very simple ActiveX component with two interfaces:

AboutBox() - displays About details
calcpi() - returns 3.14159

Here is my configuration (All the most up to date versions
except for Visual C++):

Windows XP (Home Edition).
Visual C++ 6.0
Apache Webserver
SUN ASPONE
Internet Explorer

When I use ATL COM Appwizard to create my ActiveX
component (DLL really), I can get the following
to work quite easily:

<%
Set x =Server.CreateO bject("AC.AcCtr l.1")

x.calcpi()
%>

However, when I use MFC ActiveX Control Wizzard to create
my ActiveX (.ocx really) component, the above does not
work. Well, the instantion of the x object appears to
work but I obtain the following error when I try to
invoke x.calcpi():

error '8000ffff'

/t.asp, line 4

Can anyone tell me what they think is happening here?

Possible problems: Internet Explorer ?
ActiveX Wizzard ?
XP Home Edition ?
SUN ASPONE ? (least likely)
Thanks,
John Gabriel

Nov 19 '05 #2

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

Similar topics

0
1257
by: Giobibo | last post by:
I have a VB.NET solution with some projects. One project is the main application, the other projects are custom controls library. In the main application I have an ActiveX charting tool. Sometimes when I open o rebuild my solution I see that the activeX controls or my .NET custom control are not anymore in the form where I placed them. They are still the region code: #Region " Windows Form Designer generated code "
3
2170
by: Paul Phillips | last post by:
Here is what I am trying to do. I have an application that is written in VB 6 and in this application it is accessing a custom dll file that was created using Microsoft Fortran Professional 4.0. Now I have created the same application as far as user interface in a ASP.Net web application but I am having trouble accessing the Fortran dll file. I am doing the DLLImport statement in a class by itself. I make an instance of this class...
0
2707
by: Ivan | last post by:
I have the SystemMonitor ActiveX control on a form and I try to register a custom performance counter. I expect that after registering the counter with the OS, the user would be able to add it through this System Monitor ActiveX control on the form. Yet, the Add dialog of this ActiveX does NOT contain the already registered counter. Does anyone know what might be wrong? Code snippet follows at the end. BTW if I have the code that registers...
0
1211
by: Brian Young | last post by:
My department is responsible for creating custom internal applications for many of our departments. Our strategy has always been to develop our applications as ActiveX controls (VB6) that get hosted in Internet Explorer. I've been tasked with coming up with a strategy for our migration to using VB.Net. So far, I've experienced a number of items that caused us a few stalls, but mostly was able to resolve them after some thinking and...
1
2200
by: Marja Ribbers-de Vroed | last post by:
I've been provided with a custom ActiveX DLL (written in C++) that reads a certiifcate to generate a signature for a passed XML string, and I'm having trouble instantiating it. The DLL is registered succesfully on my computer and I've explicitly granted IUSR_<machinename> to use it. The DLL comes with a testtool (written in Visual Basic) which instantiates the object like this: Dim loCertCryptCOM As New CCOMCRYPTLib.CCrypt As you can...
0
1187
by: pagates | last post by:
Hello, I use a COM-based ActiveX control as part of a C# Controls project. Part of this control is a ListView, and the ActiveX control has a property that returns the ListItems of this control. I had the following Build warning: "The referenced component 'MSComctlLib' has an updated custom wrapper available."
6
3510
by: Budhi Saputra Prasetya | last post by:
Hi All, I'm trying to display .NET Custom Control (created using Inherited Control) on an ASPX page, but no luck. I already registered the Control to Global Assembly Cache through .NET Framework 1.1 Configuration. I have also put a reference to the control on my ASP .NET project. The view that I get is only a disabled text area. Below is the code that I'm using:
2
3428
by: Lionel | last post by:
Hi, I've created a C# custom control that references some ActiveX controls. I need to host this control on a form that also hosts the same ActiveX controls. So I add the custom control and the individual ActiveX's to the toolbox & when I try to host the user control on the form using the toolbox, the VS.NET interop kicks in generates Ax*** wrappers for these.
0
1562
vekipeki
by: vekipeki | last post by:
Does anyone know if there is a way to set a custom mouse cursor for an ActiveX control in .Net? I am adding some mouse functionality to an existing ActiveX control, and would like to change the cursor shape according to the current state. It's a Windows Forms app, with an ActiveX control wrapped in the (automatically generated) class (derived from AxHost). Although AxHost is derived from Windows.Forms.Control, the public Cursor property does...
0
8372
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
8285
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
8706
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
8591
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
5621
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
4149
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
2709
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
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1592
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.