Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to create a library that can be called by Visual C++ 2009 Express Edition
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Johnson  
View profile  
 More options Oct 2, 7:29 pm
Newsgroups: alt.comp.lang.learn.c-c++
From: Johnson <gpsab...@yahoo.com>
Date: Fri, 02 Oct 2009 17:29:11 -0600
Local: Fri, Oct 2 2009 7:29 pm
Subject: How to create a library that can be called by Visual C++ 2009 Express Edition
I have created a C++ application with Visual C++ 2008 Express Edition,
and now I want to hide some codes into a library, then call this library
within the C++ application.

I think I can only create Class Library with Visual C++ 2008 Express
Edition, which will be managed codes. If I do so, I will encounter the
problem as calling managed C++ codes from unmanaged C++ codes, which is
far from easy. Any suggestion please?

For example, can I develop the library with other free tools/IDEs such
as Eclipse and gcc, or Borland C++? This way I will have a unmanaged C++
library. please help.

Thank you in advance!

Johnson


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulrich Eckhardt  
View profile  
 More options Oct 3, 3:41 am
Newsgroups: alt.comp.lang.learn.c-c++
Followup-To: alt.comp.lang.learn.c-c++
From: Ulrich Eckhardt <dooms...@knuut.de>
Date: Sat, 03 Oct 2009 09:41 +0200
Subject: Re: How to create a library that can be called by Visual C++ 2009 Express Edition

Johnson wrote:
> I have created a C++ application with Visual C++ 2008 Express Edition,
> and now I want to hide some codes into a library, then call this library
> within the C++ application.

This is outside the scope of C++ but falls in the scope of the particular
toolset you are using. I'd suggest asking in one of the microsoft.*
newsgroups. If your newsserver doesn't serve those, I think that MS provide
access to that hierarchy.

> For example, can I develop the library with other free tools/IDEs such
> as Eclipse and gcc, or Borland C++?

Generally, you can not mix code compiled with different C++ compilers.

Uli


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "How to create a library that can be called by Visual C++ 2009 Express Edition [OT]" by Stuart Golodetz
Stuart Golodetz  
View profile  
 More options Oct 3, 5:43 am
Newsgroups: alt.comp.lang.learn.c-c++
From: Stuart Golodetz <sgolod...@NdOiSaPlA.pMiPpLeExA.ScEom>
Date: Sat, 03 Oct 2009 10:43:39 +0100
Local: Sat, Oct 3 2009 5:43 am
Subject: Re: How to create a library that can be called by Visual C++ 2009 Express Edition [OT]

This isn't on-topic here (please see the FAQ at
http://www.faqs.org/faqs/C-faq/learn/, particularly FAQ 5) - you want a
Microsoft newsgroup under the microsoft.public.vc.* hierarchy (e.g.
microsoft.public.vc.ide_general is a good bet).

That being said, you can create an unmanaged static library from the
Visual C++ -> Win32 -> Win32 Console Application template: click Next in
the wizard and select "Static library" as the application type (you'll
probably also want to select "Empty project", for what it's worth).

Cheers,
Stu


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "How to create a library that can be called by Visual C++ 2009 Express Edition" by Christian Freund
Christian Freund  
View profile  
 More options Oct 3, 6:37 am
Newsgroups: alt.comp.lang.learn.c-c++
From: "Christian Freund" <chfre...@t-online.de>
Date: Sat, 3 Oct 2009 12:37:48 +0200
Local: Sat, Oct 3 2009 6:37 am
Subject: Re: How to create a library that can be called by Visual C++ 2009 Express Edition
It is possible to mix shared-object-code in a library for dynamic linking
(.so .a .dll etc...) on all platforms I was in contact with, no matter with
what compiler these libraries for dynamic linking were made.

"Ulrich Eckhardt" <dooms...@knuut.de> schrieb im Newsbeitrag
news:7iodgdF3352t5U1@mid.uni-berlin.de...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulrich Eckhardt  
View profile  
 More options Oct 3, 9:18 am
Newsgroups: alt.comp.lang.learn.c-c++
Followup-To: alt.comp.lang.learn.c-c++
From: Ulrich Eckhardt <dooms...@knuut.de>
Date: Sat, 03 Oct 2009 15:18:12 +0200
Local: Sat, Oct 3 2009 9:18 am
Subject: Re: How to create a library that can be called by Visual C++ 2009 Express Edition

Christian Freund wrote:
> It is possible to mix shared-object-code in a library for dynamic linking
> (.so .a .dll etc...) on all platforms I was in contact with, no matter
> with what compiler these libraries for dynamic linking were made.

You have to make a distinction between C and C++ here. In C++, you have to
consider two main things in which compilers differ:
 - name mangling
 - exception handling and other parts of the binary interface

Name mangling is explicitly aimed to make use of incompatible libraries fail
at link time. Other than that, compilers also come with different
implementations of the C++ standard library that are binary incompatible.

C libraries are generally compatible.

Uli


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johnson  
View profile  
 More options Oct 5, 11:44 am
Newsgroups: alt.comp.lang.learn.c-c++
From: Johnson <gpsab...@yahoo.com>
Date: Mon, 05 Oct 2009 09:44:53 -0600
Local: Mon, Oct 5 2009 11:44 am
Subject: Re: How to create a library that can be called by Visual C++ 2009 Express Edition

Thank you all for helping. The best way to learn it is to test it. I
will test the methods you proposed in my project. I will try the Win32
Console with unmanaged codes first.

Johnson


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google