473,395 Members | 1,653 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,395 software developers and data experts.

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.OCX
/namespace:AxQDWorkFlow and then try to build the C# code I get a compile
error stating ‘the type AxQDassembly. QDassemblyAxClass 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 1721
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\FrameworkSDK\Bin\.
You can run the command as:

aximp QDWorkFlowAx.OCX

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

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

For more information, I personally recommend the book "Professional Visual
Basic Interoperability - 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****@microsoft.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\FrameworkSDK\Bin\.
You can run the command as:

aximp QDWorkFlowAx.OCX

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

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

For more information, I personally recommend the book "Professional Visual
Basic Interoperability - 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****@microsoft.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
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...
1
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...
1
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...
0
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...
1
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...
0
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...
3
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...
2
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.