473,545 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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::proces sEventMsg(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),e lmThree*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!

Jul 18 '07 #1
1 3052
On 2007-07-18 18:22, ku****@gmail.co m wrote:
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::proces sEventMsg(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),e lmThree*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
Jul 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
14913
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) { document.images.src = eval("mt" +menu+ ".src") } alert("imgOff_hidemenu"); hideMenu=setTimeout('Hide(menu,num)',500);
58
10069
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of code... TCHAR myArray; DoStuff(myArray);
9
2989
by: drhowarddrfinedrhoward | last post by:
I see a number of pages with functions like MM_somefunction(). Where does the MM_ come from? I don't see it in any books I'm studying.
42
5572
by: baumann | last post by:
hi all, typedef int (*pfunc)(int , int); pfunc a_func; i know it's ok, but how can define a_func without typedef statement? thanks .
2
1825
by: VicVic | last post by:
Hello, I have an old project, built with VC++. Now need to be compiled in Visual Studio .Net 2003. The project is going to build a DLL. When i try to compile the project, i got the following errors: c:\thepath\aaa.cpp(890): error C2065: 'm_nBackStyle' : undeclared identifier c:\thepath\aaa.cpp(890): error C3861: 'm_nBackStyle':...
17
1994
by: Matt Kruse | last post by:
Perl's map() function is a powerful shortcut to accomplish many "loop over an array and do X" operations. Below is a quick hack to simulate similar functionality. I've used it a few times and find it to be quite handy. Any thoughts? <script type="text/javascript"> function map(func) { var i,j,o; var results = ;
5
1703
by: mk | last post by:
Greetings all - im new to this newsgroup so pls dont flame me :p I need some help! Please view the html below in a browser. Or goto this url -http://firebrain.co.uk/java-problem.htm (Assuming you have seen the rendered code) Basically I need the X buttons to change all the values of each textbox to zero either in the col or row depending on...
4
3826
by: mousou | last post by:
Hi all, I trying to port a WDM driver in VS.Net 2005. I had several difficulty, but it's one of them I still did not found any solutions. My code use the function _alloca to allocate space on the stack. When I compile my code with the include of <malloc.hI have no problem but the difficulty raise with the linker: error LNK2019:...
0
386
by: kudruu | last post by:
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 {
3
9164
by: MrHenry007 | last post by:
Hello! I'm fairly new to c++ but I have been following tutorials and have created functions before, but not one using a string. I can't work out what the problem is here. The function is supposed to accept a file location, open the file, search for a phrase, and return a result if the certain phrase is found, otherwise return nothing. Then the...
0
7473
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7660
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7813
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7431
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7761
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3457
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.