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
S

sam India

@sam India
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CAsyncSocket serverSocket;
    S sam India

    CAsyncSocket clienSocket; clienSocket.Create(8001);//or any integer clienSocket.Connect(8000); execute this code on a click event of a dialog box then the onAccept of server will get executed automatically. its better derive to 2 different classes from CAsyncSocket as CMyClientSocket and CMyServerSocket instead of directly using the object of CAsyncSocket. never say die

    C / C++ / MFC help sysadmin

  • Newbie needs help with DiaLogs and drop down menus...
    S sam India

    you can create wizard for this. you will have to use CPropertySheet and CPropertyPage classes. Search for msdn "Creating Wizards" in msdn. For menu cmenu mymenu mynenu.cratepopmenu() mymenu.appendmenu() mymenu.trackpopmenu(); you will have to use these theree functions. in appendmenu function, third parameter is a name of menu item, which can read it from a file using CStdioFile class never say die

    C / C++ / MFC question help tutorial

  • msigetproductcode
    S sam India

    i wish to show user-name and product code in the about dialog box. the function used for this task is msigetproductcode() and msigetproductinfo(), could you please tell me, exactly what parameters should i pass into the function. the prototype is UINT MsiGetProductCode( LPCTSTR szComponent, LPTSTR lpProductBuf ); what does this szComponent refer to and what value should i pass. never say die

    C / C++ / MFC

  • CRecordset, ODBC, and Access
    S sam India

    after update you are requerying and setting the bookmark. this is wrong. you can get bookmark of a current record after you update. and bookmarks are valid only for navigating in the current recordsets. once you close and reopen or requery then the bookmarks get vanished. you should call recordset.canbookmark() to check whether it is possible to bookmark or not. use CDatabase::GetBookmarkPersistence. always use exception handling in database programming to get the actual cause of erro. never say die

    C / C++ / MFC database question announcement

  • quick question
    S sam India

    Create the dialog box in Document class. if var1 and var2 are 2 variables of document class to be used by dialog class. if var3 and var4 are variables of dialog box class. CMyDoc::MyFunc() { CMyDialog Mydlg; Mydlg.var3 = var1; Mydlg.var4 = var2; if(Mydlg.DoModal()= IDOK) { var1 = Mydlg.var3; var2 = Mydlg.var4; } } never say die

    C / C++ / MFC question tutorial

  • VC Debug trouble
    S sam India

    it generally happens when you pass the function call as a parameter to some other function. for instance outer_func(inner_func()); when the control reaches on this line and you press F11 the control enters the source code for inner_func(), but if inner_func() doesn't return a correct value then the control won't enter the source code for outer_func(). never say die

    C / C++ / MFC csharp c++ visual-studio debugging question

  • I really need help here! guru plz help
    S sam India

    according to me, you can solve the problem by creating a DLL project which has a fuction MyFunc() returning application object's address. Include this Dll in your addin and call MyFunc(). never say die

    C / C++ / MFC help question csharp visual-studio

  • I really need help here! guru plz help
    S sam India

    CWinApp* pApp = AfxGetApp();CString szWorkspace;//POSITION posdt = pApp->GetFirstDocTemplatePosition();POSITION posdt = ((CBackITUp_AddinApp*)pApp)->GetFirstDocTemplatePosition(); this code runs well when i executed it in newly created project. i executed this code in CMainFrame class message handler function. i suggest you to try this code in CMainFrame Class for testing purpose only the problem could be in base class of CCommons class, you haven't mentioned anything about its base class. never say die

    C / C++ / MFC help question csharp visual-studio

  • I really need help here! guru plz help
    S sam India

    you are getting Null value returned by pApp->GetFirstDocTemplatePosition() bcoz you are using the base class pointer, and the base class pointer in not aware your projects Doc Template positions. If you type cast it into your project's application class, it won't return null value; CWinApp* pApp = AfxGetApp(); CString szWorkspace; ((MyPrjApp*)pApp)->GetFirstDocTemplatePosition(); never say die

    C / C++ / MFC help question csharp visual-studio

  • Change button browse order
    S sam India

    you can choose tab order from the layou menu, to order the flow of control. the button which you wish to get pressed on pressing enter key, set the button as default in its properties. never say die

    C / C++ / MFC help question learning

  • Spinbox Set long for range
    S sam India

    you can use the function SetRange32 to increase the range of your spin control. kindly deselect "No thousands" check box in the spin control properties dialog. CSpinButtonCtrl *pCtrl = (CSpinButtonCtrl *)GetDlgItem(IDC_SPIN); pCtrl->SetRange32(lower limit,upper limit); never say die

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

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