Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to create a library with VC++ 2008 Express that can be called by unmanaged codes?

0 views
Skip to first unread message

Johnson

unread,
Oct 5, 2009, 11:50:01 AM10/5/09
to

Create a "Win32 Project", then select "Static library." Done.


Quote: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.


Probably not, if you want to link it with a program in VC9. Definitely
not if you want to take advantage of neat stuff like whole-program
optimization / link-time code generation.


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

Ian Collins

unread,
Oct 5, 2009, 3:16:41 PM10/5/09
to
Johnson wrote:
>
> 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.

Wrong group, try a windows programming forum/group.

--
Ian Collins

Stuart Golodetz

unread,
Oct 6, 2009, 6:51:02 AM10/6/09
to

I'm puzzled :) I thought I already answered your question in the other
thread (despite it being off-topic here). Were you posting again to say
that you'd managed to get it working? Not sure what the new thread is
for otherwise. It's still off-topic in any case - if you've got any more
questions you're best off posting them to one of the Microsoft
newsgroups (to which I also directed you in my original reply).

Regards,
Stu

0 new messages