473,486 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Static Libaries in .NET

TGF
How do I add a static library (*.lib) to a .NET MC++ app?

--
TGF

Nov 16 '05 #1
3 969
If that library contains native code only, you do it in exactly the same way
as for a native application. If it contains managed code then it is not
supported and will not generally work.

Ronald Laeremans
Visual C++ team

"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:ON**************@TK2MSFTNGP09.phx.gbl...
How do I add a static library (*.lib) to a .NET MC++ app?

--
TGF

Nov 16 '05 #2

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
If that library contains native code only, you do it in exactly the same way as for a native application.
seems reasonable.
If it contains managed code then it is not
supported and will not generally work.

Ronald Laeremans
Visual C++ team


Exactly how would one create a static library that contains managed code?

bob
Nov 16 '05 #3
You cannot create a static library that contains managed code. Or to be more
exact, you can create one, but using it won't work. This is a (undesired)
side effect on how we currently do the mixing of managed and unmanaged code.

Ronald

"bob holder" <bo********@boeing.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
If that library contains native code only, you do it in exactly the same

way
as for a native application.


seems reasonable.
>If it contains managed code then it is not
supported and will not generally work.

Ronald Laeremans
Visual C++ team


Exactly how would one create a static library that contains managed code?

bob

Nov 16 '05 #4

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

Similar topics

2
1608
by: Daniel Frickemeier | last post by:
Hi, I have a strange problem. I´m developing a small python-program wiht the mysql-python-module. The program should run on a server without any mysql-installation. Is there any posibility to...
8
4557
by: Scott J. McCaughrin | last post by:
The following program compiles fine but elicits this message from the linker: "undefined reference to VarArray::funct" and thus fails. It seems to behave as if the static data-member:...
15
6551
by: Samee Zahur | last post by:
Question: How do friend functions and static member functions differ in terms of functionality? I mean, neither necessarily needs an object of the class to be created before they are called and...
40
3178
by: vishnu | last post by:
Hi friend, i have a problem in my program what is the use of static function in C lang? plz help me
5
1894
by: Mountain Bikn' Guy | last post by:
How would I do this? public sealed class UtilityClass { public static MyObject Object1;//see note below about importance of static object names in this class public static MyObject Object2;...
3
9724
by: Mauzi | last post by:
hi, this may sound odd and noob like, but what is the 'big' difference between static and non-static funcitons ? is there any performace differnce? what is the best way to use them ? thnx ...
14
7063
by: knocte | last post by:
Hello. I have a problem with C# language. I want to define an algorithm on a static function inside an abstract class. This function calls a static variable inside the same class. Then I want to...
55
6149
by: Zytan | last post by:
I see that static is more restricted in C# than in C++. It appears usable only on classes and methods, and data members, but cannot be created within a method itself. Surely this is possible in...
14
5974
by: Jess | last post by:
Hello, I learned that there are five kinds of static objects, namely 1. global objects 2. object defined in namespace scope 3. object declared static instead classes 4. objects declared...
0
6967
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
7132
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,...
0
7180
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...
1
6846
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
7341
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
5439
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,...
1
4870
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...
0
4564
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...
0
266
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...

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.