473,785 Members | 2,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

adding reference to an COM-object in VB doesn't work

I have the follwing problem. I want to add a reference to an COM-
object ("ek1.exe").

In Excel-VBA it works without any problems.
In MS Visual Studio 2005 VB this doesn't work and I get the error
message:
"A reference to 'z:\ek.exe' could not be added. Please make sure that
the file is accessible, and that is a valid assembly or COM
component."
Any help is highly appreciated.
Thanks in advance!
Diego
p.s.: I use follwing versions:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727
Excel 2003 (11.8134.8132) SP2

Aug 27 '07 #1
1 1458
Wel if it works in VBA through COM it should also work in VB.Net

i guess you are trying late binding in VB.net ??? maybe you could post the
code that fails

object ("ek1.exe"). in VB should be at least a createobject("f oo")

VBA ISNOT VB :-) ( a German and a Dutchman might look the same and there
language sounds simular
for a foreigner , but put them both in one room and if they both speak good
English they end up talking in this language to each other )

hth

Michel


"diego" <er**********@g mail.comschreef in bericht
news:11******** **************@ 22g2000hsm.goog legroups.com...
>I have the follwing problem. I want to add a reference to an COM-
object ("ek1.exe").

In Excel-VBA it works without any problems.
In MS Visual Studio 2005 VB this doesn't work and I get the error
message:
"A reference to 'z:\ek.exe' could not be added. Please make sure that
the file is accessible, and that is a valid assembly or COM
component."
Any help is highly appreciated.
Thanks in advance!
Diego
p.s.: I use follwing versions:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727
Excel 2003 (11.8134.8132) SP2

Aug 27 '07 #2

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

Similar topics

2
2205
by: Lady_A | last post by:
Hi, I need to add a reference to a static library (*.lib) to a COM/ATL project in VS.NET. Apparently if this library is not in my solution that is not possible using the ordinary way : Add Reference. The Add Reference Dialog only allows me to browse and add a *.dll,*.ocx,*.tlb, *.olb and *.exe. No *.lib! While if it is in the same solution I automatically see the library
2
5604
by: Neil Guyette | last post by:
Hello, All, It would be greatly appreciated if someone could throw me the bone on this question! I'm working on a project in Visual C++ .NET. I'm trying to generate a list of SQL servers that reside on my domain. For this to happen, I must add a reference to SQLDMO to my project. After I add the reference, I try to use the components library but errors when compiled.
0
1027
by: Daniel Passwater via DotNetMonster.com | last post by:
I follow the steps to add the reference. When I browse to the .dll, select it, and click OK, I get a message box: "Add reference: Error adding reference to the project." Has anyone out there had this problem before? Any suggestions? Thanks in advance for the help. Daniel --
3
2228
by: Kiran | last post by:
Hi, If I create a Virtual directory with application name programmatically it will not show up in the available web services while adding web reference(Dynamic discovery fails). Where as if I create the virtual directory manually it will shown up while adding web reference. I have used the following code to create it
3
5767
by: MIGUEL | last post by:
Hi all, I'm quite lost with how adding web references to a project creates proxy classes. I've developed a web service with two classes inside and that contains three references to three DLLs. After building it up, I've deployed it on the web server. From my Windows application, I then add a web reference to that web service.
1
3640
by: rgarf | last post by:
I have a web service that is consumed by a C++ application. I added a C# dll reference to the web service, When the web service calls a method on the dll, it sends back an HRESULT of E_FAIL to my C++ application. What is causing the web service to return an E_FAIL when it calls the method on the dll it added as a reference? Thanks
0
2081
by: davec426913 | last post by:
I am having trouble with a reference in my VB.NET application. The code I am using is straight from MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmsrvsdk/htm/configuringbrdcstpubpt.asp Currently, it is barebones until I get this resolved. <code> Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices
1
1179
by: vinodkreddy1 | last post by:
hi good morning every body... i have a problem in adding Reference of any dll to asp.net 2005. i am trying to add dlls reference to asp.net application. but they r not adding to the reference list of the application. so i am not able to imports that. it is working in windows 2005 and vs 2003. the other thing is i tried the application coded in other system, copied to my system. in that also all referenced dlls are not showing. is the...
8
19941
by: Jason | last post by:
Hello, I am trying to utilitze the AJAX Control toolkit in my asp.net project. I have added a reference to AjaxControlToolkit.dll, and in my page, added these lines of code: <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true" EnableScriptLocalization="true" ID="ScriptManager1" />
1
1905
by: Bart Steur | last post by:
Hi As a VB6 user I'm unfamiliar with the Treeview control of VB2005. I read it was changed but I have a hard time finding the right help/samples for my problem. In VB6 you had 1 collection, and adding a node was quite simple. Just specify the nodes key and position relative to the key where you want to add your new node. In VB2005 you can't do that anymore. I looking for a sample or help how this
0
9645
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
9480
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
10330
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, 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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10153
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...
1
10093
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9952
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...
1
7500
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5381
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...
3
2880
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.