473,471 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1501
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: T | last post by:
I have a web site i want to deploy using a VS.NEt set up project. I have no problems with that, that is fine and works no problem. But the web application uses a custom event log to log...
0
by: 50295 | last post by:
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...
16
by: Bret Pehrson | last post by:
I've converted a non-trivial C++ library to managed, and get the following unhelpful linker error: Assignment.obj : error LNK2022: metadata operation failed (80131195) : Custom attributes are...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
1
by: Tamas Demjen | last post by:
I started to experiment with VC++ 2005 Beta1. So far everything went fine, and already have a working project, but soon I realized that the compiler was ancient (not supporting half of the C++/CLI...
1
by: Jordi Vilar | last post by:
Hi, Is there a way to create a new fully customized target for VC++ projects in VS .NET 2003? The idea is to add support for new compilers, so you can compile the same project with different...
11
by: Paul Tremblay | last post by:
Hi, I can't seem to locate the visual C++ (pre .NET) ng. This may be slight off topic here - please point me to the correct ng if it is. Without going into much detail (and repeating myself...
2
by: 50295 | last post by:
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...
2
by: Peter Ritchie | last post by:
In VS/VC 2003: Simple question: for the Custom Build Step for the project (right click the project in the Solution Explorer, select "Properties", select the "Custom Build Step" in the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.