Lib files

Go4Expert Member
5Jan2005,01:54   #1
Levi's Avatar
Hi,
Does anyone know, in my other compiler(Turbo c++), to use functions like GetInteger(), and stuff like that, I had to attach a .lib file to the project. How do you do that in Visaul c++ 6.0? Do you need to. Also, there does'nt seem to be the same ones. In turbo, the one I attached for GetInteger() was cslib.lib, but there is not that library in Visual. Is there one that replaces it. Thanks
Levi
Go4Expert Founder
5Jan2005,09:59   #2
shabbir's Avatar
I guess GetInteger is not a function of C and some additional libraries have provided that and so I dont think it will be available in Visual Studio. There are other ways to do this in VC++ like atoi and itoa ...
Go4Expert Member
5Jan2005,10:34   #3
Levi's Avatar
Ok, I'll have to work on that. But is there a way to connect .lib files to the project. Thanks
Levi
Ambitious contributor
5Jan2005,12:36   #4
alok's Avatar
use PRAGMA

The following pragma causes the linker to search for the your library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.

#pragma comment( lib, "your library name" )
Go4Expert Member
10Jan2005,10:39   #5
Levi's Avatar
Thank you everyone for their help.
Ambitious contributor
11Jan2005,00:18   #6
alok's Avatar
YOu are always welcome Buddy
Go4Expert Founder
11Jan2005,09:48   #7
shabbir's Avatar
Quote:
Originally Posted by Levi
Thank you everyone for their help.
Our Pleasure
Ambitious contributor
6Mar2008,12:28   #8
rahul.mca2001's Avatar
i tried itoa but couldnt get its thie=rd field can you please help