Lib files

Levi's Avatar
Go4Expert Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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 ...
0
Levi's Avatar
Go4Expert Member
Ok, I'll have to work on that. But is there a way to connect .lib files to the project. Thanks
Levi
0
alok's Avatar
Ambitious contributor
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" )
0
Levi's Avatar
Go4Expert Member
Thank you everyone for their help.
0
alok's Avatar
Ambitious contributor
YOu are always welcome Buddy
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Levi
Thank you everyone for their help.
Our Pleasure
0
rahul.mca2001's Avatar, Join Date: Feb 2008
Ambitious contributor
i tried itoa but couldnt get its thie=rd field can you please help