473,411 Members | 2,272 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,411 software developers and data experts.

Catching An Error

Hello,

I have made an application that has a Shock Control on it. I have two
applications one in VB.NET and the other in VB 6.0. If Shock is installed
on the Install Computer the application runs great, But if it does not I
receive the following error: Cannot Load Custom Control. What I am looking
for is a way to catch this error in both applications. If I can catch it
then the response to the error will be installing shock.

Thanks
Chuck
Nov 20 '05 #1
3 901
Charles,

* "Charles A. Lackman" <Ch*****@cet.com> scripsit:
I have made an application that has a Shock Control on it. I have two
applications one in VB.NET and the other in VB 6.0. If Shock is installed
on the Install Computer the application runs great, But if it does not I
receive the following error: Cannot Load Custom Control. What I am looking
for is a way to catch this error in both applications. If I can catch it
then the response to the error will be installing shock.


Does Shock install an ActiveX control or another library on which the
other application depends on? Please give us more information.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hello,

I am using the Shockwave Flash Object from Visual Studio.Net which is
located inside Windows\System32\Macromed\flash\Flash.ocx

I believe the error happens when Form1 attemps to initialize because it
cannot find the Shock dependancies.

I have simply dragged and dropped the control onto a form and changed the
properties inside the form load event.

Thanks,

Chuck

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c5************@ID-208219.news.uni-berlin.de...
Charles,

* "Charles A. Lackman" <Ch*****@cet.com> scripsit:
I have made an application that has a Shock Control on it. I have two
applications one in VB.NET and the other in VB 6.0. If Shock is installed on the Install Computer the application runs great, But if it does not I
receive the following error: Cannot Load Custom Control. What I am looking for is a way to catch this error in both applications. If I can catch it then the response to the error will be installing shock.


Does Shock install an ActiveX control or another library on which the
other application depends on? Please give us more information.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
* "Charles A. Lackman" <Ch*****@cet.com> scripsit:
I am using the Shockwave Flash Object from Visual Studio.Net which is
located inside Windows\System32\Macromed\flash\Flash.ocx

I believe the error happens when Form1 attemps to initialize because it
cannot find the Shock dependancies.

I have simply dragged and dropped the control onto a form and changed the
properties inside the form load event.


You will have to make sure the control is installed, for example, by
adding it to the setup which is used to install your application.
VS.NET comes with a Setup wizard, in VB.NET Standard you will have to
create the setup package from a setup template. Remember to make sure
that you are allowed to redistribute the component.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

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

Similar topics

8
by: Adam H. Peterson | last post by:
Hello, I sometimes find myself writing code something like this: try { Derived &d=dynamic_cast<Derived&>(b); d.do_something_complicated(); // etc.... } catch (std::bad_cast) { throw...
7
by: cmay | last post by:
FxCop complains every time I catch System.Exception. I don't see the value in trying to catch every possible exception type (or even figuring out what exceptions can be caught) by a given block...
2
by: Geoff O | last post by:
I have a try catch block in a web service that executes ADO.NET code that interfaces with an Oracle database. In addition, I have a try catch block in the client around the call to the web...
3
by: Peter A. Schott | last post by:
I know there's got to be an easy way to do this - I want a way to catch the error text that would normally be shown in an interactive session and put that value into a string I can use later. I've...
7
by: Derek Schuff | last post by:
I'm sorry if this is a FAQ or on an easily-accesible "RTFM" style page, but i couldnt find it. I have some code like this: for line in f: toks = line.split() try: if int(toks,16) ==...
2
by: Eric Lilja | last post by:
Hello, consider this complete program: #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class Hanna {
5
by: JonnyB | last post by:
Hi all, I have a txt box that users enter a number in to create a booking. When a user doesn't enter a value access brings up an error message because the value cant be null which is fine but...
2
by: fischermx | last post by:
Exception Catching difference between VC++ and C# In C# I have this: try { int x, y, z; x = 20; y = 0;
12
by: Karlo Lozovina | last post by:
I'm not sure if Python can do this, and I can't find it on the web. So, here it goes: try: some_function() except SomeException: some_function2() some_function3() ...
3
by: john | last post by:
I wrapped some fortran code using F2PY and need to be able to catch fortran runtime errors to run the following: # "grid" is a wrapped fortran module # no runtime errors incurred when run with...
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...
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
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,...
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...
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
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...

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.