473,473 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to use append function

34 New Member
Expand|Select|Wrap|Line Numbers
  1.         EventLogEntryStruct EventLogEntry[100];
  2.         for(int i=1;;i++)
  3.         {
  4.             EventLogEntry[i].logName = "log-";
  5.             EventLogEntry[i].eventString = "event-";
  6.  
  7.  
  8.             EventLogEntry[i].bufPos = i;
  9.             EventLogEntry[i].logIdx = i+1;
  10.             logName.append(i);//= "log-";
  11.             EventLogEntry[i].dateTime = i+4;
  12.             EventLogEntry[i].systemTick = i;
  13.             EventLogEntry[i].resetCount = 1;
  14.             EventLogEntry[i].inAir = 1;
  15.             EventLogEntry[i].appSpec1 = i+2;
  16.             EventLogEntry[i].appSpec2 = i+3;
  17.             EventLogEntry[i].appSpec3 = i+1;
  18.             EventLogEntry[i].timeStampLSW = 12;
  19.             EventLogEntry[i].timeStampMSW = 24;
  20.             EventLogEntry[i].timeStamp = 22;
  21.             EventLogEntry[i].timeDelta = 12;
  22.             EventLogEntry[i].windowID = i+2;
  23.             eventString.append(i);// = "event-1";


here EventLogEntryStruct is a structure defined in my header file and i have created an instance of it as EventLogEntry. now i have to run an infinite loop as its a code in the server side which will be continuously sending data to the client ... now i want to change the logName and eventString everytime in the loop so what i did is at line no 4& 5 i ve declared it and used the append function at line no. 10 & 23 but its throwing error of:

[HTML]D:\trial\serverTrial.cpp(175) : error C2065: 'logName' : undeclared identifier
D:\trial\serverTrial.cpp(175) : error C2228: left of '.append' must have class/struct/union type
D:\trial\serverTrial.cpp(188) : error C2065: 'eventString' : undeclared identifier
D:\trial\serverTrial.cpp(188) : error C2228: left of '.append' must have class/struct/union type[/HTML]
so can any one plz help me ut in sorting this error..
Apr 15 '08 #1
2 2692
Banfa
9,065 Recognized Expert Moderator Expert
Expand|Select|Wrap|Line Numbers
  1.             logName.append(i);//= "log-";
  2.  
Shouldn't this be

Expand|Select|Wrap|Line Numbers
  1. EventLogEntry[i].logName.append(i);//= "log-";
Apr 15 '08 #2
pralu
34 New Member
Shouldn't this be

Expand|Select|Wrap|Line Numbers
  1. EventLogEntry[i].logName.append(i);//= "log-";

no it should not be... but i got it how to dooo

thnx ..
Apr 15 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: JMCN | last post by:
hi- i have inherited an access 97 database that keeps track of the loans. i have been running into referential intergrity problems when i try to append new loans to table. first of all is a...
3
by: JOEP | last post by:
What do I need to do to allow an append query to post null values to records in a field of the destination table? Basically I want to allow records with null values to post to the table. The append...
1
by: Access | last post by:
Here is my function to change a users permission level in the database. This relates to an Access database secured using Access security. This function is called if the end user changes a staff...
8
by: WordVBAProgrammer | last post by:
I've been struggling with this for a few days now. It worked originally as plain VB-type strings, but for some reason ceased creating the FileNm. I changed the code to use StringBuilder, but...
3
by: barry | last post by:
I have the following: function(NAMED) { sString.Append("document.forms.NAMED.style.visibility = 'hidden'") } and would like to convert the NAMED into the object it represents - for example in...
5
by: solar | last post by:
I have copied a function that appends from table orders2 into table orders1 the row that has the value SubOrder = True in the table orders2. This function finds the highest ordered in the table...
2
by: jeremito | last post by:
I have created a class that inherits from the list object. I want to override the append function to allow my class to append several copies at the same time with one function call. I want to do...
10
by: HYRY | last post by:
I have the following questions, I am using Python 2.4.2 19167152 #1 11306608 #1 1. the address of a.append and list.append is different, can I get the address of...
10
by: pythonnoob | last post by:
Hello everyone. New to python as well as this forum, but i must say ive learned a but already reading through some posts. Seems to be a pretty helpful community here. Before i post a question...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
1
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...
0
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.