Function Identifier Not Found

K

kudruu

Hi,
I was trying to compile some code and I am getting a "Function
identifier not found" error. I can't figure out why since the
function that it claims is not identified is very clearly laid out.
Here is the declaration in my h file:

#pragma once
#include "afxwin.h"
class CGUIDlg : public CDialog
{
// Construction
....
// Implementation
protected:
...
public:
BOOL processEventMsg(time_t TimeSec, UCHAR chan, int strtID, UCHAR
*buf, int siz);
....
....
};

My function is written in the code as:

BOOL CGUIDlg::processEventMsg(time_t TimeSec, UCHAR chan, int strtID,
UCHAR *buf, int siz)
{
....
}

And it is called in another function as:

void getAllRs232( int lr )
{
....
processEventMsg(TimeSec, (UCHAR)(lr+8),elmThree*32, adrs, length-1); //
These variables have been declared and used
....
}

However upon compilation the error states that processEventMsg
identifier is not found. I've tried moving around the function to
different area of the code but it gives the same error.
Does anyone have any ideas about what could cause this?
Thanks very much in advance for any help!
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

Hi,
I was trying to compile some code and I am getting a "Function
identifier not found" error. I can't figure out why since the
function that it claims is not identified is very clearly laid out.
Here is the declaration in my h file:

#pragma once
#include "afxwin.h"
class CGUIDlg : public CDialog
{
// Construction
...
// Implementation
protected:
..
public:
BOOL processEventMsg(time_t TimeSec, UCHAR chan, int strtID, UCHAR
*buf, int siz);
...
...
};

My function is written in the code as:

BOOL CGUIDlg::processEventMsg(time_t TimeSec, UCHAR chan, int strtID,
UCHAR *buf, int siz)
{
...
}

And it is called in another function as:

void getAllRs232( int lr )
{
...
processEventMsg(TimeSec, (UCHAR)(lr+8),elmThree*32, adrs, length-1);

processEvent() is a member method, you either have an object and invoke
the method on that or call it from some other member.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top