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
V

vc programmer 0

@vc programmer 0
About
Posts
56
Topics
42
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • COM port information
    V vc programmer 0

    how can i get com port device's ip address.

    C / C++ / MFC com question

  • how to get
    V vc programmer 0

    can i get both computer and input device(com port). now i get only computer ip address. i want to get com port ip address.

    C / C++ / MFC question sysadmin tutorial

  • how to get
    V vc programmer 0

    how to get list of ip address in my entire network. i want to know list of all ip address of my entire network. how can i get?? pls explain me.. some sample and refrence.pls give me..

    C / C++ / MFC question sysadmin tutorial

  • how can i get network ip address
    V vc programmer 0

    how can i get network ip address or com port address(device)or another computer which have entire network.

    C / C++ / MFC com sysadmin question

  • device driver
    V vc programmer 0

    how can i develop for device driver

    C / C++ / MFC question

  • how to call exe file in vc++
    V vc programmer 0

    can i pass parameter exe to another exe.. pls tell me... again... thank u so much..

    C / C++ / MFC c++ tutorial question

  • how to call exe file in vc++
    V vc programmer 0

    how to call vc++ exe from another vc++ exe file can i call??

    C / C++ / MFC c++ tutorial question

  • mdi
    V vc programmer 0

    when mdi application run,child window is default miximize size window. how i can do???

    C / C++ / MFC question

  • can i open same com port(eg:com1) in both two class
    V vc programmer 0

    i use serial communication both two class. first,i open com port from one class for receiving data and displaying data in the dialog. and i receive data from com. this is fine work.. samelly,i open com port from another class in my application for displaying another format in another dialog. in case, i have problems. it doesn't work. i have not receive data from com port. i want to know can i open same com port(eg:com1) in both two class within one application?

    C / C++ / MFC com question

  • how to change
    V vc programmer 0

    now,i'm writing mdi application. my demo application using tab control.(not mdi tab) tab control create with static control for display image. When i start run demo,images is load. next, i want to change another image while demo is running. following code i using ....it is not ok.. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void CMyView::OnApply() { CMy_TabDlg *dlg = new CMy_TabDlg; if (!dlg->Create(IDD_My_DLG, this)) return; else dlg->Load_samplephoto("image/none.bmp"); }

    C / C++ / MFC tutorial

  • how to restricted browser
    V vc programmer 0

    how to restricted browser in vc++ vb is working web browser. and vc++ is working or not..

    C / C++ / MFC c++ tutorial

  • Microsoft common dialog control
    V vc programmer 0

    #define DATA_FILE_MY _T("C:/myvc++project/mytestvc++/my.dat") >>>>i change this way >>>>now, okkk.. >>>>but, always this is not okkk. >>>>i think

    C / C++ / MFC c++ database tutorial

  • Microsoft common dialog control
    V vc programmer 0

    >> i use microsoft common dialog control. >> i open browser >> and choice file(eg:C:/mydatabase/mydb.mdb) >> save this file path "C:/mydatabase/mydb.mdb" in my.dat(data file). my problems >> my.dat file is create C:/mydatabase/ >> i want to create this data file in my project folder. (eg:C:/myvc++project/mytestvc++) >> how to create my data file in my project folder >> please explain me >> my code is following //mydlg.h CCommonDialog1 m_com; //mydlg.cpp void CMYDLG::OnLoad() { CString file; file.Empty(); m_com.ShowOpen(); file=m_com.GetFileName(); file.TrimRight(); if(file.Right(3)!="mdb") { AfxMessageBox("Please Select a .mdb file"); } else { datafile.m_dataArray.Add(file); datafile.Save_file_path(); //save database file path name eg:C:/mydatabase/mydb.mdb } }

    C / C++ / MFC c++ database tutorial

  • load multiple image (both photo1 and photo2)
    V vc programmer 0

    i understand ... thank you...

    C / C++ / MFC help c++ graphics

  • load multiple image (both photo1 and photo2)
    V vc programmer 0

    every body.... my code is following. my problem is only photo2 is show. i want to show both photo1 and photo2.plz help me... //MyView.h CStatic m_photo1; CStatic m_photo2; HBITMAP m_hBmpOld; HBITMAP m_hBmpNew; BITMAP m_bmInfo; //MyView.cpp void CMyView::OnOK() { Load_Photo_1("image/1.bmp"); Load_Photo_2("image/2.bmp"); } void CMyView::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // Draw the icon dc.DrawIcon(x, y, m_hIcon); } else { CPaintDC dc(this); dc.BitBlt(offsetx,offsety,m_size.cx,m_size.cy, &m_dcMem, sourcex, sourcey,SRCCOPY); CFormView::OnPaint(); } } void CMyView::OnInitialUpdate() { CClientDC dc(this); m_dcMem.CreateCompatibleDC( &dc ); } void CMyView::Load_Photo_1(CString p_filepath) { m_hBmpNew = (HBITMAP) LoadImage( AfxGetInstanceHandle(), p_filepath, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); if( m_hBmpNew == NULL ) { AfxMessageBox("Load Image Failed"); } else { m_photo1.GetClientRect( &rectStaticClient ); rectStaticClient.NormalizeRect(); m_size.cx=rectStaticClient.Size().cx; m_size.cy=rectStaticClient.Size().cy; m_size.cx = rectStaticClient.Width(); // zero based m_size.cy = rectStaticClient.Height(); // zero based m_photo1.ClientToScreen( &rectStaticClient ); ScreenToClient( &rectStaticClient); m_pt.x = rectStaticClient.left; m_pt.y = rectStaticClient.top; GetObject( m_hBmpNew , sizeof(BITMAP), &m_bmInfo ); VERIFY(m_hBmpOld = (HBITMAP)SelectObject(m_dcMem, m_hBmpNew)); offsetx= m_pt.x; offsety=m_pt.y; InvalidateRect(&rectStaticClient); } } void CMyView::Load_Photo_2(CString p_filepath) { m_hBmpNew = (HBITMAP) LoadImage( AfxGetInstanceHandle(), p_filepath, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); if( m_hBmpNew == NULL ) { AfxMessageBox("Load Image Failed"); } else { m_photo2.GetClientRect( &rectStaticClient ); rectStaticClient.NormalizeRect(); m_size.cx=rectStaticClient.Size().cx; m_size.cy=rectStaticClient.Size().cy; m_size.cx = rec

    C / C++ / MFC help c++ graphics

  • tab control error"illegal use of this type as an expression"
    V vc programmer 0

    Yes!!! i change................. m_tabPages[0]->Create(IDD_MY_DLG,this); thank you so much...........

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

  • tab control error"illegal use of this type as an expression"
    V vc programmer 0

    //CMyTab //MyTab.h CDialog *m_tabPages[2]; //MyTab.cpp m_tabPages[0]->Create(CMyTabDlg,this); My demo is MDI application. i have a class.This is CMyTabCtrl, i found codeproject web site. this demo is dialog base application. i run this demo is ok. and i making mdi application. and use this class. but i don't know.what parameter place in "CWnd* pParentWnd". >>>>>m_tabPages[0]->Create(CMyTabDlg,this); >>>>>function argument(CDialog::Create) BOOL Create( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );

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

  • tab control error"illegal use of this type as an expression"
    V vc programmer 0

    My application is MDI application. So,I cannot know what parameter use in following code??? m_tabPages[0]->Create(CMyTabDlg,this); >>>>>>>>>>>>>>>This is my error>>>>>>>>>>>>>> MyTabCtrl.cpp(54) : error C2275: 'CMyTabDlg' : illegal use of this type as an expression MyTabdlg.h(13) : see declaration of CMyTabDlg' >>>>>>>>>>>>>>>This is My code>>>>>>>>>>>>>>>> //MyTabCtrl.cpp CDialog *m_tabPages[2]; //MyTabCtrl.cpp void CMyTabCtrl::Init() { m_tabCurrent=0; m_tabPages[0]->Create(CMyTabDlg,this); //what i use parameter m_tabPages[1]->Create(CMyTabDlg,this); //what i use parameter m_tabPages[0]->ShowWindow(SW_SHOW); m_tabPages[1]->ShowWindow(SW_HIDE); SetRectangle(); } //MyView.h CMyTabCtrl m_tab; //MyView.cpp void CMyView::OnInitialUpdate() { CFormView::OnInitialUpdate(); m_tab.InsertItem(0, _T("One")); m_tab.InsertItem(1, _T("Two")); m_tab.Init(); }

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

  • tab control in vc++
    V vc programmer 0

    >>>>>>>>>>>>>>>This is my error>>>>>>>>>>>>>> MyTabCtrl.cpp(54) : error C2275: 'CMyTabDlg' : illegal use of this type as an expression MyTabdlg.h(13) : see declaration of CMyTabDlg' >>>>>>>>>>>>>>>This is My code>>>>>>>>>>>>>>>> //MyTabCtrl.cpp CDialog *m_tabPages[2]; //MyTabCtrl.cpp void CMyTabCtrl::Init() { m_tabCurrent=0; m_tabPages[0]->Create(CBiometric_TabDlg,this); //what i use parameter m_tabPages[1]->Create(CBiometric_TabDlg,this); m_tabPages[0]->ShowWindow(SW_SHOW); m_tabPages[1]->ShowWindow(SW_HIDE); SetRectangle(); } //MyView.h CMyTabCtrl m_tab; //MyView.cpp void CMyView::OnInitialUpdate() { CFormView::OnInitialUpdate(); m_tab.InsertItem(0, _T("One")); m_tab.InsertItem(1, _T("Two")); m_tab.Init(); }

    C / C++ / MFC c++

  • tab control in vc++
    V vc programmer 0

    i want to use tab control in my mdi application... (i don't mean mdi tab control) tab control with image and button.

    C / C++ / MFC c++
  • Login

  • Don't have an account? Register

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