Solved

Instance of COM in c++ 2005

Posted on 2006-07-17
1
269 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
1 Comment
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 500 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now