Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

asierra

@asierra
About
Posts
13
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • radio button states
    A asierra

    m_button =-1 "None Checked" m_button = 0 "button a Checked" m_button = 1 "button b Checked"

    C / C++ / MFC question c++

  • Run-time error '91':
    A asierra

    Well, you are right, and I just found out that the problem is that my recordset is not been opened. and that was giving me that error. As I said, When I run this app on any PC that had VB6.0 previously installed, it runs fine, but when I run it on a new PC it doesn´t open my recordset. It seems that some dll is missing on the target PC. I am using an adodc data control connecting through ODBC to an access database. Do you know which other should be included when distributing?

    Visual Basic help question

  • Run-time error '91':
    A asierra

    Hello, I am a getting this error when trying to run my app on a PC that doesn't have VB6 installed. I have a form with an adodc connecting to a DSN, and some controls bind to it. When trying to do some action, like addnew EOF, I get this error: Run-time Error '91': Object Variable or Block Variable Not set First I thought about my dependecy files, which I believe no one is missing in my VSInstaller project. I downloaded the runtime VB6 files from microsoft, and de ado runtime files ans the mdac_type.exe all installed on the target PC. But nothing of this seems to work. I've installed it on two other PC's with vb6 installed and it runs fine. Any ideas, of what could be happening here? -Alfred

    Visual Basic help question

  • How to Change CDialogBar Background
    A asierra

    Changing the color of a CDialog or a CFormView, no problem! But how to do this on a CDialogBar? I want to put a bitmap into my dialog bar, so the image background is the same color of my daliog bar. The problem is that if the user changes the default colors in it control panel, then the dialog bar will be created with the systems default color. I would like to change my Dialog Bar background to a different color. This is a MDI so the Dialog Bar is been created in CMainFrame OnCreate event. Help please! Alfredo

    C / C++ / MFC help graphics tutorial question

  • newbie button method question
    A asierra

    And if it is a CFormView you need to create a new document, like this. POSITION templatePos = GetFirstDocTemplatePosition(); while(templatePos != NULL) { CDocTemplate* pTemplate = GetNextDocTemplate(templatePos); CString strDocName; pTemplate->GetDocString(strDocName, CDocTemplate::docName); if(strDocName == "Form you want to open") pTemplate->OpenDocumentFile(NULL); } Alfredo

    C / C++ / MFC c++ help question

  • CDialogBar Background color
    A asierra

    Hi all, Anyone could please suggest me were to find some info on how to change the background of a Dialog Bar? I've been desperately trying to accomplish this, but I think now I am lost. I tried to derive a class from CDialogBar to override the OnCtlColor function, but now I think this is the hard way, and there might be an easier way. Any suggestions will be greatly appreciated! Alfredo

    C / C++ / MFC tutorial question

  • CMonthCalCtrl returns wrong date
    A asierra

    I just found the answer for this problem Microsoft Knowledge Base Article - 235355 I post it here for reference in case somebody else has to deal with this. The Microsoft article says this behaviour is by design, and SYSTEMTIME should be used instead of CTime class Best, Alfredo

    C / C++ / MFC help tutorial

  • CMonthCalCtrl returns wrong date
    A asierra

    Hello all, I created a Month calendar control into my form, and I want to use it as a date picker, so when the user selects a date, I will fill other CEdit controls with the date selected. But I realize that within MCN_SELECT, the value associated with my Calendar Control, gets the wrong date. void CPlanmView::OnSelectMonthcalendar1(NMHDR* pNMHDR, LRESULT* pResult) { // Users Selects a Date, so MCN_SELECT triggers this. // User selected October 31, 2003 but returns // Feb,10,2004 *pResult = 0; UpdateData(); m_DayPlm.Format("%d",m_CalendarVal.GetDay()); m_MonthPlm.Format("%d",m_CalendarVal.GetMonth()); m_YearPlm.Format("%d",m_CalendarVal.GetYear()); UpdateData(FALSE); } I have also seen the sample provided in the msdn, and it has the same problem, for this control. Any Ideas on how to workaround this issue. Best, -Alfredo

    C / C++ / MFC help tutorial

  • Question about CComboBoxEx
    A asierra

    Suresh, I just created a CComboBoxEx into my project (Dragging the ctrl into my form), went to class wizard and added the function for the SETFOCUS handle event, placed a MessageBox("Got the Focus", NULL, MB_OK) and it worked as expected. How are you creating your control? Have you tried doing exactly the same thing I just did? Visual C++ 6.0 right? Are you creating a class for you control? I suggest you to try to do the same thing I did in another project to see if it works. Good Luck Best, Alfredo

    C / C++ / MFC question

  • Question about CComboBoxEx
    A asierra

    You're right I was using CComboBox not CComboBoxEx. But I am trying to look for another application using CComboBoxEx, let me do some tests and I'll get back to you. Best, Alfredo

    C / C++ / MFC question

  • CMonthCalCtrl MCN_SELECT problem
    A asierra

    Carlos, Thanks for your reply, well I just created it with no code. I mean I put it on my form dragging the control. But I just saw that msdn sample and here is the code, still doesn't work in that way. BOOL CMonthCalPage::OnInitDialog() { CPropertyPage::OnInitDialog(); CWnd *pFrame = GetDlgItem(IDC_MCFRAME); CRect rcWnd; pFrame->GetClientRect(rcWnd); pFrame->DestroyWindow(); //pFrame was just a placeholder anyway. m_MonthCal.Create(WS_CHILD|WS_VISIBLE,CPoint(rcWnd.left,rcWnd.top),this,IDC_MONTHCAL); UpdateData(FALSE); return TRUE; } Thanks for helping Alfredo Best, Alfredo

    C / C++ / MFC help tutorial

  • Question about CComboBoxEx
    A asierra

    It works for me, In your combo properties, what type you have specified. DropDown, Simple, DropList. Have you tried that? Best, -Alfredo

    C / C++ / MFC question

  • CMonthCalCtrl MCN_SELECT problem
    A asierra

    Hello all, I created a Month calendar control into my form, and I want to use it as a date picker, so when the user selects a date, I will fill other CEdit controls with the date selected. But I realize that within MCN_SELECT, the value associated with my Calendar Control, gets the wrong date. void CPlanmView::OnSelectMonthcalendar1(NMHDR* pNMHDR, LRESULT* pResult) { // Users Selects a Date, so MCN_SELECT triggers this. // User selected October 31, 2003 but returns // Feb,10,2004 *pResult = 0; UpdateData(); m_DiaPlm.Format("%d",m_CalendarVal.GetDay()); m_MesPlm.Format("%d",m_CalendarVal.GetMonth()); m_AnoPlm.Format("%d",m_CalendarVal.GetYear()); UpdateData(FALSE); } I have also seen the sample provided in the msdn, and it has the same problem, for this control. Any Ideas on how to workaround this issue. Best, -Alfredo

    C / C++ / MFC help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups