Click here to Skip to main content
15,918,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Migrate a dll from 32bit to 64bit OS Pin
002comp26-Mar-10 1:39
002comp26-Mar-10 1:39 
AnswerRe: Migrate a dll from 32bit to 64bit OS Pin
sashoalm25-Mar-10 22:39
sashoalm25-Mar-10 22:39 
GeneralRe: Migrate a dll from 32bit to 64bit OS Pin
002comp26-Mar-10 0:04
002comp26-Mar-10 0:04 
Questionmsflexgrid headers Pin
Member 59031025-Mar-10 19:41
Member 59031025-Mar-10 19:41 
QuestionHow do I Parse the Serial Data Recieved from the Serial Port Pin
Jimmie Sypolt25-Mar-10 17:19
Jimmie Sypolt25-Mar-10 17:19 
AnswerRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
loyal ginger25-Mar-10 18:08
loyal ginger25-Mar-10 18:08 
AnswerRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
KingsGambit25-Mar-10 18:33
KingsGambit25-Mar-10 18:33 
GeneralRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
Jimmie Sypolt25-Mar-10 20:15
Jimmie Sypolt25-Mar-10 20:15 
GeneralRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
KingsGambit25-Mar-10 20:36
KingsGambit25-Mar-10 20:36 
QuestionRe: How do I Parse the Serial Data Recieved from the Serial Port Pin
David Crow26-Mar-10 4:57
David Crow26-Mar-10 4:57 
Questionconstructor and destructor [modified] Pin
zakria8125-Mar-10 15:43
zakria8125-Mar-10 15:43 
AnswerRe: constructor and destructor Pin
hanq_3891013025-Mar-10 16:51
hanq_3891013025-Mar-10 16:51 
AnswerRe: constructor and destructor Pin
David Crow26-Mar-10 4:59
David Crow26-Mar-10 4:59 
QuestionDisplay current time as Label control text Pin
Lucidation25-Mar-10 12:14
Lucidation25-Mar-10 12:14 
AnswerRe: Display current time as Label control text Pin
Peter_in_278025-Mar-10 16:23
professionalPeter_in_278025-Mar-10 16:23 
GeneralRe: Display current time as Label control text Pin
loyal ginger25-Mar-10 18:10
loyal ginger25-Mar-10 18:10 
AnswerRe: Display current time as Label control text Pin
BIJU Manjeri25-Mar-10 18:00
BIJU Manjeri25-Mar-10 18:00 
AnswerRe: Display current time as Label control text Pin
loyal ginger25-Mar-10 18:15
loyal ginger25-Mar-10 18:15 
GeneralRe: Display current time as Label control text Pin
Cool_Dev26-Mar-10 3:35
Cool_Dev26-Mar-10 3:35 
GeneralRe: Display current time as Label control text Pin
Lucidation26-Mar-10 5:31
Lucidation26-Mar-10 5:31 
QuestionHow to create database & tables on another machine?? Pin
Ed K25-Mar-10 9:50
Ed K25-Mar-10 9:50 
QuestionRe: How to create database & tables on another machine?? Pin
David Crow25-Mar-10 10:46
David Crow25-Mar-10 10:46 
AnswerRe: How to create database & tables on another machine?? Pin
Ed K25-Mar-10 15:20
Ed K25-Mar-10 15:20 
QuestionHow can I get VS 2008 to generate all the classes a control needs? Pin
Interrobang25-Mar-10 9:35
Interrobang25-Mar-10 9:35 
I am trying to create an ActiveX control that contains another ActiveX control. I have succeeded up to the point where the included control is displayed on my control when I put my control onto a test project's dialog box.

The contained control is an element of a property page. I wanted to add a variable to the property page so that I could manipulate the contained control. (To start, I wanted to resize it when the container is resized.) I have another control developed in Visual C++ 6.0 that contains the same control that my new project is trying to contain. In VC6, when I created a variable for the contained control, the Class Wizard recognized that the contained control needed a large number of interfaces and classes, and it created a hundred or so files to define them. But in VS 2008, when I tried to add a variable to refer to my contained control, I got a single class definition for my control, but none of the interfaces or classes that control needs. Why not? What do I have to do to get VS 2008 to build the complete control and everything it needs?

As a simpler test, I created a dialog-based MFC application project and put my contained control directly onto its dialog. When I right-clicked on the control and selected Add Variable, I noticed that the drop-down list contained all of the interfaces that the contained control would need. But I selected the top entry in the list, which was "control". After clicking OK, VS 2008 generated a single class for me, named CActiveGanttVCCtrl1. I tried building the project and got a large number of errors. The file ActiveGanttVCCtrl1.h contained the following:


IclsTasks * GetTasks()
{
	IclsTasks * result;
	GetProperty(0x1, VT_DISPATCH, (void*)&result);
	return result;
}
void SetTasks(IclsTasks * propVal)
{
	SetProperty(0x1, VT_DISPATCH, propVal);
}


The compiler claims that the IclsTasks interface (and many others) is not defined. Yes, that's true. VS 2008 didn't automatically generate it. Why not? What do I have to do to get it to be generated for me?

Thank you very much!

RobR
Questionvector sort method Pin
b-rad31125-Mar-10 9:13
b-rad31125-Mar-10 9:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.