473,836 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tlbimp.exe creats DLL with no constructors

I need to add a method to a VB6 OCX that we are consuming with C# (VS 2005)
Unfortunately the person that created the original DLL to reference in the
C# code is not available. When I create a DLL using TLBIMP QDWorkFlowAx.OC X
/namespace:AxQDW orkFlow and then try to build the C# code I get a compile
error stating ‘the type AxQDassembly. QDassemblyAxCla ss has no constructors
defined’

I don’t see anything in the TLBIMP doc that covers this.

I also have tried creating a new VB control and a C# consumer for that
control with the same result.

Jun 27 '08 #1
2 1741
Hello QSIDeveloper,

For ActiveX control developed by VB6, we do not use tlbimp to generate its
.net wrapper (interop assemblies) because AxtiveX controls require a
AxHost. Instead, we use the tool: aximp, which can be found in the
directory: C:\program files\Microsoft Visual Studio.NET\Fram eworkSDK\Bin\.
You can run the command as:

aximp QDWorkFlowAx.OC X

and it will generate two interop dlls: QDWorkFlowAx.dl l and
AxQDWorkFlowAx. dll

AxQDWorkFlowAx. dll contains the constructor we need to create the ActiveX
control.

For more information, I personally recommend the book "Profession al Visual
Basic Interoperabilit y - COM and VB6 to .NET" written by Billy Holli, and
Rockford Lhotka. In its Chapter 13, it introduce the interop between .NET
and ActiveX control in very detail.

If you have any other concerns or questions, feel free to let me know.

Regards,
Jialiang Ge (ji****@online. microsoft.com, remove ¡®online.¡¯)
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #2
Thank you that worked.

"Jialiang Ge [MSFT]" wrote:
Hello QSIDeveloper,

For ActiveX control developed by VB6, we do not use tlbimp to generate its
.net wrapper (interop assemblies) because AxtiveX controls require a
AxHost. Instead, we use the tool: aximp, which can be found in the
directory: C:\program files\Microsoft Visual Studio.NET\Fram eworkSDK\Bin\.
You can run the command as:

aximp QDWorkFlowAx.OC X

and it will generate two interop dlls: QDWorkFlowAx.dl l and
AxQDWorkFlowAx. dll

AxQDWorkFlowAx. dll contains the constructor we need to create the ActiveX
control.

For more information, I personally recommend the book "Profession al Visual
Basic Interoperabilit y - COM and VB6 to .NET" written by Billy Holli, and
Rockford Lhotka. In its Chapter 13, it introduce the interop between .NET
and ActiveX control in very detail.

If you have any other concerns or questions, feel free to let me know.

Regards,
Jialiang Ge (ji****@online. microsoft.com, remove ¡®online.¡¯ )
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #3

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

Similar topics

42
5818
by: Edward Diener | last post by:
Coming from the C++ world I can not understand the reason why copy constructors are not used in the .NET framework. A copy constructor creates an object from a copy of another object of the same kind. It sounds simple but evidently .NET has difficulty with this concept for some reason. I do understand that .NET objects are created on the GC heap but that doesn't mean that they couldn't be copied from another object of the same kind when...
1
325
by: Robert Scheer | last post by:
Hi. When using the tlbimp.exe utility, what are the differences (if any) between the /keyfile: and /keycontainer: switches? Accordingly to the documentation both of them can be used to sign an assembly but one receives a 'filename' and the other receives a 'containername' Thanks, Robert Scheer
1
1749
by: Xiaopeng Qu | last post by:
Hi, I installed DB2 8.1 Express on the WindowsXP, and when I begin to use it, I found DB2 creates many new folders in C:\Documents and Settings. It creats more and more folders every day. All new folders has name like: "db2admin", "db2admin.MACHINENAME", "db2admin.MACHINENAME.001", "db2admin.MACHINENAME.002", ... Can any one help me with this? Thanks!
0
1386
by: Namratha Shah \(Nasha\) | last post by:
Type Library Importer : tlbImp This tool is used to convert the type library definitons found in COM components to .NET assembly. This tool works on the entire type library at the same time and hence you cannot use this tool to generate type information for a particular type found in the COM Component. The assemblies that are produced by this tool can be easily strong named by using the /keyfile or /keycontainer options.
1
2652
by: roch | last post by:
hi i've already install the .net framework sdk and tried the tlbimp sample.dll /out:sampleDotNet.dll an error occured... 'tlbimp' is not recognized as an internal or external command, operable program or batch file im trying to use third party COM components (made in VB6) in the ASP.net environment.
0
1567
by: JS | last post by:
Hello I want translate a project from VB6 to VB.Net 1.0 In this project I have a graph with a MsChart COM control. When I want make reference (Projet/Ref /Com controle) to this chart I have an error message " Tlbimp.exe not found. Reinstall VB.net". So Tlbimp is in my folder "D:\Program Files\Microsoft Visual Studio ..NET\FrameworkSDK\Bin" 1-How VB.net cant found the path for Tlbimp ? 2 Else maybe I must execute manually the wrapper...
3
1640
by: John | last post by:
Before anything else, thanks Marina, Workgroups and Ralf, for your help so far. I am now able to better define the question! After adding more console printout lines to CSum, I tried all permutations for constructors (none, default, two argument) and method call in body of constructor (none and one). Maybe this example is not representative, but for this example I found the following: 1. Without any constructors, the program works fine...
2
2494
by: AA | last post by:
Hi, I would like to use the type library import exe tlbimp.exe without actually having the .NET framework setup on the machine. Is there any way, like installing some minimal dlls, so that I can use tlbimp? Currently, when I run the tlbimp.exe, I get an error saying " To run this application, you must install one of the following versions on the ..NET Framework: v2.0.50727". Can anyone suggest something?
1
3222
by: Tim Haughton | last post by:
I'm trying to use the IThumbnailCache COM interface to query Vista's system thumbnail cache. Unfortunately there's no type library for it. Here's what I've done so far: - Created thumbcache.tlb from thumbcache.idl using midl - Created thumbcachelib.dll from thumbcache.tlb using tlbimp - Tried to use it.
0
9825
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
9672
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
10859
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
10560
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
10601
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
10260
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...
0
5653
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...
1
4460
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3116
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.