![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Can I import another Lib while I am creating a static library in C++.Net? How?Can I import another Lib while I am creating a static library in MSVC++.Net? How?
|
|
#2
|
|||
|
|||
|
no body answered?
ok, I will give a simple example: file: a.Lib CPP / C++ / C Code:
file: b.Lib CPP / C++ / C Code:
b.Lib imports and calls the function getInt() from a.Lib and then another MFC application need to import and call the function getStr() from b.Lib The problem is: In Virual Studio.Net(MSVC++.Net), usually I can link the input Lib file through Project Properties->Linker->Input-> b.Lib But, I could not find "Linker" in the same place to import a.Lib when I tried to create b.Lib...why? The procedure I created b.Lib project was File->New->Project->Virual C++ Projects->Win32 Project->Application Settings->Static Library->Finish Is there any problem or we just can not link a Lib when creating a Lib? Hope someone can take me out from confusions Cheers George Last edited by LuciWiz : 06-Jan-2005 at 16:02.
Reason: Please insert your C code between [c] & [/c] tags
|
|
#3
|
||||
|
||||
|
Sure you can!
The only difference is that the property page is called in this case Librarian, instead of Linker->Input. Static library projects don't have the "Linker" property page at all. Hope this helps! Best regards, Luci __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Introduction to .NET | LuciWiz | .NET Forum | 5 | 09-Aug-2007 04:53 |
| calling a DLL in a static library | csuohio | C++ Forum | 3 | 05-Aug-2004 05:14 |
| calling a DLL in static library in visual c++.net or visualc++ 6.0 | csuohio | MS Visual C++ / MFC Forum | 0 | 30-Jul-2004 14:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The