473,513 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ 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;
}

Nov 17 '05 #1
2 878
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

Nov 17 '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
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4069
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...
1
1028
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
0
1069
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
1509
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
9256
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
5717
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
4176
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
990
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
2944
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
1726
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
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7545
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
7111
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
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.