Click here to Skip to main content
16,004,974 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: memory leakage when using CRecordset without passing CDatabase object to it Pin
David Crow7-Apr-08 11:00
David Crow7-Apr-08 11:00 
GeneralRe: memory leakage when using CRecordset without passing CDatabase object to it Pin
Joseph Marzbani8-Apr-08 5:37
Joseph Marzbani8-Apr-08 5:37 
GeneralRe: memory leakage when using CRecordset without passing CDatabase object to it Pin
David Crow8-Apr-08 5:49
David Crow8-Apr-08 5:49 
GeneralRe: [Message Deleted] Pin
Hamid_RT8-Apr-08 21:57
Hamid_RT8-Apr-08 21:57 
QuestionVC2008: "MFC class from ActiveX control" wizard doesn't expose any properties Pin
Vladimir Svrkota7-Apr-08 10:23
professionalVladimir Svrkota7-Apr-08 10:23 
AnswerRe: VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties Pin
Stefan_L_0116-Jun-08 23:53
Stefan_L_0116-Jun-08 23:53 
GeneralRe: VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties [modified] Pin
Stefan_L_0117-Jun-08 1:58
Stefan_L_0117-Jun-08 1:58 
GeneralRe: VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties Pin
Vladimir Svrkota17-Jun-08 10:51
professionalVladimir Svrkota17-Jun-08 10:51 
Stefan_L_01 wrote:
1.1) Insert ActiveX in resource editor
1.2) Assign a control variable. This generates a CWND derivated class with all props, events can be assigned by adding event handler and so on. Update is difficult however, except one deletes always the control and redo it (maybe even the way with less effort).


Yes, this is the same solution I accidentaly discovered, take a look at this thread[^] in microsoft.public.vc.mfc newsgroup.

This "trick" gave me Visual C++ 6 compatible Smile | :) h/cpp files and that was all I needed at the time. Fortunately, my OCX control won't be needing any changes in the near future, but it's nice to have your solution when it comes to that. Thank you.

By the way, while googling around I found out this problem appeared in the first release of Visual Studio .NET (version 7.0, a.k.a. 2002), it remained in VS2003, VS2005 and it's quite strange it's still present in the most recent VS2008, so many years later.

--
Vladimir Svrkota,
CardWare
Novi Sad, Serbia.

GeneralRe: VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties Pin
Stefan_L_0123-Jun-08 0:02
Stefan_L_0123-Jun-08 0:02 
GeneralRe: VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties Pin
Vladimir Svrkota23-Jun-08 10:20
professionalVladimir Svrkota23-Jun-08 10:20 
GeneralWeird index with HeaderControl Pin
Jim Crafton7-Apr-08 9:12
Jim Crafton7-Apr-08 9:12 
GeneralRe: Weird index with HeaderControl Pin
led mike7-Apr-08 10:11
led mike7-Apr-08 10:11 
GeneralRe: Weird index with HeaderControl Pin
Jim Crafton7-Apr-08 10:19
Jim Crafton7-Apr-08 10:19 
GeneralRe: Weird index with HeaderControl Pin
led mike7-Apr-08 10:27
led mike7-Apr-08 10:27 
GeneralRe: Weird index with HeaderControl Pin
led mike7-Apr-08 11:22
led mike7-Apr-08 11:22 
GeneralRe: Weird index with HeaderControl Pin
Jim Crafton7-Apr-08 11:54
Jim Crafton7-Apr-08 11:54 
NewsVisual C++ 2008 Feature Pack features new MFC controls Pin
brucedkyle7-Apr-08 8:09
brucedkyle7-Apr-08 8:09 
GeneralMFCc application not working on Vista Pin
matteo257-Apr-08 7:51
matteo257-Apr-08 7:51 
GeneralRe: MFCc application not working on Vista Pin
Joseph Marzbani7-Apr-08 8:41
Joseph Marzbani7-Apr-08 8:41 
GeneralHandling Unhandled Exceptions Pin
neil47817-Apr-08 7:23
neil47817-Apr-08 7:23 
AnswerRe: Handling Unhandled Exceptions Pin
Richard Andrew x647-Apr-08 17:12
professionalRichard Andrew x647-Apr-08 17:12 
QuestionHow to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 6:29
CrocodileBuck7-Apr-08 6:29 
AnswerRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
David Crow7-Apr-08 6:53
David Crow7-Apr-08 6:53 
AnswerRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 6:58
Mark Salsbery7-Apr-08 6:58 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? [modified] Pin
CrocodileBuck7-Apr-08 7:15
CrocodileBuck7-Apr-08 7:15 

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.