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

Home Posts Topics Members FAQ

How do I display a CArray in a table format?


This may be an easy question for you experienced guys, but not for me.

I have written lots of code in C, but not C++ and not in windows (old
fart).

I'm working on a simple program to learn the language and how it's
used.

What I've learned so far, is that VC++ will do all sorts of stuff
"automagically" that used to take time to build from scratch.
However, one needs to know what it can do, and how to implement it.
Honestly, I know very little of both.

What I want to do is display the contents of an array in a table
format (spreadsheet like). I would like to do this in two different
forms. One that allows any "cell" to be edited, and another that
displays a resulting table (based on the first table entries) in
various colors and formats.

At this point I can't even display the array.

Is this fairly easy? It seems like a common feature in many apps.

What functions should I investigate/consider using?

Any advice would be greatly appreciated. Thanks in advance.

Jul 22 '05 #1
1 1747
Jethro wrote:
This may be an easy question for you experienced guys, but not for me.

I have written lots of code in C, but not C++ and not in windows (old
fart).

I'm working on a simple program to learn the language and how it's
used.

What I've learned so far, is that VC++ will do all sorts of stuff
"automagically" that used to take time to build from scratch.
However, one needs to know what it can do, and how to implement it.
Honestly, I know very little of both.

What I want to do is display the contents of an array in a table
format (spreadsheet like). I would like to do this in two different
forms. One that allows any "cell" to be edited, and another that
displays a resulting table (based on the first table entries) in
various colors and formats.

At this point I can't even display the array.

Is this fairly easy? It seems like a common feature in many apps.

What functions should I investigate/consider using?

Any advice would be greatly appreciated. Thanks in advance.


MFC and Windows aren't topical here; I suggest you try a different group.
Here is one that should be able to help you: microsoft.public.vc.mfc

- Pete
Jul 22 '05 #2

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

Similar topics

0
by: Ishira | last post by:
Here is a snippet of my program. It is really intresting... PREMISE: Class CobjA has a private CARRAY memeber m_Arr of objects CobjB. Class CobjB is a class with an int data variable called...
2
by: Ishira | last post by:
Hello, Please help. I am seriously at my wits end. Just when I feel I have completely understood copy contructor, I am stumped yet again. I have a class which has a CARRAY of objects. I am...
66
by: Mike Stenzler | last post by:
I am new to Template programming and I would like to create an array of user-defined class objects using MFC CArray. Normally I would use linked list processing - create an object class and then an...
0
by: Frank King | last post by:
Hi, I am using CArray and quick sort funciton to sort an array of double type of data points. I found an article in MSDN HOWTO: Quick Sorting Using MFC CArray-Derived Classes ID: Q216858 ...
5
by: Silly | last post by:
I have a legacy dll that has an important function that takes a CArray<WORD,WORD>& as it's only parameter. The dll is used by a number of internal applications and so can't be changed. I am...
0
by: Josh McFarlane | last post by:
I'm currently reading raw data files for two arrays of floating point numbers. There are about 10k floating points per array per file, and I want to combine each file's arrays into a master...
10
by: fei.liu | last post by:
Consider the following sample code char * ptr = "hello"; char carray = "hello"; int main(void){ } What does the standard have to say about the storage requirement about ptr and carray? Is...
2
by: Dymus | last post by:
Ok here is sample of code: CArray <MyClass,MyClassarr; MyClass * obj; obj = new MyClass(); obj->some_field=some_value; arr.Add((*obj)); delete obj; ----
12
by: petter | last post by:
Hi! I have two questions: one question that regards the COUNT-function, and one about how to display a month even if I don’t have any data for that month. I have an Access database where I want...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
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: 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...
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.