Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 27th, 2007, 8:09 PM   #1
ShawnStovall
Call me Chuck
 
ShawnStovall's Avatar
 
Join Date: Aug 2007
Location: USA, MI
Posts: 37
Rep Power: 0 ShawnStovall is on a distinguished road
Send a message via AIM to ShawnStovall
Creating a Precompiled Source File

Hey, does anyone know how to create and use precompiled C++ source code in Microsoft Visual Studio 2005? I have a class that I like and would like to not have to hunt it down and bring the source with my every time I want to use it. From my understanding this is the same technique most compiler manufactures use to hide/make more efficient the code to things such as the istream and ostream classes and things of the sort. What I mean is all I would have to do is include the header file for the class, like the iostream header file, and I wouldn't have to mess the source code every time I use the class.

Thanks
ShawnStovall is offline   Reply With Quote
Old Nov 27th, 2007, 8:25 PM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 545
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Creating a Precompiled Source File

>>Hey, does anyone know how to create and use precompiled C++ source code in Microsoft Visual Studio 2005?
Yes, use them all the time. They are the default.

But they don't do what you are asking. What you want to do is to create either a DLL or a static library. Then in the header file you create for it you can use a paragma to force inclusion of the *.lib file.
Ancient Dragon is offline   Reply With Quote
Old Nov 27th, 2007, 8:33 PM   #3
ShawnStovall
Call me Chuck
 
ShawnStovall's Avatar
 
Join Date: Aug 2007
Location: USA, MI
Posts: 37
Rep Power: 0 ShawnStovall is on a distinguished road
Send a message via AIM to ShawnStovall
Re: Creating a Precompiled Source File

Maybe I should start a new thread...

Thanks BTW!
ShawnStovall is offline   Reply With Quote
Old Nov 28th, 2007, 9:36 PM   #4
WaltP
Programmer
 
Join Date: Oct 2007
Posts: 39
Rep Power: 0 WaltP is on a distinguished road
Re: Creating a Precompiled Source File

Quote:
Originally Posted by ShawnStovall View Post
Maybe I should start a new thread...

Thanks BTW!
Why? What's wrong with this one?
WaltP is offline   Reply With Quote
Old Nov 29th, 2007, 5:44 PM   #5
ShawnStovall
Call me Chuck
 
ShawnStovall's Avatar
 
Join Date: Aug 2007
Location: USA, MI
Posts: 37
Rep Power: 0 ShawnStovall is on a distinguished road
Send a message via AIM to ShawnStovall
Re: Creating a Precompiled Source File

Different topic, a new thread might attract people who know a lot about creating libraries but not precompiled code.
ShawnStovall is offline   Reply With Quote
Old Nov 29th, 2007, 11:19 PM   #6
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 545
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Creating a Precompiled Source File

Quote:
Originally Posted by ShawnStovall View Post
Different topic, a new thread might attract people who know a lot about creating libraries but not precompiled code.
Good idea but why have we not seen your new thread yet -- I'm sitting here holding my breath until you do.
Ancient Dragon is offline   Reply With Quote
Old Nov 30th, 2007, 8:45 AM   #7
WaltP
Programmer
 
Join Date: Oct 2007
Posts: 39
Rep Power: 0 WaltP is on a distinguished road
Re: Creating a Precompiled Source File

Quote:
Originally Posted by Ancient Dragon View Post
Good idea but why have we not seen your new thread yet -- I'm sitting here holding my breath until you do.
Maybe we need a MrBlue!
WaltP is offline   Reply With Quote
Old Nov 30th, 2007, 5:18 PM   #8
ShawnStovall
Call me Chuck
 
ShawnStovall's Avatar
 
Join Date: Aug 2007
Location: USA, MI
Posts: 37
Rep Power: 0 ShawnStovall is on a distinguished road
Send a message via AIM to ShawnStovall
Re: Creating a Precompiled Source File

Quote:
Originally Posted by Ancient Dragon View Post
Good idea but why have we not seen your new thread yet -- I'm sitting here holding my breath until you do.
Haven't got around to it yet.
ShawnStovall is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating enxecutble file? Evil Genius C 2 Dec 24th, 2006 12:14 PM
Creating a file downloader LOI Kratong C++ 19 Jul 3rd, 2006 7:53 PM
More than one source file Klipt C++ 12 Dec 8th, 2005 4:09 PM
Creating a new data file JavaDummy Java 3 Jun 27th, 2005 11:56 AM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 9:04 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:47 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC