Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl - stop headers from being resized Pin
Tre K Renegade11-Feb-03 6:58
Tre K Renegade11-Feb-03 6:58 
GeneralRe: CListCtrl - stop headers from being resized Pin
Chris Richardson11-Feb-03 9:02
Chris Richardson11-Feb-03 9:02 
GeneralProblem solved - here's a report Pin
Tre K Renegade12-Feb-03 1:00
Tre K Renegade12-Feb-03 1:00 
GeneralSet Registry access denied Pin
rohit.dhamija10-Feb-03 23:03
rohit.dhamija10-Feb-03 23:03 
General#iclude problems Pin
mehere10-Feb-03 22:52
mehere10-Feb-03 22:52 
GeneralRe: #iclude problems Pin
jhwurmbach10-Feb-03 23:51
jhwurmbach10-Feb-03 23:51 
GeneralRe: #iclude problems Pin
karl_w11-Feb-03 1:11
karl_w11-Feb-03 1:11 
GeneralRe: #iclude problems Pin
mehere11-Feb-03 12:55
mehere11-Feb-03 12:55 
thanks to all for replies.

only as i was checking through text afer posting did i notice mis-spelt header file. felt dumb.

found an example which showed me to locate enum and constants above struct in header, thats a relief.

now get errors:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Yahtzmain.cpp:
Error E2206 Yahtz.h 1: Illegal character 'ÿ' (0xff)
Error E2206 Yahtz.h 1: Illegal character 'þ' (0xfe)
Error E2040 Yahtz.h 1: Declaration terminated incorrectly
Error E2206 Yahtz.h 1: Illegal character '' (0x0)
Error E2206 Yahtz.h 1: Illegal character '' (0x0)
'' '' '' '' '' ''
(to bottom of screen)
Error E2228 Yahtz.h 13: Too many error or warning messages
*** 26 errors in Compile ***

new header file is:

/* header file */


#ifndef YATZ_H
#define YATZ_H

const int ScoreMax=17;
const int DiceMax=5;

enum ScoreCat {Ones,Twos,Threes,Fours,Fives,Sixes,
Three_of_a_Kind,Four_of_a_Kind,Full_House,
Small_Straight,Large_Straight, Yahtzee, Chance,
Bonus, Upper_Total, Lower_Total,Grand_Total};


struct Play
{
private:

public:

int Score[ScoreMax+1];
int Dice[DiceMax+1];

void DisplayScoreCat(ScoreCat Cat);
void DisplayDice();
void Throw();
void Initialise();
};
#endif

/* ****************************** */

error mesages from borland 4.5 for same code :

Linking yahtzee.exe:
linker Warning: No module definition file specified: using defaults
Linker Error: Play::DisplayScoreCat(ScoreCat) defined in module YAHTZMAIN.CPP is duplicated in module YAHTZ.CPP
/* **************** */
these 5 linker messages continue for all functions.

i am giving up and getting on with conceptual foundations study.
thanks again
kirk
GeneralModularity with C++ on Windows and Linux Pin
Jerome Conus10-Feb-03 22:51
Jerome Conus10-Feb-03 22:51 
GeneralRe: Modularity with C++ on Windows and Linux Pin
jhwurmbach10-Feb-03 23:57
jhwurmbach10-Feb-03 23:57 
GeneralRe: Modularity with C++ on Windows and Linux Pin
karl_w11-Feb-03 1:16
karl_w11-Feb-03 1:16 
GeneralYes, thanks! [NT] Pin
jhwurmbach11-Feb-03 1:26
jhwurmbach11-Feb-03 1:26 
GeneralRe: Modularity with C++ on Windows and Linux Pin
markkuk11-Feb-03 1:50
markkuk11-Feb-03 1:50 
GeneralRe: Modularity with C++ on Windows and Linux Pin
Michael Burlage11-Feb-03 1:55
Michael Burlage11-Feb-03 1:55 
GeneralSPS Comunication with Visual C++ Pin
Dasa10-Feb-03 22:36
Dasa10-Feb-03 22:36 
GeneralCToolBarCtrl Problem(Urgent) Pin
satyavasu10-Feb-03 22:23
satyavasu10-Feb-03 22:23 
QuestionWhere to put ddx.clw ? Pin
Svekke10-Feb-03 20:14
Svekke10-Feb-03 20:14 
Questionabout "printf"? Pin
an, jaeho10-Feb-03 18:46
sussan, jaeho10-Feb-03 18:46 
AnswerRe: about "printf"? Pin
Steve Mayfield10-Feb-03 18:54
Steve Mayfield10-Feb-03 18:54 
GeneralHelp required !! Pin
Stephan Poirier10-Feb-03 18:32
Stephan Poirier10-Feb-03 18:32 
GeneralCreateDialog failure Pin
Anonymous10-Feb-03 17:07
Anonymous10-Feb-03 17:07 
GeneralI want to Create a Process with CreateProcessAsUser from as PrintMonitor running under the System Account Pin
Karl Bauer10-Feb-03 16:14
Karl Bauer10-Feb-03 16:14 
QuestionDetecting first run ? Pin
autekre10-Feb-03 15:57
autekre10-Feb-03 15:57 
AnswerRe: Detecting first run ? Pin
ColinDavies10-Feb-03 17:56
ColinDavies10-Feb-03 17:56 
GeneralReplacing the MFC WinMain. Pin
Daeriel10-Feb-03 14:22
Daeriel10-Feb-03 14:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.