473,385 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.CreateObject("AC.AcCtrl.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 1587
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*********@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.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.CreateObject("AC.AcCtrl.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
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. ...
3
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....
0
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...
0
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...
1
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...
0
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....
6
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...
2
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...
0
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...
1
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...
0
isladogs
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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
0
BarryA
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...
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.