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

Vinaya

@Vinaya
About
Posts
31
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Accessing Activex control methods from static functions??
    V Vinaya

    What are the compile errors you are getting? Specify the exact error messages, if possible. Vini

    C / C++ / MFC c++ com help tutorial question

  • Accessing Activex control methods from static functions??
    V Vinaya

    Static member data need to be defined outside the class declaration. You can declare the CPortController member variable as static. static CPortController m_myportcontroller ; In the CSampleDlg cpp file, define the static variable as

    CPortController CSampleDlg::m_myportcontroller;
    

    Vini

    C / C++ / MFC c++ com help tutorial question

  • blond question - fatal error C1010: unexpected end of file while looking for precompiled header directive
    V Vinaya

    You can give the option 'Not Using Precompiled Headers' for the file and then try to build it. Vini

    C / C++ / MFC question help html tutorial

  • Accessing Activex control methods from static functions??
    V Vinaya

    Static member functions do not have the this pointer. So they cannot access nonstatic class member data. In your case m_myportcontroller is declared as a non static data member. Vini

    C / C++ / MFC c++ com help tutorial question

  • Setting background color of Dialog to RED
    V Vinaya

    You can call the SetDialogBkColor() . You can have a look at this.[^] Thanks, Vini

    C / C++ / MFC

  • Cannot Bookmark
    V Vinaya

    Oops!! Sorry. Tnx anyway.:rose: I searched everywhere, don't know how I missed it. :confused: Vini

    Site Bugs / Suggestions question

  • Converting HWnd to CWnd
    V Vinaya

    CWnd::FromHandle() [^] Vini

    C / C++ / MFC question

  • creating child process in c++
    V Vinaya

    see _execvp() [^] Vini

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

  • bitmap images
    V Vinaya

    Declare a CBitmapButton control variable for the button and call the LoadBitmaps() method. Set the OWNERDRAW property for the button. Vini

    C / C++ / MFC c++ graphics tutorial

  • Cannot Bookmark
    V Vinaya

    Hi, I do not see the link to Bookmark the articles, like before. I got lot of articles added to 'My Booksmarks' already, for easy reference at a later time. But the link is now missing. :( Is there anything wrong? Vini

    Site Bugs / Suggestions question

  • initialization of member variables
    V Vinaya

    Kranti1251984 wrote:

    put() { class2 c2(str1); }

    If you are using the same c2 object to access the member function, you will get the value of the variable str2. The object c2 is destroyed once you exit the put() function of class1. Vini

    C / C++ / MFC question

  • initialization of member variables
    V Vinaya

    Kranti1251984 wrote:

    but when i access str2 in a function of class2, it is blank ....

    Where is the object of class2 created? Are you using the same class2 object to access the member function? Vini

    C / C++ / MFC question

  • Link Error LNK1209
    V Vinaya

    Delete the 'Release' and 'Debug' folder and then perform a 'Rebuild All' on your application. Hope this helps... Vini

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

  • string concatenation
    V Vinaya

    You can use sprintf(). check here ... [^] Vini

    C / C++ / MFC question

  • Create Excel spreadsheet in VC++ 6.0
    V Vinaya

    Have a look at this. [this^] Vini

    C / C++ / MFC c++ tutorial

  • cleanly teminating an invisible dialog application;
    V Vinaya

    Check this.. PostQuitMessage(0); Vini

    C / C++ / MFC question help

  • SearchPath API fails in UNICODE debug build
    V Vinaya

    Thanks a lot. :rose: That solved the problem. :) Vini

    C / C++ / MFC help announcement debugging json question

  • SearchPath API fails in UNICODE debug build
    V Vinaya

    Hi, My application calls the SearchPath() API in a method which gets the version info of a file. On execution, the UNICODE debug version of the application always crashes. The error shown is 'Unhandled exception in MyAppl.exe (NTDLL.DLL): 0xC0000005: Access Violation'. The MBCS/UNICODE Release build of the application works fine and also the MBCS debug build. DI_STATUS getFileVersionInfo(TCHAR * FileName) { TCHAR pathBuffer[MAX_PATH]; struct VS_FIXEDFILEINFO { DWORD dwSignature; DWORD dwStrucVersion; DWORD dwFileVersionMS; DWORD dwFileVersionLS; DWORD dwProductVersionMS; DWORD dwProductVersionLS; DWORD dwFileFlagsMask; DWORD dwFileFlags; DWORD dwFileOS; DWORD dwFileType; DWORD dwFileSubtype; DWORD dwFileDateMS; DWORD dwFileDateLS; } *lpFixedFileInfo; TCHAR fileInfoBuffer[2048]; UINT32 VersionInfoSize; if (SearchPath(NULL, FileName, NULL, sizeof(pathBuffer), pathBuffer, NULL) > 0) { LogMsg(_T(" SearchPath: %s\n"), pathBuffer); } else { return(ERR_FILE_NOT_FOUND); } if ((VersionInfoSize = GetFileVersionInfoSize(FileName, 0)) > 0) { if (GetFileVersionInfo(FileName, NULL, VersionInfoSize, fileInfoBuffer) > 0) { VerQueryValue(fileInfoBuffer, TEXT("\\"), (LPVOID *)&lpFixedFileInfo, &VersionInfoSize); LogMsg(_T(" FileName : %s Version: %d.%d.%d.%d\n"),FileName, HIWORD(lpFixedFileInfo->dwFileVersionMS), LOWORD(lpFixedFileInfo->dwFileVersionMS), HIWORD(lpFixedFileInfo->dwFileVersionLS), LOWORD(lpFixedFileInfo->dwFileVersionLS)); } else { return(DI_ERR_FILE_NOT_FOUND); } } else { return(ERR_FILE_NOT_FOUND); } return(DI_SUCCESS); } The function call is

    TCHAR tmp[1024];
    GetModuleFileName(NULL, tmp, sizeof(tmp));
    getFileVersionInfo(tmp);
    

    Am I missing out something here? I have Win2K OS. Please help. Thanks, Vini

    C / C++ / MFC help announcement debugging json question

  • Download speed.
    V Vinaya

    Hi, Is there any API which gives the current downloading speed? Thanks, Vini

    C / C++ / MFC json performance question

  • Deleting a folder
    V Vinaya

    Thanks. But it didn't work. :( Still my temporary folder is not deleted. Vini

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