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

Call COM Object by VC++

Dear All,

I am a NewBie in Visual C++. I would like to know how to call a "Active X
Dll" COM Library created by VB 6.0

At this moment, i am using a simple hello world console program and a
customized VB 6 COM as the client.

Should i use something like ?: #import "D:\testing.dll"

http://support.microsoft.com/kb/262450/zh-tw

The point is it can not work!

I am usig Visual C++ in VS 2005 as Client and VB6 as COM Object

If you have any idea please give me a hand

Thank you very much in advance

EricLun

Mar 20 '07 #1
1 1476

"EricLun" <er*********@hotmail.comwrote in message
news:1E**********************************@microsof t.com...
Dear All,

I am a NewBie in Visual C++. I would like to know how to call a "Active X
Dll" COM Library created by VB 6.0

At this moment, i am using a simple hello world console program and a
customized VB 6 COM as the client.

Should i use something like ?: #import "D:\testing.dll"
I would probably add the no_namespace attribute, as in:

#import "D:\testing.dll" no_namespace

This will generate two files in your build directory, with *.tlh and *.tli
extensions. Take a look at the contents. It will show the methods and
properties that can be used to call into your VB6 DLL.
http://support.microsoft.com/kb/262450/zh-tw

The point is it can not work!
What problems are you encountering?

Brian

Mar 21 '07 #2

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

Similar topics

0
by: Eugene Safrankow | last post by:
Hello All! I've encountered with the error when I call a method of dependency library (written in managed VC++) from Smart Client placed on a web page. In general, I make a call to the Windows...
2
by: Sandeep | last post by:
Hi I have a VC++ ui which has an HTML Container. I have several Javascript functions that need to call functions in VC++ UI. For this , the existing code is using a call "windows.external". What...
8
by: Paul | last post by:
Hi all may I know how to use C# DLL inside my VC++ Project ? Thanks in advance.
4
by: Peter Hemmingsen | last post by:
Hi, I have a dotnet object (implemented in mc++ and used in c#) which have a property called "Info". The Info property is also a dotnet object (implemented in mc++). In the constructor of the...
2
by: Craig | last post by:
I've been writing C# code for maybe as much as 2 weeks now. The code I'm writing is exposed as a garden variety COM object that VC++ 6.0 and VB 6.0 can use. Coincidentally my COM development...
4
by: Hoss | last post by:
Hi I am an ASP.NET newbie and I have a VB.NET application I am trying to write in ASP.NET . The problem is that the application calls a DLL written using VC++.NET . How do I call this DLL from the...
2
by: Zak Milas | last post by:
Hello I have created an ATL in VC++ and want to call the function from a click of a button on C# ASP.NET. I was able to reference my DLL file in ASPX, but unfortunately it has two CHAR inputs and...
1
by: Robert Ludewig | last post by:
I have sucessfully imported and compiled a complex MFC 6.0 project from vc++6.0 (MFC6.0) into vc++ 8.0 (MFC 8.0). It contains several subprojects (libs and dlls). In vc++ 6.0 those project linked...
5
by: Filippo Bettinaglio | last post by:
I have a DLL written in C++ (unmanaged), which I want to inteface with. I created a standard window form program with VC++ 2005, all fine I have imported an .h file the .lib file and all works. ...
6
by: fiefie.niles | last post by:
We have a C++ DLL that we call from VB6 program. This is how we declare the DLL in VB6: Declare Function RefSearch Lib "csearch32.dll" (ByVal path As String, ByVal findword As String, ByVal...
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: 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
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
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
agi2029
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,...
0
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...

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.