Hi,

I am trying to build a simple application.. here I need to use 3rd party
library as abc.lib for all API's. and then to write code using
mFC....problems are
1> How do I get docs of APIs in the library file abc.lib..??? From where
does this lib files come ....can I build my own lib file...??? Is header file
also required ?

2> I have a sample application with the same goal...how do I get a class
inheritance heirarchy and the like ?

3> What other things I need to be carefull of ? Like should include
path,should compile with some options ?

Kindly suggest.
Thanks
a.a.cpp

Re: 3rd party library in VC++/MFC by Carl

Carl
Fri Apr 22 01:39:25 CDT 2005

Well, I thought you can include this *.lib file by using following method:

if you are using "VC6.0"( because I am using VC6.0,:-) ), from the
menu,finding "Project"->
Setting->Link,there's editor frame under "Object/Library modules", you just
needto insert your *.lib's name here,and you also have to make sure this
file is existed in the default directory or current directory that can help
compiler knowing where can find it.

Carl



Re: 3rd party library in VC++/MFC by IceColdFire

IceColdFire
Fri Apr 22 02:04:03 CDT 2005

Hi,
Okey...but how do I know what API's are in the library....do i need a header
file also.

thanks,
a.a.cpp


"Carl" wrote:

> Well, I thought you can include this *.lib file by using following method:
>
> if you are using "VC6.0"( because I am using VC6.0,:-) ), from the
> menu,finding "Project"->
> Setting->Link,there's editor frame under "Object/Library modules", you just
> needto insert your *.lib's name here,and you also have to make sure this
> file is existed in the default directory or current directory that can help
> compiler knowing where can find it.
>
> Carl
>
>
>

Re: 3rd party library in VC++/MFC by Carl

Carl
Fri Apr 22 03:15:29 CDT 2005

Sure, you should have its header file, but if you knew the detail about its
parameters(I mean, the function definition exactly) you also can define it
yourself in your definition part.



Re: 3rd party library in VC++/MFC by thatsalok

thatsalok
Fri Apr 22 03:49:54 CDT 2005

Yeah sure you need header file two know what function defination reside in
the lib!


--
-----
cheers,
Alok Gupta
Visit me at http://alok.bizhat.com
"IceColdFire" <IceColdFire@discussions.microsoft.com> wrote in message
news:D51F4154-24C4-4D50-BB8A-F6EBABC79A62@microsoft.com...
> Hi,
> Okey...but how do I know what API's are in the library....do i need a
header
> file also.
>
> thanks,
> a.a.cpp
>
>
> "Carl" wrote:
>
> > Well, I thought you can include this *.lib file by using following
method:
> >
> > if you are using "VC6.0"( because I am using VC6.0,:-) ), from the
> > menu,finding "Project"->
> > Setting->Link,there's editor frame under "Object/Library modules", you
just
> > needto insert your *.lib's name here,and you also have to make sure this
> > file is existed in the default directory or current directory that can
help
> > compiler knowing where can find it.
> >
> > Carl
> >
> >
> >



Re: 3rd party library in VC++/MFC by IceColdFire

IceColdFire
Fri Apr 22 04:21:02 CDT 2005

Hi,

Allright...but the real problem is that I have the lib file abc.lib but dont
know whats inside....how do I know the function API's and constants in a
compiled lib...

Thanks.
a.a.cpp

"thatsalok" wrote:

> Yeah sure you need header file two know what function defination reside in
> the lib!
>
>
> --
> -----
> cheers,
> Alok Gupta
> Visit me at http://alok.bizhat.com
> "IceColdFire" <IceColdFire@discussions.microsoft.com> wrote in message
> news:D51F4154-24C4-4D50-BB8A-F6EBABC79A62@microsoft.com...
> > Hi,
> > Okey...but how do I know what API's are in the library....do i need a
> header
> > file also.
> >
> > thanks,
> > a.a.cpp
> >
> >
> > "Carl" wrote:
> >
> > > Well, I thought you can include this *.lib file by using following
> method:
> > >
> > > if you are using "VC6.0"( because I am using VC6.0,:-) ), from the
> > > menu,finding "Project"->
> > > Setting->Link,there's editor frame under "Object/Library modules", you
> just
> > > needto insert your *.lib's name here,and you also have to make sure this
> > > file is existed in the default directory or current directory that can
> help
> > > compiler knowing where can find it.
> > >
> > > Carl
> > >
> > >
> > >
>
>
>

Re: 3rd party library in VC++/MFC by thatsalok

thatsalok
Fri Apr 22 04:35:30 CDT 2005

Yeah Here is Link that will resolve Function signature in your LIB it works
like DEPENDENCY for DLL .

http://www.codeproject.com/debug/LibView.asp
but codeproject site is down at thi moment ! so you have to wait till it
up again!

--
-----
cheers,
Alok Gupta
Visit me at http://alok.bizhat.com

