Click here to Skip to main content
16,001,202 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CIPAddressCtrl - How to detect blank field (octet)? Pin
David Crow6-Aug-24 2:38
David Crow6-Aug-24 2:38 
GeneralRe: MFC CIPAddressCtrl - How to detect blank field (octet)? Pin
Member 163267087-Aug-24 7:23
Member 163267087-Aug-24 7:23 
Questionerror CS5001: Program does not contain a static 'Main' method suitable for an entry point Pin
Pieter Claassens30-Jul-24 2:00
Pieter Claassens30-Jul-24 2:00 
AnswerRe: error CS5001: Program does not contain a static 'Main' method suitable for an entry point Pin
Mircea Neacsu30-Jul-24 2:22
Mircea Neacsu30-Jul-24 2:22 
AnswerRe: error CS5001: Program does not contain a static 'Main' method suitable for an entry point Pin
Richard MacCutchan30-Jul-24 2:36
mveRichard MacCutchan30-Jul-24 2:36 
AnswerRe: error CS5001: Program does not contain a static 'Main' method suitable for an entry point Pin
Dave Kreskowiak30-Jul-24 3:52
mveDave Kreskowiak30-Jul-24 3:52 
JokeRe: error CS5001: Program does not contain a static 'Main' method suitable for an entry point Pin
David Crow1-Aug-24 3:53
David Crow1-Aug-24 3:53 
QuestionCan not find where to define an identifier.. Pin
Carbonkevlar1324-Jul-24 23:52
Carbonkevlar1324-Jul-24 23:52 
Hello
i am a total newbie in C++ and i am learning by tryning to modify an existing code which uses displays.
In the original code there are 2 displays showing informations to the user
I want to add a third display do i copied the screen2.cpp and screen2.h and renamed them to screen3.cpp and screen3.h
Inside the screen3 code i replace all mentions of screen2 by screen3
and i added the screen 3 in the screens.cpp script

// User screens
MMIRegisterScreen(SCREENID_1, Screen1Enter, Screen1Create, Screen1Update, Screen1Exit);
MMIRegisterScreen(SCREENID_2, Screen2Enter, Screen2Create, Screen2Update, Screen2Exit);
MMIRegisterScreen(SCREENID_3, Screen3Enter, Screen3Create, Screen3Update, Screen3Exit);


My problem is that when i debug i end up with 4 error messages as the Screen3Enter, Screen3Create , Screen3Update and Screen3Exit are not declared

This is strange as in the screen3.cpp the functions here above are declared the same way they are declared for the other screen i copied from

void Screen3Enter(void)
{
}

void Screen3Create(void)
{


Thanks for your suggestions

modified 25-Jul-24 6:38am.

AnswerRe: Can not find where to define an identifier.. Pin
Richard MacCutchan25-Jul-24 0:22
mveRichard MacCutchan25-Jul-24 0:22 
GeneralRe: Can not find where to define an identifier.. Pin
Carbonkevlar1325-Jul-24 0:43
Carbonkevlar1325-Jul-24 0:43 
GeneralRe: Can not find where to define an identifier.. Pin
Richard MacCutchan25-Jul-24 0:58
mveRichard MacCutchan25-Jul-24 0:58 
AnswerRe: Can not find where to define an identifier.. Pin
CPallini25-Jul-24 0:26
mveCPallini25-Jul-24 0:26 
GeneralRe: Can not find where to define an identifier.. Pin
Carbonkevlar1325-Jul-24 0:41
Carbonkevlar1325-Jul-24 0:41 
GeneralRe: Can not find where to define an identifier.. Pin
CPallini25-Jul-24 1:01
mveCPallini25-Jul-24 1:01 
GeneralRe: Can not find where to define an identifier.. Pin
Carbonkevlar1325-Jul-24 1:12
Carbonkevlar1325-Jul-24 1:12 
GeneralRe: Can not find where to define an identifier.. Pin
CPallini25-Jul-24 1:23
mveCPallini25-Jul-24 1:23 
GeneralRe: Can not find where to define an identifier.. Pin
Carbonkevlar1325-Jul-24 2:10
Carbonkevlar1325-Jul-24 2:10 
QuestionRe: Can not find where to define an identifier.. Pin
CPallini25-Jul-24 2:51
mveCPallini25-Jul-24 2:51 
AnswerRe: Can not find where to define an identifier.. Pin
Carbonkevlar1325-Jul-24 3:03
Carbonkevlar1325-Jul-24 3:03 
GeneralRe: Can not find where to define an identifier.. Pin
CPallini25-Jul-24 3:15
mveCPallini25-Jul-24 3:15 
GeneralRe: Can not find where to define an identifier.. Pin
Richard MacCutchan25-Jul-24 5:03
mveRichard MacCutchan25-Jul-24 5:03 
GeneralRe: Can not find where to define an identifier.. Pin
Richard MacCutchan25-Jul-24 2:47
mveRichard MacCutchan25-Jul-24 2:47 
QuestionC++20 UNORDERED_MAP OBJECT WITH CLASS FUNCTIONS FROM DLL AS VALUE Pin
Oscar Kogosov 202322-Jul-24 20:37
Oscar Kogosov 202322-Jul-24 20:37 
AnswerRe: C++20 UNORDERED_MAP OBJECT WITH CLASS FUNCTIONS FROM DLL AS VALUE Pin
Richard MacCutchan23-Jul-24 0:48
mveRichard MacCutchan23-Jul-24 0:48 
GeneralRe: C++20 UNORDERED_MAP OBJECT WITH CLASS FUNCTIONS FROM DLL AS VALUE Pin
Oscar Kogosov 202323-Jul-24 4:41
Oscar Kogosov 202323-Jul-24 4:41 

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.