Hello,
I have an application that exposes a VB 6 ActiveX API. I can write
DLLs that plug into the application and add functionality to the
application. I write these DLLs by implementing an interface.
I have been doing this in VB 6. On initial review, it appears that it
should be possible to do it in VB 2005. I have actually successfully
implemented the interface and compiled a DLL. However, my application
fails to initialize the DLL.
I added a simple "on error goto" in order to try to get an error
written to the event log, but it does not fire.
Despite quite a bit of time spent googling, I can't get a clear
picture of what actually is necessary to get the COM API to interact
successfully with my "interop" code. In fact, I'm not even sure I'm
proceeding in the correct manner.
I implemented the interface in a class library, using a simple method
that just writes a log entry. I checked the box to make the class
library COM-visible. I strong-named the DLL. I compiled and copied
all the resulting files from the bin/Release directory to the
designated "plugins" directory of my application. I made the
necessary configuration modification to the application for it to
recognize the plugin.
I registered the DLL with regasm.
I also tried adding the DLL itself to the GAC. This failed with an
"unidentifi ed error" using the gacutil.
All I'm getting from my application is "failed to initialize the
plugin."
I would appreciate some guidance as to how to achieve my goal, if it
even is possible. To restate: I want to write an ActiveX DLL in VB
2005 (using Express Edition) that will plug into my COM-based
application running on WinXP Pro.
Thanks for any help.
mp
--
'cat' is not recognized as an internal or external command,
operable program or batch file. 3 2276
Michael,
Did you set a reference to it using Project->Path->Com and select the dll?
Cor
"Michael Powe" <mi**********@t rollope.org> schreef in bericht
news:ur******** ***@trollope.or g... Hello,
I have an application that exposes a VB 6 ActiveX API. I can write DLLs that plug into the application and add functionality to the application. I write these DLLs by implementing an interface.
I have been doing this in VB 6. On initial review, it appears that it should be possible to do it in VB 2005. I have actually successfully implemented the interface and compiled a DLL. However, my application fails to initialize the DLL.
I added a simple "on error goto" in order to try to get an error written to the event log, but it does not fire.
Despite quite a bit of time spent googling, I can't get a clear picture of what actually is necessary to get the COM API to interact successfully with my "interop" code. In fact, I'm not even sure I'm proceeding in the correct manner.
I implemented the interface in a class library, using a simple method that just writes a log entry. I checked the box to make the class library COM-visible. I strong-named the DLL. I compiled and copied all the resulting files from the bin/Release directory to the designated "plugins" directory of my application. I made the necessary configuration modification to the application for it to recognize the plugin.
I registered the DLL with regasm.
I also tried adding the DLL itself to the GAC. This failed with an "unidentifi ed error" using the gacutil.
All I'm getting from my application is "failed to initialize the plugin."
I would appreciate some guidance as to how to achieve my goal, if it even is possible. To restate: I want to write an ActiveX DLL in VB 2005 (using Express Edition) that will plug into my COM-based application running on WinXP Pro.
Thanks for any help.
mp
-- 'cat' is not recognized as an internal or external command, operable program or batch file.
"Michael Powe" <mi**********@t rollope.org> schrieb: I have an application that exposes a VB 6 ActiveX API. I can write DLLs that plug into the application and add functionality to the application. I write these DLLs by implementing an interface.
I have been doing this in VB 6. On initial review, it appears that it should be possible to do it in VB 2005. I have actually successfully implemented the interface and compiled a DLL. However, my application fails to initialize the DLL.
I added a simple "on error goto" in order to try to get an error written to the event log, but it does not fire.
Despite quite a bit of time spent googling, I can't get a clear picture of what actually is necessary to get the COM API to interact successfully with my "interop" code. In fact, I'm not even sure I'm proceeding in the correct manner.
I implemented the interface in a class library, using a simple method that just writes a log entry. I checked the box to make the class library COM-visible. I strong-named the DLL. I compiled and copied all the resulting files from the bin/Release directory to the designated "plugins" directory of my application. I made the necessary configuration modification to the application for it to recognize the plugin.
I registered the DLL with regasm.
Did you reference the DLL file or the TLB file from within your VB6
application?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Michael
first of all i set all the attribute flags myself and do not rely on the IDE
doing this for me as my experience is that this sometimes goes wrong
but to get back to your problem a COM class must have a default constructor
without parameters
public sub new()
mybase.new
end sub
you probably forgot that ,, if you did you can see the interface but can`t
start it from VB6
regards
Michel Posseth [MCP]
"Michael Powe" <mi**********@t rollope.org> schreef in bericht
news:ur******** ***@trollope.or g... Hello,
I have an application that exposes a VB 6 ActiveX API. I can write DLLs that plug into the application and add functionality to the application. I write these DLLs by implementing an interface.
I have been doing this in VB 6. On initial review, it appears that it should be possible to do it in VB 2005. I have actually successfully implemented the interface and compiled a DLL. However, my application fails to initialize the DLL.
I added a simple "on error goto" in order to try to get an error written to the event log, but it does not fire.
Despite quite a bit of time spent googling, I can't get a clear picture of what actually is necessary to get the COM API to interact successfully with my "interop" code. In fact, I'm not even sure I'm proceeding in the correct manner.
I implemented the interface in a class library, using a simple method that just writes a log entry. I checked the box to make the class library COM-visible. I strong-named the DLL. I compiled and copied all the resulting files from the bin/Release directory to the designated "plugins" directory of my application. I made the necessary configuration modification to the application for it to recognize the plugin.
I registered the DLL with regasm.
I also tried adding the DLL itself to the GAC. This failed with an "unidentifi ed error" using the gacutil.
All I'm getting from my application is "failed to initialize the plugin."
I would appreciate some guidance as to how to achieve my goal, if it even is possible. To restate: I want to write an ActiveX DLL in VB 2005 (using Express Edition) that will plug into my COM-based application running on WinXP Pro.
Thanks for any help.
mp
-- 'cat' is not recognized as an internal or external command, operable program or batch file. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DartmanX |
last post by:
Is there a simple way to determine if someone using Internet Explorer
has completely disabled ActiveX controls?
Jason
|
by: adam |
last post by:
hi
is it possible to write activeX controls in C# and if so
any suggestions of links to sample code would be
appreciated?
thanks
Adam
|
by: Gazelle |
last post by:
I have a dilemma, that I am hopping I can find some help with. He is the back
story so everyone sort of understands what it is that I am trying to
accomplish.
My problem:
I have multiple users, each user has 2 or more CPU’s, using 3 or more
monitors.
1 CPU system is running my web application. (Slick, high performance, and
wonderful)
|
by: Jeffery Franzen |
last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms?
I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app.
I do the add control to pallete and then add a reference. I get the interop dll added to bin folder.
I did this with the MediaPlayer activex control as a simple...
|
by: Jarod_24 |
last post by:
I just downloaded a activex control that was written in C# and tried to view
it on my PDA's Internet Explorer.
At my regular PC it displayed just fine, but nothing showed up on the pda.
Do ActiveX controls that are to be used by a pda need to be written in the
..net compact framework, or am i missing something else here?
i have a HP iPaq...
| |
by: Michael Tissington |
last post by:
I have a Visual Basic 6.0 ActiveX Control.
It seems there is no way with VS 2005 to create a similar control for
containers that host ActiverX controls, is this correct ?
I'm thinking of converting the VB 6 project to VC in VS 2005.
This seems to be a very different process.
Where is a good place to start?
|
by: =?Utf-8?B?R3JlZyBN?= |
last post by:
Hello,
I'm running an asp.net, intranet web application using .net framework 1.1 on
IIS5.1 / 6.0. Through the web application, I would like to press a button on
the web page, have another window (not web-based or part of current
application) brought to the front and focused (findwindow api) and have the
button scrape the contents of the...
|
by: mmedved |
last post by:
I ran into a problem using a custom ActiveX I wrote in VB 2005.
It has a property that is "indexed" - that is, it has a parameter and
needs to be addressed as (Index) - kinda like this:
MyActiveXControl.MyProperty(Index)
The thing is, VB2005 refuses to recognize that this property exists.
Other - non-indexed - properties work ok, and...
|
by: deccio |
last post by:
I have create an activex Control with Visual studio 2005 and framework
2.0 in c# to add drag & drop functionality to upload multi file.
When I use it in a windows form it work fine. Infact if I select 3
files from a windows explorer and I move it in a listbox in my
activeX, I find my 3 files added in the listbox but if I use my
activeX in a...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |