Solved

Instance of COM in c++ 2005

Posted on 2006-07-17
1
308 Views
Last Modified: 2013-11-25
I have vb.net COM file which is located on different machine. On my machine it is registered with codebase switch.
I was creating that COM in MFC project on my machine using CoCreateInstance. It was working fine.

Now I would like to switch to c++ 2005 and when I use CoCreateInstance I have linking errors.
When I add that vb.net COM object as reference it must be either in gac or the same folder as running calling process.
I will not be able to add that com to gac and file will not be in the same folder.

How Can I do it the same way in c++.net.
0
Comment
Question by:PLABB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 500 total points
ID: 17123053
Please post the linker errors that you are getting.

I don't fully understand the second part of your question. You can have a look at this chapter
http://www.samspublishing.com/articles/article.asp?p=27219&rl=1
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Query performance - SQL Server 20 85
typedef std::deque<BYTE> ByteVector is broken in vs2012 23 95
Where to obtain Oracle Data Provider for .NET 3.5 7 62
Dialogbox API leak? 18 120
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question