Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: vector sort method Pin
Maximilien25-Mar-10 9:37
Maximilien25-Mar-10 9:37 
GeneralRe: vector sort method Pin
Luc Pattyn25-Mar-10 10:19
sitebuilderLuc Pattyn25-Mar-10 10:19 
GeneralRe: vector sort method Pin
Maximilien25-Mar-10 10:34
Maximilien25-Mar-10 10:34 
GeneralRe: vector sort method Pin
Luc Pattyn25-Mar-10 10:36
sitebuilderLuc Pattyn25-Mar-10 10:36 
QuestionProgress Meter (MFC) [modified] Pin
Software200725-Mar-10 6:41
Software200725-Mar-10 6:41 
AnswerRe: Progress Meter (MFC) Pin
CPallini25-Mar-10 6:58
mveCPallini25-Mar-10 6:58 
AnswerRe: Progress Meter (MFC) Pin
Ravi Bhavnani25-Mar-10 7:33
professionalRavi Bhavnani25-Mar-10 7:33 
Questionuse of a struct in a pair which is used in a vector of vectors Pin
b-rad31125-Mar-10 5:49
b-rad31125-Mar-10 5:49 
AnswerRe: use of a struct in a pair which is used in a vector of vectors Pin
Graham Breach25-Mar-10 6:38
Graham Breach25-Mar-10 6:38 
QuestionCBCGPProp PushChar event not work Pin
MrKBA25-Mar-10 3:37
MrKBA25-Mar-10 3:37 
QuestionRe: CBCGPProp PushChar event not work Pin
CPallini25-Mar-10 3:51
mveCPallini25-Mar-10 3:51 
AnswerRe: CBCGPProp PushChar event not work Pin
MrKBA25-Mar-10 4:05
MrKBA25-Mar-10 4:05 
AnswerRe: CBCGPProp PushChar event not work Pin
tom groezer26-Mar-10 2:47
tom groezer26-Mar-10 2:47 
QuestionRe: CBCGPProp PushChar event not work Pin
CPallini26-Mar-10 2:55
mveCPallini26-Mar-10 2:55 
AnswerRe: CBCGPProp PushChar event not work Pin
Tim Craig26-Mar-10 8:37
Tim Craig26-Mar-10 8:37 
AnswerRe: CBCGPProp PushChar event not work Pin
Eugen Podsypalnikov25-Mar-10 3:52
Eugen Podsypalnikov25-Mar-10 3:52 

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.