Solved

How to use mshflxgd.ocx in VC++ project?

Posted on 2002-06-22
3
965 Views
Last Modified: 2013-11-20
HI,
     i am trying to use hierarchical flex grid control in my project. I had added the control to my VC project. I have the following statements in my stdafx.h
     // i found them by viewing mshflxgd.ocx through ole viewer
     #import <msdatsrc.tlb> named_guids
     #import <mshflxgd.ocx> named_guids
     
     But i am getting compilation errors in mshflxgd.tlh like "syntax error : missing ';' before identifier 'CellPicture'...."  
     
     How do i solve this???
     
     Thanks in advance
     Karthik
0
Comment
Question by:karthik1979
3 Comments
 
LVL 2

Accepted Solution

by:
tdubroff earned 50 total points
ID: 7101233
Forget using the #import statement.  Its a bit more intuitive to use Class Wizard, create a new class from the tlb or ocx.  The new class will be derived from COleDispatchDriver.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Importing Special Characters in Dynamics GP Through Integration Manager 3 69
unable to delete all specified values regedit 38 276
Hibernate methods 2 68
scoreUp challenge 14 56
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now