There is no way to call these from managed code without some minimal sort
of re-definition or wrapper. The simplest ways to call your old code:
1. Recompile the library with managed C++ and use _gc classes.
2. Create managed C++ wrapper classes for the library functions.
3. Use P/Invoke to call C-style functions directly. For this, you must get
the library compiled into a DLL.
I would recommend the 2nd option here.
--------------------
| From: "andrea catto'" <acatto@dataflight.com>
| Subject: unmanaged old static library, how to call its functions from
managed code in Win Forms, VC++ ?
| Date: Tue, 4 May 2004 11:47:05 -0700
| Lines: 23
[quoted text clipped - 7 lines]
| NNTP-Posting-Host: 208.201.80.28
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:10494
| X-Tomcat-NG: microsoft.public.dotnet.framework.clr
[quoted text clipped - 20 lines]
| and if possible I don't want to create wrapper functions for all those
| apis..