473,473 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

API call

Ian
I use an Active X control on an Access 97 database that displays pictures,
its called DbPix. My problem occurs when a user tries to open a form or
report that uses this control without first running the exe that installs
and registers this control. This creates a nasty error message, I would like
to display my own message instead asking them to run the exe. My question is
how can I check this control has been installed, I believe it is possible to
check the register using an API call but I cannot find much in the help file
as to how this is achieved.

I have considered having the Active X control auto install with my
application, however as this installs a program that I have no control over
and have no idea what potential there might be to damage any other programs,
I prefer to give the user the option of using this control or not.

Regards
Nov 13 '05 #1
2 1665
Look at the Application.References collection -- it contains
information about all the references used by your application,
including the broken reference to your ActiveX control.

Additional information:
http://www.granite.ab.ca/access/referencetroubles.htm
http://members.rogers.com/douglas.j....nceErrors.html
On Sun, 14 Nov 2004 13:33:44 GMT, "Ian" <ia********@ntlworld.com>
wrote:
I use an Active X control on an Access 97 database that displays pictures,
its called DbPix. My problem occurs when a user tries to open a form or
report that uses this control without first running the exe that installs
and registers this control. This creates a nasty error message, I would like
to display my own message instead asking them to run the exe. My question is
how can I check this control has been installed, I believe it is possible to
check the register using an API call but I cannot find much in the help file
as to how this is achieved.

I have considered having the Active X control auto install with my
application, however as this installs a program that I have no control over
and have no idea what potential there might be to damage any other programs,
I prefer to give the user the option of using this control or not.

Regards

**********************
ja**************@telusTELUS.net
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security
Nov 13 '05 #2


You could check the registry to see if the control is already installed, using functionality like the following:
http://www.mvps.org/access/api/api0015.htm

If required the installer could be included in the database and extracted and run when needed.

If your app needs this component, and you are going to install it on demand anyway, I don't see why you
don't install it with your app. Setting up an application and deliberately excluding it's dependencies
seems to be asking for trouble and adding unnecessary complications IMHO.

"Ian" <ia********@ntlworld.com> wrote:
I use an Active X control on an Access 97 database that displays pictures,
its called DbPix. My problem occurs when a user tries to open a form or
report that uses this control without first running the exe that installs
and registers this control. This creates a nasty error message, I would like
to display my own message instead asking them to run the exe. My question is
how can I check this control has been installed, I believe it is possible to
check the register using an API call but I cannot find much in the help file
as to how this is achieved.

I have considered having the Active X control auto install with my
application, however as this installs a program that I have no control over
and have no idea what potential there might be to damage any other programs,
I prefer to give the user the option of using this control or not.

Regards


Nov 13 '05 #3

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

Similar topics

23
by: Fabian Müller | last post by:
Hi all, my question is as follows: If have a class X and a class Y derived from X. Constructor of X is X(param1, param2) . Constructor of Y is Y(param1, ..., param4) .
35
by: hasho | last post by:
Why is "call by address" faster than "call by value"?
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
4
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage...
5
by: Amaryllis | last post by:
I'm trying to call a CL which is located on our AS400 from a Windows application. I've tried to code it in different ways, but I seem to get the same error every time. Does anyone have any clue...
13
by: mitchellpal | last post by:
i am really having a hard time trying to differentiate the two..........i mean.....anyone got a better idea how each occurs?
13
by: shsingh | last post by:
I have a class A containing some map as data variables. I creat an object of class A on heap by allocatiing memory by using "malloc". This will return me the required memory but the object is not...
3
by: cberthu | last post by:
Hi all, Is it possible to have two connects in the same rexx script to different DB's? I have to get data form on DB (with specifics selects and filter out some values with RExx) and save the...
9
by: CryptiqueGuy | last post by:
Consider the variadic function with the following prototype: int foo(int num,...); Here 'num' specifies the number of arguments, and assume that all the arguments that should be passed to this...
12
by: Rahul | last post by:
Hi Everyone, I have the following code and i'm able to invoke the destructor explicitly but not the constructor. and i get a compile time error when i invoke the constructor, why is this so? ...
0
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,...
0
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...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
1
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...
0
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...
0
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...

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.