home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

C++ Programming Help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1826
Discussions: 200,933, Posts: 2,379,200, Members: 246,298
Old April 30th, 2007, 12:06 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 2
C++ Programming Help

I'm supposed to have editted a class file for class and use it in a program. I editted the class with no trouble, and I put it in the include folder (I'm using Microsoft Visual Studio 6.0), but the program thats using the class can't find it when I include it in the program I'm supposed to be working with it in.

The specification file for the class header is
#include <mylist.cpp>


The implementation file for the class header is
#include <mylist.h>
#include <iostream>
using namespace std;

Program using the .h file is
#include <iostream.h>
#include <mylist.h>

I've tried using quotations around the includes for the "mylist.h" and the "mylist.cpp" but still no go. Any help would be appreciated.
umax is offline   Reply With Quote
Old April 30th, 2007, 01:20 AM     #2 (permalink)
Vyx
Ultimate Member
 
Vyx's Avatar
 
Join Date: May 2003
Location: Cheyenne, WY
Posts: 1,087
Send a message via AIM to Vyx Send a message via MSN to Vyx Send a message via Skype™ to Vyx
In VS 2005, the way I do it is to put the header file in your project directory ie. C:\Documents and Settings\Brandon\My Documents\Visual Studio 2005\Projects\COSC\COSC and then for the include: do #include "time.h"

I'm not sure in v6, althought it should be the same.

Also, I'm not sure if this is how you have it or not but from what you have:
The specification file for the class header is
#include <mylist.cpp>

It looks like you header file is named as a cpp file. it needs the .h file extension.

Hope this helps.
__________________
Gi | Yuu | Jin | Rei | Makoto | Meiyo | Chuugi
Vyx is offline   Reply With Quote
Old April 30th, 2007, 02:30 AM     #3 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 2
Yes, it did somewhat lol, but now I have an error

c:\program files\microsoft visual studio\myprojects\program4\mylist.h(10) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit

As well as a warning

c:\program files\microsoft visual studio\myprojects\program4\mylist.h(10) : warning C4182: #include nesting level is 363 deep; possible infinite recursion

So anymore help would be appreciated :P
umax is offline   Reply With Quote
Old April 30th, 2007, 02:49 PM     #4 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 802
Send a message via ICQ to exally
make sure the .h file is in the same folder as the project and then include the .h
exally is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
c++ programming one2adore30 Webmastering and Programming 17 August 31st, 2005 08:29 PM
Help with programming please andy1984 Webmastering and Programming 55 August 12th, 2005 11:07 AM
C++ programming HELP! TechKnickle Webmastering and Programming 3 September 19th, 2004 02:49 AM
Programming quantumlight Webmastering and Programming 22 September 10th, 2004 07:38 PM
Need help with C programming Lemon[H]ead Webmastering and Programming 9 July 8th, 2002 07:57 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2889)
Wireless Televisions. (6)
California Passes Anti-Flat-HDTV Le.. (39)
Obama the Muslim (14)
Is the PSU I received dead? (10)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
EVGA 9800 gtx help with finding a g.. (8)
New Computer wont recognize XP disc (7)
Recent Discussions
Wireless Televisions. (6)
CPU fan stops spinning randomly (2)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)


All times are GMT -4. The time now is 10:18 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28