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

C / C++ / MFC

 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
pandit8418-Mar-11 0:28
pandit8418-Mar-11 0:28 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
«_Superman_»18-Mar-11 0:32
professional«_Superman_»18-Mar-11 0:32 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
Richard MacCutchan18-Mar-11 0:43
mveRichard MacCutchan18-Mar-11 0:43 
GeneralRe: How to add reference of a dll in a Visual Studio Project Pin
pandit8418-Mar-11 0:53
pandit8418-Mar-11 0:53 
QuestionDraw Using Graphics object from Window Handle Pin
002comp17-Mar-11 18:41
002comp17-Mar-11 18:41 
AnswerRe: Draw Using Graphics object from Window Handle Pin
«_Superman_»17-Mar-11 19:49
professional«_Superman_»17-Mar-11 19:49 
AnswerRe: Draw Using Graphics object from Window Handle Pin
Parthi_Appu17-Mar-11 23:10
Parthi_Appu17-Mar-11 23:10 
QuestionMFC wizard does not see properties on my dispinterface, fails to create code Pin
EricFowler17-Mar-11 15:20
EricFowler17-Mar-11 15:20 
I have a problem in that the MFC wizard is not generating complete wrapper code for my activex control.

I have a control which I am developing, called CombinedControl. I have in the past added custom properties to that control (and others like it), and generated C++ wrappers using the wizard (select _DCombinedControl interface in Class View, right click; choose Add Property; set property type to DOUBLE, name is Altitude, no params, set 'Get/Set method' check). I build the control, then add an instance of the control to a host dialog in another project, and create a control variable, which appears as a member of the dialog. If all the stars align, the control variable's class will have Get*() and Set*() access methods. The wizard does this by creating a wrapper class (e.g. CCombinedcontrol1) in my host dialog project which implements CWnd and contains the access functions (e.g. CCombinedcontrol1::GetAltitude()).

My problem is that if I return to my ActiveX control and add more properties(e.g. Heading), the wrapper class never generates access functions for them. They are in the IDL for my ActiveX control, and they are in the C++ wrappers for my control class; but the client app's wrapper never generates the access methods (e.g. CCombinedcontrol1::GetHeading()). I get an empty wrapper, with the class defined but access methods absent.

I have done clean builds, deleted and restored the control from the host dialog, unregistered and re-registered the server ... over and over ... all day. I am going nuts.

Any idea what I am doing wrong??

Better yet, what can I do right?

Thanks loads

Eric

PS. VS Pro 2008, particulars follow.

-------------------------------------------------------------------------------------

Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Professional

Microsoft Visual Basic 2008 91605-031-5000002-60582
Microsoft Visual Basic 2008

Microsoft Visual C# 2008 91605-031-5000002-60582
Microsoft Visual C# 2008

Microsoft Visual C++ 2008 91605-031-5000002-60582
Microsoft Visual C++ 2008

Microsoft Visual Studio 2008 Tools for Office 91605-031-5000002-60582
Microsoft Visual Studio 2008 Tools for Office

Microsoft Visual Web Developer 2008 91605-031-5000002-60582
Microsoft Visual Web Developer 2008

..hotfixes deleted .... I have the latest service pack.
Questionlibcmt.lib problem ... Pin
_Flaviu17-Mar-11 6:04
_Flaviu17-Mar-11 6:04 
AnswerRe: libcmt.lib problem ... Pin
Hans Dietrich17-Mar-11 7:40
mentorHans Dietrich17-Mar-11 7:40 
GeneralRe: libcmt.lib problem ... Pin
_Flaviu17-Mar-11 8:29
_Flaviu17-Mar-11 8:29 
QuestionUsing SetFocus() in a push button. Pin
dipuks17-Mar-11 5:44
dipuks17-Mar-11 5:44 
AnswerRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 6:59
Klaus-Werner Konrad17-Mar-11 6:59 
GeneralRe: Using SetFocus() in a push button. Pin
dipuks17-Mar-11 7:01
dipuks17-Mar-11 7:01 
GeneralRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 9:17
Klaus-Werner Konrad17-Mar-11 9:17 
GeneralRe: Using SetFocus() in a push button. Pin
Albert Holguin17-Mar-11 8:24
professionalAlbert Holguin17-Mar-11 8:24 
GeneralRe: Using SetFocus() in a push button. [modified] Pin
Klaus-Werner Konrad17-Mar-11 9:14
Klaus-Werner Konrad17-Mar-11 9:14 
GeneralRe: Using SetFocus() in a push button. Pin
Albert Holguin17-Mar-11 9:26
professionalAlbert Holguin17-Mar-11 9:26 
QuestionRe: Using SetFocus() in a push button. Pin
David Crow17-Mar-11 10:43
David Crow17-Mar-11 10:43 
AnswerRe: Using SetFocus() in a push button. Pin
dipuks17-Mar-11 11:07
dipuks17-Mar-11 11:07 
GeneralRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 12:46
Klaus-Werner Konrad17-Mar-11 12:46 
QuestionVisual C++ properties (Teaching an old dog old tricks)... Pin
bob1697217-Mar-11 5:13
bob1697217-Mar-11 5:13 
QuestionObject movement in OpenGl Pin
GAJERA16-Mar-11 22:03
GAJERA16-Mar-11 22:03 
AnswerRe: Object movement in OpenGl Pin
Cedric Moonen16-Mar-11 22:08
Cedric Moonen16-Mar-11 22:08 
GeneralRe: Object movement in OpenGl Pin
GAJERA17-Mar-11 20:31
GAJERA17-Mar-11 20:31 

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.