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
N

nitin_pro

@nitin_pro
About
Posts
9
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How can i get the correct decimal value without truncation ?
    N nitin_pro

    Hi! Actually my problem is that when I perform double dd = double(987554321123456789 /1000000000000000000) this calculation the result is truncated up to 15 digit and it gives result dd = 0.98755432112346 but I want result completely means up to 18 digit may be it’s the limitation of Double data type that it can only store result up to 15 digit bt if it is tn I need some other data type which can store complete result yp to 18 digit. Pls help me to store complete result manse 0.987554321123456789 without truncation .

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

  • How can i get the correct decimal value without truncation ?
    N nitin_pro

    Hi! I m working on a c++ project in which I have two values one is 987654321123456789 and another is 1000000000000000000. My problem is that I m dividing first value by second value which is a decimal type value in result, when I do this I store the result in a double value after typecasting the above calculation by double but it give wrong result. The result is .98755432112346 which is wrong the exact result is .987554321123456789. The code which I use is as -. double dd = double(987554321123456789 /1000000000000000000) After calculation dd = .98755432112346 which is wrong because the actual result is .987554321123456789. So how I do this calculation so that I get the correct result please help me regarding this Thanks

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

  • how the .exe call the dll
    N nitin_pro

    or you also call the loadlibrary function in the exe application , in loadlibrary function you can directly pass the Dll may this help

    C / C++ / MFC c++ question workspace

  • how the .exe call the dll
    N nitin_pro

    you will compile the program in VC++ then copy the DLL and LIB file in your exe program where you want to run.

    C / C++ / MFC c++ question workspace

  • exception error occurs in Navigate2 function
    N nitin_pro

    there are two programs one is exe ane another one is Dll in EXE there is no error and in Dll we face a exception error i 'll pass the path of the file in Navigate2 like this memset(szFolderPath, 0x00, MAX_PATH); SHGetSpecialFolderLocation(NULL,CSIDL_RECENT, &pidl); BOOL f = SHGetPathFromIDList(pidl,szFolderPath); csTempPath.Format(_T("%s"),szFolderPath); INT nTempIndex =csTempPath.Find(_T("Recent")); csTempPath =csTempPath.Mid(0,nTempIndex); csTempPath =csTempPath + _T("Local Settings\\Temp\\Sample") + csExt; hDevice = CreateFile(csTempPath, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, NULL, CREATE_ALWAYS,0,NULL); if(hDevice) { pView->Navigate2(csTempPath); pView->EnableWindow(FALSE); pView->ShowWindow(SW_NORMAL); } the same code successfully runs in an exe but when i make a dll ithe navigate function gives the error . when i debug the code error shows in this Class C:\....MFC\SRC\VIEWHTML.CPP just have a look the code where excatly the error promts i'll mark the arrow void CHtmlView::Navigate2(LPCTSTR lpszURL, DWORD dwFlags /* = 0 */, LPCTSTR lpszTargetFrameName /* = NULL */, LPCTSTR lpszHeaders /* = NULL */, LPVOID lpvPostData /* = NULL */, DWORD dwPostDataLen /* = 0 */) { ASSERT(m_pBrowserApp != NULL); COleSafeArray vPostData; if (lpvPostData != NULL) { if (dwPostDataLen == 0) dwPostDataLen = lstrlen((LPCTSTR) lpvPostData); vPostData.CreateOneDim(VT_UI1, dwPostDataLen, lpvPostData); } COleVariant vURL(lpszURL, VT_BSTR); COleVariant vHeaders(lpszHeaders, VT_BSTR); COleVariant vTargetFrameName(lpszTargetFrameName, VT_BSTR); COleVariant vFlags((long) dwFlags, VT_I4); ===>>> m_pBrowserApp->Navigate(vURL, vFlags, vTargetFrameName, vPostData, vHeaders); } kindly solve the issue thanks

    C / C++ / MFC help

  • exception error occurs in Navigate2 function
    N nitin_pro

    Hello All I have an application in which i use a navigate2 function but when i make a DLL , there is an exception in navigate2 function kindly look into the matter Thanks

    C / C++ / MFC help

  • Debug Assertion Error Occurs while making the Static Linked Dll
    N nitin_pro

    Hello Gurus I have an application in VC++ in which i'll show the rtf file in Rich EDit Ctrl , i completely success to show the file , but the problem is when i make a DLL of that exe application there is an exception in the Dll i had make a DLL (Regular MFC static Linked Dll) in which i'll pass the HInstance ,and path of the file like this extern __declspec(dllexport)bool RTFDisplay::ShowFilePreview(HINSTANCE ist,TCHAR *csFilePath ,void *FileInfo, BYTE bFileType ,TCHAR *csImagePath) { CRTFViewerApp *pApp = (CRTFViewerApp*)AfxGetApp() ; dll_inst=ist; HINSTANCE cur=GetDllInstanceHandle(); AfxSetResourceHandle( cur ); if(bFileType == RTF_FILE ) { CRichPreviewDlg Ob ; Ob.m_csFilePath = csFilePath ; Ob.m_FileInfo = (tagFileInfo*)FileInfo ; Ob.m_csImagePath = csImagePath ; Ob.DoModal(); } AfxSetResourceHandle( dll_inst); return pApp->m_bRetVal; } When i run this DLL there is an exception Debug Assertion Fail , when i get into the code then i found "HINSTANCE cur of GetDllInstanceHandle();" has NULL value.and after this error promt I had make so many DLL earlier with "textctrl" , "listctrl" but i can't face such type of problem Kindly Look into the matter Thanks

    C / C++ / MFC c++ help debugging

  • Creating SQL Database .mdf file using MFC , VC++ ?
    N nitin_pro

    Thanks for your reply as per your saying i connect the master database in order to create another database.but i don't know how i execute the query to create a new database kindly give me the sample code or any syntax how to proceed further thanks

    C / C++ / MFC c++ database sql-server sysadmin question

  • Creating SQL Database .mdf file using MFC , VC++ ?
    N nitin_pro

    Hello I am working on vc++ project in which i want to create the sql connection with my MFC application, so that i can create a new sql database (.mdf file) Is there any way to create a connection with sql server 2000 in VC++ and we also make a new sql database (.mdf) file . kindly look into the matter thanks

    C / C++ / MFC c++ database sql-server sysadmin question
  • Login

  • Don't have an account? Register

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