473,545 Members | 1,224 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use VS2005 ClassLibrary in old MFC project?

Hi all,

I've got a third party class library that i want to use in an 'old' MFC
project (actually i need it in a Borland C++ builder project, but if i can
use it in MFC i propably can convert it to Borland.)

Because i only need 3 methods of the third party dll i want to create a C++
ClassLibrary wrapper. But how can i access this C++ ClassLibrary from an MFC
project? It's the problem of using managed code in an unmanaged environment.

I tried a lot of examples that uses COM to export to MFC. I think this is
the way to go, but get a lot of syntax problem because the examples are
mostly VS2003 code.

Can anybody help me with an example written in VS2005?

Thanx in advance.
Feb 22 '07 #1
1 1307
I've got a third party class library that i want to use in an 'old' MFC
project (actually i need it in a Borland C++ builder project, but if i can
use it in MFC i propably can convert it to Borland.)

Because i only need 3 methods of the third party dll i want to create a
C++
ClassLibrary wrapper. But how can i access this C++ ClassLibrary from an
MFC
project? It's the problem of using managed code in an unmanaged
environment.

I tried a lot of examples that uses COM to export to MFC. I think this is
the way to go, but get a lot of syntax problem because the examples are
mostly VS2003 code.

Can anybody help me with an example written in VS2005?
Hi,
I don't have any examples at hand, but have you tried looking on
www.codeprojects.com ?
That is usually the first place I go to for examples.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Feb 22 '07 #2

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

Similar topics

0
1967
by: Will Waggoner | last post by:
Ok, I've been hung up on this issue for quite some time now and I would like some help in getting it to work. I think this may be a setup issue but I'd like to ask your eminences first. Here's some backstory: I need to create a VB.NET classlibrary (or another structure) to use objects for our business logic. However, as our upgrade is an...
4
2881
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how our current extensive number of .Net 1.1 web apps convert to it. After a week's time I dont's mind the converted app code that was broken and had...
5
1982
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes VS.Net 2005 to render the associated .resx and .vb file inoperative. detail... I converted an asp 1.1 vb.net app using the vs2005 conversion...
10
2510
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. Anyway, I decided to have a go at loading them as web projects from our Win2k3 server. It gets so far and then says "The web server does not appear to...
2
2506
by: Poobalam | last post by:
Hi, I just got VS.NET 2005. It has a new template called WebControlLibrary. I normally use ClassLibrary to build my business logic and use that dll into ASP.NET project. However I'm assuming I can use WebControlLibrary to build the business logic dll and use it with ASP.NET. What is the main difference between WebControlLibrary vs...
7
10107
by: Stefan | last post by:
Hi! I´m creating a classlibrary project. The output will be a dll. This dll will have to read some settings from some kind of config-file. Normally, when creating a standard .exe-program I use the app.config file. Which is the best approach to use when creating a classlibrary? Please give me some eaxmple. I´m using VB.NET 2.0 Best...
3
1241
by: yxq | last post by:
Hello, I writed some classes(but not a class) in a ClassLibrary and builded a test.dll file, but how to invoke the test.dll? 'test.dll////////////////////// Moudle MyTest Public class A ... End Class
15
4199
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers mapped to the local devleopment folder. Project compiles to a subfolder .\bin. To deploy, the asmx page and bin subfolder are copied to the production...
3
2396
by: Academia | last post by:
I have a vs2003 project (actually 44 of them) that I want to convert to VS2005 format. To fix a usercontrol file I created the Designer.vb file and moved the Inherited and Class ( change to partial class) lines to it so it started with: <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()_ Partial Class UserControl1
0
7398
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...
0
7656
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. ...
0
7805
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...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3449
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...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
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
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
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...

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.