Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 13th, 2004, 03:59 PM
Registered User
 
Join Date: Aug 2004
Location: Lahore, Punjab, Pakistan.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX Control Required

I'm working in MFC developing my final project. I've
data in 2D-arrays. I want to display that data on
screen in some control. I need a ActiveX Control as
Microsoft Access uses for displaying query results.
I want solution in Visual C++ (MFC). This
problem is not related to ADO or Data Grid Control.
      Please reply me soon.


Reply With Quote
  #2 (permalink)  
Old December 31st, 2004, 07:27 PM
Registered User
 
Join Date: Dec 2004
Location: Victoria, B.C., Canada.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to andersen_hc
Default

My immediate answer to that is to use the MSFlexGrid ActiveX control. I have been working on a project with a similar requirement (although I'm currently looking for something a little more advanced right now).

MSFlexGrid does exactly the basics. You create a grid and then begin populating it cell by cell. It only requires that you include the sources ' #include "msflexgrid.h" '.

To include it in your project (and I am assuming you are using Visual C++ 6), simply go to the PROJECT menu, select ADD TO PROJECT and COMPONENTS AND CONTROLS. You will get a file dialogue. Select REGISTERED ACTIVEX CONTROLS and open the MICROSOFT FLEXGRID CONTROL.

Then all you need to do next is to go to your RESOURCEVIEW and add the control onto your dialogue (you will find the button at the bottom of the list of controls in the CONTROLS selection box as a yellow button with some kind of icon of a grid).

Should be all you need. There are plenty of resources online on how to use the MSFLEXGRID control and because it is an ActiveX control, the VB implementation and the C++ implementation are pretty much the same, so you should be able to read and learn from both.

Good luck!

Reply With Quote
  #3 (permalink)  
Old December 31st, 2004, 07:29 PM
Registered User
 
Join Date: Dec 2004
Location: Victoria, B.C., Canada.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to andersen_hc
Default

ah, i forgot to mention, you'll need to write a little ADO/ADOX connection for this. I did anyways... (why can't I use .NET?!?!?! arg!). Anyways, this is not ideal, but I did not find it too difficult or complex.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Charting ActiveX Control seananderson VB.NET 2002/2003 Basics 0 August 13th, 2007 04:46 AM
How to make an ActiveX control Bajrang General .NET 3 December 8th, 2006 12:36 AM
PropertyList activex control coder_gig79 VB Components 3 October 6th, 2004 10:32 PM
How do I use an ActiveX Control? ArtDecade VB.NET 2002/2003 Basics 5 September 18th, 2004 03:23 AM
Calendar Control ActiveX - Where umagrama Access VBA 0 December 9th, 2003 01:42 PM



All times are GMT -4. The time now is 05:37 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.