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

shivditya

@shivditya
About
Posts
158
Topics
59
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to monitor ie events via toolbar without mfc
    S shivditya

    I found only one article on codeproject is using CCmdTarget for finding sink for AfxConnectionAdvise((LPUNKNOWN)s_pFrameWB,DIID_DWebBrowserEvents2,pUnk,FALSE,dw); I know that I have to use interface DWebBrowserEvents2. But for which It requires CCmdTarget,which is mfc class. I am trying to monitor IE with help of toolbar, so I am using pure atl,com and not mfc.So what is alternative way to monitor events.I have IWebBrowser2 object in my hand.

    || ART OF LIVING ||

    ATL / WTL / STL c++ com help question

  • DocumentComplete and reload
    S shivditya

    I found article is using CCmdTarget for finding sink. I am actually in similar problem,where I am trying to monitor IE with help of toolbar, so I am using pure atl,com and not mfc.So what is alternative way to monitor events.Or I have to in similar way. I have IWebBrowser2 object in my hand.

    || ART OF LIVING ||

    COM c++ question testing beta-testing

  • I am not getting option of SQL server.
    S shivditya

    From Data menu when I select Add new data source. I get wizard which shows 3 options , after selecting database as first option It shows second page Of new connection,I get Add Connection box. On which change Button gives list of available databases. (All this for first chapter of ADO.net step by step.) I have installed SQL server 2005.net,VC#2005.net still it does not show SQL server option in list. It just shows Microsoft SQL server database file,which is of no use. Will any one will help me for same. When I open SQL server 2005,it really does not have anything like Query analyser or Enterprise Manager.

    || ART OF LIVING ||

    Database database csharp sql-server sysadmin help

  • Dialog bar buttons disabled state.
    S shivditya

    But Classwizrd does not give any options for that. I can get message handlers only for BN_CLICKED and BN_DOUBLECLICKED.

    || ART OF LIVING ||

    C / C++ / MFC tutorial

  • Dialog bar buttons disabled state.
    S shivditya

    I created dialog bar in CHtmlView SDI application by clicking rebar application. But whatever buttons I placed on that bar remain disabled. Even if I tried using only style WM_VISIBLE in precreate window. Or m_dialogbar.EnableWindow(true); or GetDlgItem->(IDC_BUTTON1)->EnableWindow(true); . The buttons remain disabled. How to use it. I just want editbox URL to be navigated on button click,and simple back ,front buttons.

    || ART OF LIVING ||

    C / C++ / MFC tutorial

  • How to stop another exe from current project.
    S shivditya

    Thanks everyone for sending reply,I will try sending WM_CLOSE

    || ART OF LIVING ||

    C / C++ / MFC question

  • How to stop another exe from current project.
    S shivditya

    I have a one exe running how can I terminate it through another project.

    || ART OF LIVING ||

    C / C++ / MFC question

  • Application crashes please help.
    S shivditya

    Dear Friend I am not having .h file so I am loading it dynamically using LoadLibrary Only. I am having documentation of dll in which it is described the details of each functions ,what it does and its parameters. Even dll version number is also mentioned. so no chance of Mistake of parameters.

    || ART OF LIVING ||

    C / C++ / MFC help debugging announcement

  • Application crashes please help.
    S shivditya

    I am not having source code of dll and no contact with writer of that dll. I also agree it is problem of calling convention. But what is solution for that. I tried allmost all __cdecl,__stdcall,WINAPI, something like __forcecall (not exact) .But it crashes after end of function.

    || ART OF LIVING ||

    C / C++ / MFC help debugging announcement

  • Application crashes please help.
    S shivditya

    I am developing application which has to use third party dll,(for scanning)who only has described exported functions with function definition. After I developed a application,which gives proper result but it gives assertion in debug mode at each and every call of function imported from dll. Following is assertion. "The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention." And after completion of process (scanning) application terminates. I read articles from google,msdn and included __stdcall ,WINAPI ,combination but error comes as it is. In release mode assertion does not come.but application crashes everytime. I cannot debug it as application is terminating after passing end of function call. Only all it shows in debug is access violation and all binary code.

    || ART OF LIVING ||

    C / C++ / MFC help debugging announcement

  • Read JPEG file
    S shivditya

    I think you must read stream fundamentals. fstream fs; fs.open("file.txt",ios::bin); // not sure about bin or binary. Search in C++ books, msdn does not have good documentation about streams.

    || ART OF LIVING ||

    C / C++ / MFC tutorial

  • LNK2005 Error
    S shivditya

    Force multiple just ignores second definition with same name. It is generally risky for very big projects in VC++. But I never found it that risky.

    || ART OF LIVING ||

    C / C++ / MFC help csharp c++

  • LNK2005 Error
    S shivditya

    I am sorry I am using vc 6.0 only.

    || ART OF LIVING ||

    C / C++ / MFC help csharp c++

  • LNK2005 Error
    S shivditya

    Its very simple. Project - > settings Go to linker tab. In linker tab project options edit box at end , just add -------> /FORCE:MULTIPLE Press ok. I hope your problem will be solved.

    || ART OF LIVING ||

    C / C++ / MFC help csharp c++

  • Application crashes please help.
    S shivditya

    I am developing application which has to use third party dll,(for scanning)who only has described exported functions with function definition. After I developed a application,which gives proper result but it gives assertion in debug mode at each and every call of function imported from dll. Following is assertion. "The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention." And after completion of process (scanning) application terminates. I read articles from google,msdn and included __stdcall ,WINAPI ,combination but error comes as it is. In release mode assertion does not come.but application crashes everytime. I cannot debug it as application is terminating after passing end of function call. Only all it shows in debug is access violation and all binary code.

    || ART OF LIVING ||

    C / C++ / MFC help debugging announcement

  • Problem in disabling menu items
    S shivditya

    I have an SDI application ,I want to disable toolbar and menuitems for certain users. Toolbar buttons get hidden but menu items remain as it is. I checked cmu does not get null value. this code is in MainFrame.cpp. *- Instead of m_hWnd I tried ::AfxGetMainWnd() and *- AfxGetApp()->GetMainWindow().GetMenu() but result is worse. ////////////////////////////////current code CMenu* cmu = (CMenu*)::GetMenu(m_hWnd); if(right[0] == 0) { ctb.SetState(ID_ADD_CUSTOMER,TBSTATE_HIDDEN); UINT ui = cmu->EnableMenuItem(ID_ADD_CUSTOMER,MF_DISABLED); } if(right[1] == 0) { ctb.SetState(ID_INACTIVATE_ACCOUNT,TBSTATE_HIDDEN); UINT ui = cmu->EnableMenuItem(ID_INACTIVATE_ACCOUNT,MF_GRAYED); } }

    || ART OF LIVING ||

    C / C++ / MFC c++ design help

  • Google Maps
    S shivditya

    You need to know Visual C++ or may be VB (not sure). You must also have high dpi bitmap images of object for various zoom level.

    || ART OF LIVING ||

    IT & Infrastructure design

  • Extracting file failed. It is most likely caused by low memory (low disk space for swapping file) or corrupted Cabinet file.
    S shivditya

    I removed norton completely. I almost tested all options of paging. Many times downloaded fresh installations but huh now I feel no option other than format. I found on google many people and many unknown discussions giving up infront of this bug in Windows XP . Many people even have experienced only for .net, Any way today I prepared everything for format.Tomorrow morning I have to format. As it is now not allowing to install even antivirus.

    || ART OF LIVING ||

    IT & Infrastructure csharp visual-studio performance help question

  • Extracting file failed. It is most likely caused by low memory (low disk space for swapping file) or corrupted Cabinet file.
    S shivditya

    I get this bug when I try to install any Visual Studio 2005 download from MSDN home page. I dont know what to so ? I have windows xp sp2 only. Norton was previously installed.

    || ART OF LIVING ||

    IT & Infrastructure csharp visual-studio performance help question

  • How to get actual object of class which is in memory
    S shivditya

    Actually I myself was able to do it cnc was object of my modeless class. what I done is I declared it in MainFrame.h Then by (CMainFrame*)AfxGetMainWindow()->cnc I was able to get object of modeless class in modal dialog. From cnc I was able to access all fields on form and everything worked out well. Modification -- yes modal dialog closes once I confirm selection,I didnot mentioned that condition,and I think that is even possible for a separate thread.

    || ART OF LIVING ||

    C / C++ / MFC performance 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