Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including other's sources/classes in my code

Status
Not open for further replies.

wesk

Programmer
Jun 16, 2002
2
US
I felt a bit wierd selecting 'Programmer' when I signed up for this account as I'm grossly inexperienced, esp. with C++. Nevertheless, I am making a good faith effort to learn this language. One thing seems to boggle me. I am working on a multimedia application and I can't get past adding the DirectX support. I've got the DevSDK and have looked through the source file a bit. Now I'm ready to add headers (me thinks), and start coding right? I've not seen any documentation that helps me to understand which files should be added to a project, etc.

In general do SDK's provide 'sample' code which should be mimmicked in your own code, or ready to use classes for which headers can be added and then the classes be declared in your main .CPP file?

Please help...and again think simple as your reply.




Wes
 
You should not include the source files from SDK. In any case you will not have access to the source files which SDK provides - except samples, as you said.
If you want to use some classes from SDK, you should just include the headers in your implementation (.cpp) file and proceed. If you need to link against any library, the SDK documentation will mention it.
 
Thanks. I appreciate the help. So the way I understand it now is this. SDK's are sample code only, with possible instructions to link to Library or something else, but SDK's were never intended to be included themselves in your code, correct??



Thanks.


Wes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top