Click here to Skip to main content
15,917,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: _variant_t conversion Pin
Madhu Nair4-Jan-10 23:33
Madhu Nair4-Jan-10 23:33 
QuestionRe: _variant_t conversion Pin
KingsGambit4-Jan-10 22:19
KingsGambit4-Jan-10 22:19 
QuestionCustomize EditBox Pin
kumar sanghvi4-Jan-10 21:55
kumar sanghvi4-Jan-10 21:55 
AnswerRe: Customize EditBox Pin
Nelek4-Jan-10 22:07
protectorNelek4-Jan-10 22:07 
QuestionGlobal variables Pin
Pryabu4-Jan-10 19:45
Pryabu4-Jan-10 19:45 
AnswerRe: Global variables Pin
SandipG 4-Jan-10 20:07
SandipG 4-Jan-10 20:07 
AnswerRe: Global variables Pin
KingsGambit4-Jan-10 20:08
KingsGambit4-Jan-10 20:08 
AnswerRe: Global variables Pin
CPallini4-Jan-10 20:36
mveCPallini4-Jan-10 20:36 
AnswerRe: Global variables Pin
Avi Berger5-Jan-10 16:45
Avi Berger5-Jan-10 16:45 
QuestionGeneric Office 2007 _Application Interface class Pin
eight4-Jan-10 19:39
eight4-Jan-10 19:39 
AnswerRe: Generic Office 2007 _Application Interface class Pin
Migounette4-Jan-10 22:26
Migounette4-Jan-10 22:26 
GeneralRe: Generic Office 2007 _Application Interface class Pin
eight5-Jan-10 14:49
eight5-Jan-10 14:49 
QuestionAdd icons to menu bar Pin
Abinash Mohanty4-Jan-10 17:41
Abinash Mohanty4-Jan-10 17:41 
AnswerRe: Add icons to menu bar Pin
KingsGambit4-Jan-10 17:56
KingsGambit4-Jan-10 17:56 
AnswerRe: Add icons to menu bar Pin
Madhu Nair4-Jan-10 18:01
Madhu Nair4-Jan-10 18:01 
QuestionList Contol Pin
DevelopmentNoob4-Jan-10 15:11
DevelopmentNoob4-Jan-10 15:11 
QuestionRe: List Contol Pin
David Crow4-Jan-10 15:57
David Crow4-Jan-10 15:57 
AnswerRe: List Contol Pin
YoYo_Yao4-Jan-10 16:16
YoYo_Yao4-Jan-10 16:16 
QuestionVS 2008 - CDialogBar - older application Pin
Tony Teveris4-Jan-10 7:53
Tony Teveris4-Jan-10 7:53 
Converted an older application to VS 2008, this is NOT a new application. This code has been used for years with no problems. Now when built with VS 2008 the CDialogBar is no longer visable but when I check the code (debugging) everything is going through the motions as if very thing is fine. So does anyone have any ideas?

TIA

IDD_HRULE_DIALOG DIALOG 0, 0, 511, 21
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "",IDC_HRULER,"Static",SS_WHITERECT | SS_NOTIFY | SS_SUNKEN,43,4,429,12
END

// just who is derived from whom

class CFrameWnd : public CWnd
class CMDIChildWnd : public CFrameWnd
class CChildFrame : public CMDIChildWnd
class CRuleHDlgBar : public CDialogBar

// create code
int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
return -1;

// create ruler dialog bars
if (!m_RuleHDlgBar.Create(this, IDD_HRULE_DIALOG,CBRS_TOP| CBRS_SIZE_FIXED,-1)
|| !m_RuleHDlgBar.InitDialog())
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
if (!m_RuleVDlgBar.Create(this, IDD_VRULE_DIALOG,CBRS_LEFT| CBRS_SIZE_FIXED|CBRS_ORIENT_VERT,-1)
|| !m_RuleVDlgBar.InitDialog())
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
Like I said, the actual code to draw, size the dialogbar executes fine.

Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074

QuestionCComPtr<istream> releasing problem</istream> Pin
A&Ms4-Jan-10 1:32
A&Ms4-Jan-10 1:32 
AnswerRe: CComPtr releasing problem Pin
KarstenK4-Jan-10 1:57
mveKarstenK4-Jan-10 1:57 
GeneralRe: CComPtr releasing problem Pin
A&Ms4-Jan-10 3:27
A&Ms4-Jan-10 3:27 
GeneralRe: CComPtr releasing problem Pin
KarstenK4-Jan-10 3:34
mveKarstenK4-Jan-10 3:34 
GeneralRe: CComPtr releasing problem Pin
A&Ms4-Jan-10 4:42
A&Ms4-Jan-10 4:42 
GeneralRe: CComPtr releasing problem Pin
KarstenK4-Jan-10 20:35
mveKarstenK4-Jan-10 20:35 

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.