473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Using a static ".lib" file in managed C++

Hi,

I have natively compiled ".lib" file which I need to use in managed
code. After some searching, I got to know that C++.NET 2005 through
its C++/CLI can directly make use of native binaries(including .lib
files). However I didn't find even a single example of elaborating how
to do it. Can anyone provide a small example snippet?

Regards,
VB
Apr 4 '08 #1
1 3150
>I have natively compiled ".lib" file which I need to use in managed
>code. After some searching, I got to know that C++.NET 2005 through
its C++/CLI can directly make use of native binaries(including .lib
files). However I didn't find even a single example of elaborating how
to do it.
There shouldn't be anything out of the ordinary to it - perhaps that's
why there's no specific instructions?

I'd just #include the lib's header file, write the code, and add the
lib to the list of libraries in the Linker settings.

Dave
Apr 4 '08 #2

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

Similar topics

3
by: Ian Rowland | last post by:
Is there a way, using managed code, to determine the Service Pack of the OS without resorting to registry calls? OSVersion doesn't give this information. It seems the only way is to use the...
1
by: Dave | last post by:
Hi, I am writing a C# application that need to use an old c++ code in lib files from vc++ 6 can i do that? Can i import lib file to C# app and how? Can you give me some examples code how to do...
3
by: Klynt | last post by:
Is it possible to declare a static managed member in managed code? gcroot<MyClass*> instance works, but static gcroot<MyClass*> staticinstance does not. Any suggestions?
0
by: Munch | last post by:
LIB file dat is created during build process of VS,is the only LIB file in VS or we do have other types of LIB filse also..... to create a lib file what files one need? actually i only have a LIB...
2
by: =?Utf-8?B?SmF6eg==?= | last post by:
Hello, Anyone knows which tool is able to find out the dependency of a .lib file. Seems Depends.exe only works for .dll. Thanks, Jazz
1
by: bhushan11 | last post by:
hello sir i am searching in your site but i dont get how to place question about visual c++. so i am post this vc++ question in .net , sorre about that i am working on visual c++ lang. but i...
1
by: Vivienne | last post by:
Hi, I am trying to use Neon library to develop a simple webdav client. I am using VC2005 under Windows. For doing this, I downloaded the source files of Neon and build it using "nmake" in the...
5
by: jain236 | last post by:
HI every body, i am always getting the following error while parsing a directory . i am reading a directory by doing ls and trying to find out the name,type,size, mtime and mode of files from...
3
by: David K in San Jose | last post by:
I'm using managed (CLR) C++ in VS2005 to create a Windows app that contains a form named "MyForm". In the code for that form I'm trying to invoke some static functions by using an array of function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.