470,612 Members | 2,286 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

Creating a custom project in VC++ .NET 2003

Hi -

I program in C++ but I'm not good with VC++ (yet). I will like to
create a custom project for which a specific template or wizard does
not exist.

Because the program is a console application, I started out with the
Win32 Console Project template. Having done that, the problem is that
my application uses a custom header files and libraries (see code
below) that VC++ does not know about. My question therefore is how do I
configure the project to find these header files and libaries?

Thanks
- Olumide

//////////////// code /////////////////////

#include "stdafx.h"
#include <Matrix.h> // <- Header file
int main(int argc, char* argv[])
{
Matrix m; // <- Class defined by library
return 0;
}

Oct 7 '05 #1
2 1396
5...@web.de wrote:
Hi -

I program in C++ but I'm not good with VC++ (yet). I will like to
create a custom project for which a specific template or wizard does
not exist.

Because the program is a console application, I started out with the
Win32 Console Project template. Having done that, the problem is that
my application uses a custom header files and libraries (see code
below) that VC++ does not know about. My question therefore is how do I
configure the project to find these header files and libaries?

Thanks
- Olumide

//////////////// code /////////////////////

#include "stdafx.h"
#include <Matrix.h> // <- Header file
int main(int argc, char* argv[])
{
Matrix m; // <- Class defined by library
return 0;
}


This newsgroup is concerned with standard C++ only. You should post to

comp.os.ms-windows.programmer.win32
microsoft.public.vc.language

or the like.

Cheers! --M

Oct 7 '05 #2
don't worry, i got the fix for ya.

Get a copy of Matrix.h, put it in the same directory as your VC++
project and just use this
#include "Matrix.h"

if you don't like that and would rather have a directory that you want
to use for all your custom headers follow the below instructions to
setup VC++ to pull headers from the standard header folder and from your
custom header folder.

Startup VC++ .NET
Click Tools->Options
Click on Projects (almost at the bottom of the list)
Click on VC++ Directories
Click on the combo box that says Show Directories For:
Click on Include Files
Click on the New Liine button (the one with the little folder on it)
Enter the path to the directory of your custom headers!

now when you compile any VC++ project, it will check those listed
directories for the include files.

Daniel
Oct 7 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by 50295 | last post: by
16 posts views Thread by Bret Pehrson | last post: by
1 post views Thread by Tamas Demjen | last post: by
2 posts views Thread by Peter Ritchie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.