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
V

Victor Nijegorodov

@Victor Nijegorodov
About
Posts
783
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to get the title of CPropertyPage ?
    V Victor Nijegorodov

    This code works as expected:

    CPropertyPage myPage(IDD_PROPPAGE_SMALL, IDS_STRING_CAPTION);
    text.Format(_T("Property page title:\t%s"), myPage.GetPSP().pszTitle);
    AfxMessageBox(text);

    where IDD_PROPPAGE_SMALL - property page dialog template, IDS_STRING_CAPTION - string resource with the text "My Property page Title" Messagebox shows the text "My Property page Title". :cool:

    C / C++ / MFC com debugging tutorial question

  • Alternative to SQLite or MSAccess
    V Victor Nijegorodov

    Probably. However, the best way would be to backup the DB on the PC A and then restore it on PC B.

    Database database sqlite help question

  • How to get the title of CPropertyPage ?
    V Victor Nijegorodov

    You cannot get title because you didn't set it. Use overloaded CPropertyPage ctor that accepts the caption Id parameter. If the string with this caption Id exists then it will be stored in the PROPSHEETPAGE m_pPSP structure (in its LPTSTR m_psp.pszTitle member) that is the member of the CPropertyPage class. Then you could do:

    CString title = somePage.GetPSP().pszTitle;

    C / C++ / MFC com debugging tutorial question

  • Alternative to SQLite or MSAccess
    V Victor Nijegorodov

    SQL Server creates two files for each DB: [Microsoft SQL Server Database Files & Internal Structure](https://www.bdrsuite.com/blog/microsoft-sql-server-database-files-internal-structure/)

    Database database sqlite help question

  • Alternative to SQLite or MSAccess
    V Victor Nijegorodov

    MS SQL Server Express Edition

    Database database sqlite help question

  • how to czeck AT on USB serial port? (Linux)
    V Victor Nijegorodov

    FROM [https://e-junction.co.jp/share/Cat-1\_AT\_Commands\_Manual\_rev1.1.pdf\](https://e-junction.co.jp/share/Cat-1\_AT\_Commands\_Manual\_rev1.1.pdf):

    Quote:

    2.29. Controls the setting of eDRX parameters +CEDRXS Syntax Command Possible Responses(s) +CEDRXS=[,[,[,]]] +CME ERROR: +CEDRXS? [+CEDRXS: ,[ +CEDRXS: ,[...]]] +CEDRXS=? +CEDRXS: (list of supported s),(list of supported s),(list of supported s) Description The set command controls the setting of the UEs eDRX parameters. The command controls whether

    Hardware & Devices question linux tutorial

  • Enumerations
    V Victor Nijegorodov

    [Compiler Error C3646 | Microsoft Learn](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c3646?view=msvc-170)

    C / C++ / MFC help question

  • glReadPixels unmatched values
    V Victor Nijegorodov

    etechX2 wrote:

    ... and is wrong.

    Define "wrong". :cool:

    C / C++ / MFC

  • vb.net mysql javascript
    V Victor Nijegorodov

    AMRO DAMMAM wrote:

    not fetch data

    Did you debug your code?

    Visual Basic database csharp javascript html

  • timer does not start
    V Victor Nijegorodov

    Where do you create the window the pMyDLLCWnd points to: in a DLL or where?

    C / C++ / MFC c++

  • AfxRegisterWndClass crashes when called again
    V Victor Nijegorodov

    etechX2 wrote:

    Maybe the AfxRegisterWndClass is set to release class automatically at the end when library exits. ?

    1. Please read the Microsoft documentation about AfxRegisterWndClass; 2. Why are you trying to unregister and then reregister already registered Class? just save its name and then use it again!

    C / C++ / MFC c++

  • AfxRegisterWndClass crashes when called again
    V Victor Nijegorodov

    Didn't you test it? :confused: Also you must pass to UnregisterClass the className returned by AfxRegisterWndClass(...), not the caption of your window!

    C / C++ / MFC c++

  • AfxRegisterWndClass crashes when called again
    V Victor Nijegorodov

    Try to [UnregisterClassA function (winuser.h) - Win32 apps | Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-unregisterclassa) in the MyUnCreate()

    C / C++ / MFC c++

  • mfc, vs2022 compatible?
    V Victor Nijegorodov

    charlieg wrote:

    Then I ran into this line of code: "ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomDraw)" pure mfc macro which generates "....cpp(66): warning C26454: Arithmetic overflow: '-' operation produces a negative unsigned result at compile time (io.5)." Mousing over the macro, it expands to some hideous expression: "{ 0x004E + 0xBC00, (WORD)(int)((0U - 0U) - 12), 0, 0, AfxSigNotify_v, (AFX_PMSG)(static_cast<void (ccmdtarget::*)(nmhdr*,="" lresult*)=""> (OnCustomDraw)) }," It's clear why the compiler is alarmed: "(WORD)(int)((0U - 0U) - 12)" Am I just wasting my time here? I'm going to thunder on, but I'm starting to wonder if I'm going to run into so much nonsense like this that it calls into question if I'll have anything working at the end....

    1. It's not a compiler but IntelliSense alarm. 2. Yes, you are just wasting your time here. Just don't worry if the real compiling doe not show it as an error.

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

  • Vb6 and sqlserver 2000
    V Victor Nijegorodov

    Then ALGOL-60 would be much better! :laugh:

    Database

  • Can this be the cause of a memory leak
    V Victor Nijegorodov

    Calin Negru wrote:

    do I need to delete the vector once the work is done? for(int i=0;i<3;i++) { vector<thing*> * Nodes = new vector <thing*>(); thing * Athing = new thing(); Nodes->push_back(Athing); //do stuff Nodes->clear(); delete Nodes; }

    Yes, you do. Since you created it (vector) with new then you need to delete the vector once the work is done

    C / C++ / MFC graphics docker performance question

  • Vb6 and sqlserver 2000
    V Victor Nijegorodov

    [https://www.vbforums.com/showthread.php?644790-RESOLVED-insufficient-key-column-information-for-updating-or-refreshing-its-urgent-plz\](https://www.vbforums.com/showthread.php?644790-RESOLVED-insufficient-key-column-information-for-updating-or-refreshing-its-urgent-plz) [Insufficient key column information - Google Search](https://www.google.com/search?q=Insufficient+key+column+information&sourceid=chrome&ie=UTF-8)

    Database

  • SOLVED Posting "debug (window ) view ?
    V Victor Nijegorodov

    Salvatore Terress wrote:

    are you willing to help using Qt ? If not thanks

    You are welcome! :suss:

    C / C++ / MFC debugging tutorial question

  • SOLVED Posting "debug (window ) view ?
    V Victor Nijegorodov

    Salvatore Terress wrote:

    to help me navigate - using C++ code - thru the debug message?

    Please, define "navigate - using C++ code - thru the debug message". :confused::cool:

    C / C++ / MFC debugging tutorial question

  • change exe icon not work with multiple stage icon file.
    V Victor Nijegorodov

    Le@rner wrote:

    buffer = (char *)malloc(buffersize); ... delete buffer; // free memory

    let's begin with the basics: Why do you use malloc to allocate buffer and then use delete to free the memory?

    C / C++ / MFC performance announcement learning
  • Login

  • Don't have an account? Register

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