"IceColdFire" <IceColdFire@discussions.microsoft.com> wrote in message
news:D3D31269-DA21-4ED2-911E-1D01075CC553@microsoft.com...
> Hi,
>
> Allright...but the real problem is that I have the lib file abc.lib but
dont
> know whats inside....how do I know the function API's and constants in a
> compiled lib...
>
> Thanks.
> a.a.cpp
>
> "thatsalok" wrote:
>
> > Yeah sure you need header file two know what function defination reside
in
> > the lib!
> >
> >
> > --
> > -----
> > cheers,
> > Alok Gupta
> > Visit me at http://alok.bizhat.com
> > "IceColdFire" <IceColdFire@discussions.microsoft.com> wrote in message
> > news:D51F4154-24C4-4D50-BB8A-F6EBABC79A62@microsoft.com...
> > > Hi,
> > > Okey...but how do I know what API's are in the library....do i need a
> > header
> > > file also.
> > >
> > > thanks,
> > > a.a.cpp
> > >
> > >
> > > "Carl" wrote:
> > >
> > > > Well, I thought you can include this *.lib file by using following
> > method:
> > > >
> > > > if you are using "VC6.0"( because I am using VC6.0,:-) ), from the
> > > > menu,finding "Project"->
> > > > Setting->Link,there's editor frame under "Object/Library modules",
you
> > just
> > > > needto insert your *.lib's name here,and you also have to make sure
this
> > > > file is existed in the default directory or current directory that
can
> > help
> > > > compiler knowing where can find it.
> > > >
> > > > Carl
> > > >
> > > >
> > > >
> >
> >
> >



Re: 3rd party library in VC++/MFC by IceColdFire

IceColdFire
Fri Apr 22 05:11:05 CDT 2005

Thanks for the link...
maybe any other link shall be good as 'code***' is down...
Also can I get a complete inheritance chart of a VC++/MFC project using some
menu option...

a.a.cpp


"thatsalok" wrote:

> Yeah Here is Link that will resolve Function signature in your LIB it works
> like DEPENDENCY for DLL .
>
> http://www.codeproject.com/debug/LibView.asp
> but codeproject site is down at thi moment ! so you have to wait till it
> up again!
>
> --
> -----
> cheers,
> Alok Gupta
> Visit me at http://alok.bizhat.com
>
> "IceColdFire" <IceColdFire@discussions.microsoft.com> wrote in message
> news:D3D31269-DA21-4ED2-911E-1D01075CC553@microsoft.com...
> > Hi,
> >
> > Allright...but the real problem is that I have the lib file abc.lib but
> dont
> > know whats inside....how do I know the function API's and constants in a
> > compiled lib...
> >
> > Thanks.
> > a.a.cpp
> >
> > "thatsalok" wrote:
> >
> > > Yeah sure you need header file two know what function defination reside
> in
> > > the lib!
> > >
> > >
> > > --
> > > -----
> > > cheers,
> > > Alok Gupta
> > > Visit me at http://alok.bizhat.com
> > > "IceColdFire" <IceColdFire@discussions.microsoft.com> wrote in message
> > > news:D51F4154-24C4-4D50-BB8A-F6EBABC79A62@microsoft.com...
> > > > Hi,
> > > > Okey...but how do I know what API's are in the library....do i need a
> > > header
> > > > file also.
> > > >
> > > > thanks,
> > > > a.a.cpp
> > > >
> > > >
> > > > "Carl" wrote:
> > > >
> > > > > Well, I thought you can include this *.lib file by using following
> > > method:
> > > > >
> > > > > if you are using "VC6.0"( because I am using VC6.0,:-) ), from the
> > > > > menu,finding "Project"->
> > > > > Setting->Link,there's editor frame under "Object/Library modules",
> you
> > > just
> > > > > needto insert your *.lib's name here,and you also have to make sure
> this
> > > > > file is existed in the default directory or current directory that
> can
> > > help
> > > > > compiler knowing where can find it.
> > > > >
> > > > > Carl
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>

Re: 3rd party library in VC++/MFC by Severian

Severian
Fri Apr 22 11:05:46 CDT 2005

On Fri, 22 Apr 2005 03:11:05 -0700, "IceColdFire"
<IceColdFire@discussions.microsoft.com> wrote:
>Thanks for the link...
>maybe any other link shall be good as 'code***' is down...

Codeproject is up for me, but note that it will require a lot of work
to take the LibView utilty's output and actually use it.

Also, the arguments and return values of functions with C names are
not stored in the LIB file, so it's only useful for C++ libraries.

All C functions end up in the H file looking like:

long `routinename'::`2'::__LINE__Var;

regardless of the parameters.

>Also can I get a complete inheritance chart of a VC++/MFC project using some
>menu option...

I haven't seen this in VS 2003 (though I could have missed it); I
think you'll need a separate program for this. Perhaps VS 2005 has
something?

<snip>

--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.