Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 18th, 2007, 05:25 PM
kudruu@gmail.com
Guest
 
Posts: n/a
Default Function Identifier Not Found

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!

  #2  
Old July 18th, 2007, 05:45 PM
=?ISO-8859-1?Q?Erik_Wikstr=F6m?=
Guest
 
Posts: n/a
Default Re: Function Identifier Not Found

On 2007-07-18 18:22, kudruu@gmail.com wrote:
Quote:
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.

--
Erik Wikström
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles