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
D

Dominik Reichl

@Dominik Reichl
About
Posts
850
Topics
197
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Why Windows 8 Sucks Today
    D Dominik Reichl

    Richard Andrew x64 wrote:

    I can't find where the choices are for Shutdown, Sleep, Hibernate. All I see are Lock and Log off.

    The fastest way to shutdown that I've found is to press Alt+F4 on the desktop and click [OK]. Alternatively (but one step longer) press Ctrl+Alt+Del, click the power icon on the bottom right and shutdown. For users without keyboards there doesn't seem to be obvious, short ways. One is to click the start button (to get to Metro), click the user icon, log off, click and hold the picture and move it upwards, click the power button on the right and shutdown. Another one is to click the start button, move to the bottom left such that the menu appears, click Settings, and on the right there's a power button.


    Too many passwords to remember? Try KeePass Password Safe!

    The Lounge java

  • Block parent form
    D Dominik Reichl

    Yes, this prevents visual effects on hovering, but also grays out all dialog elements (which is actually good I guess). Thanks and best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    C# help question career

  • Block parent form
    D Dominik Reichl

    See above :-D Thanks for the reply anyway, best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    C# help question career

  • Block parent form
    D Dominik Reichl

    I've now implemented the following: when the main form runs into the Activated event, I'm calling the Activate method of the status form. This way the main form is somewhat blocked, but there's still the disadvantage that visually the main form still draws the controls as if they could get the focus (for example the main menu items are highlighted when hovering over them). If you know a way how to disable/solve this, please let me know. Thanks and best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    C# help question career

  • Block parent form
    D Dominik Reichl

    Hello, I've got a main form and a status form. The status form is displayed non-modally (Show method), and updated using Application.DoEvents() while working on a bigger job. Now the problem is that the main form is not blocked while performing the job. Both the status form and the main form can be focused. What I'd like to have is that the main form is blocked and redirects the focus to the status form, just like it would be the case for modal dialogs. Is this possible? I tried setting the Owner property of the status form to the main form, but it didn't have any effect. The ParentForm property is read only, and the Parent property only applies to standard controls, not forms... Thanks and best regards Dominik PS: Moving the job to another thread isn't possible.


    Too many passwords to remember? Try KeePass Password Safe!

    C# help question career

  • [Message Deleted]
    D Dominik Reichl

    Change the line

    List1.Items.Add(Text1.Text);

    to something like

    List1.Items[List1.SelectedIndex] = Text1.Text;

    Maybe first check for the selected index being valid, and adding a new item in case it's invalid.


    Too many passwords to remember? Try KeePass Password Safe!

    C#

  • Memory leak when return char* from DLL
    D Dominik Reichl

    Correct. Based on the original question and replies, it was my impression that different heaps/CRTs are being used (see static linkage post), that's why I suggested this way. Of course, using only one CRT will solve the problem, too.


    Too many passwords to remember? Try KeePass Password Safe!

    C / C++ / MFC

  • Memory leak when return char* from DLL
    D Dominik Reichl

    If the DLL allocates the memory using new, it should also be the one to delete[] it. So, let the DLL export a new function to free memory. In your MFC program, you'd call the original method to allocate the char*, and afterwards you'd pass this pointer to the freeing function of the DLL, which would just delete[] it.


    Too many passwords to remember? Try KeePass Password Safe!

    C / C++ / MFC

  • Returning Random Unicode Characters
    D Dominik Reichl

    ((char)((new Random()).Next(0x621, 0x64A + 1))).ToString();

    :~


    Too many passwords to remember? Try KeePass Password Safe!

    C#

  • floating point exceptions instead of INF, NaN
    D Dominik Reichl

    Maybe you've enabled the floating point exceptions option (in Project -> Project Properties -> Configuration settings -> C/C++ -> Code generation, option "Enable floating point exceptions")?


    Too many passwords to remember? Try KeePass Password Safe!

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

  • convert
    D Dominik Reichl

    CHIVOTIOV wrote:

    char *m_pchar3; m_pchar3 = new char[70];

    Use TCHAR instead of char.


    Too many passwords to remember? Try KeePass Password Safe!

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

  • RemoveDirectoryW()
    D Dominik Reichl

    If you're compiling in Unicode mode, it's basically just the same:

    CString strPath1 = _T("c:\\temp\\folder1\\");
    LPCWSTR lpPath2 = L"testing\\tester";

    CString strPath = strPath1 + lpPath2;

    RemoveDirectoryW(strPath);


    Too many passwords to remember? Try KeePass Password Safe!

    C / C++ / MFC testing beta-testing help question

  • RemoveDirectoryW()
    D Dominik Reichl

    CString strPath1 = _T("c:\\temp\\folder1\\");
    CString strPath2 = _T("testing\\tester");

    CString strPath = strPath1 + strPath2;

    RemoveDirectory(strPath);


    Too many passwords to remember? Try KeePass Password Safe!

    C / C++ / MFC testing beta-testing help question

  • Idle processing
    D Dominik Reichl

    saksp wrote:

    I have selected Project type as Visual C# --> Smart Devise --> Windows CE 5.0

    The .NET Compact Framework doesn't support the Application.Idle event. It is only supported by the .NET Framework.


    Too many passwords to remember? Try KeePass Password Safe!

    C# csharp help tutorial

  • RemoveDirectoryW()
    D Dominik Reichl

    To concatenate the two strings, you could use something like this:

    LPCWSTR lpPath1=L"c:\\temp\\folder1\\";
    LPCWSTR lpPath2=L"testing\\tester";

    std::basic_string<WCHAR> strPath = lpPath1;
    strPath += lpPath2;

    RemoveDirectoryW(strPath.c_str());

    This requires a #include <string>. Note that I'd recommend generic text mappings (with _T, etc.) instead of just using Unicode directly.


    Too many passwords to remember? Try KeePass Password Safe!

    C / C++ / MFC testing beta-testing help question

  • Table and IE8
    D Dominik Reichl

    I've now fixed it by using a single cell.


    Too many passwords to remember? Try KeePass Password Safe!

    Web Development html css question announcement

  • Table and IE8
    D Dominik Reichl

    Hello, can anyone enlighten me why Internet Explorer 8 doesn't display the main page of my website http://keepass.info/[^] correctly? On that page there's a table with two cells, one containing left-aligned text (news items), the other has fixed size and contains a right-aligned image. Although the width of the right cell is specified explicitly, IE8 assigns an extremly large size to it. The width is specified using a HTML attribute, but I've also tried a CSS style, which didn't change anything. Mozilla Firefox and Opera display the page perfectly. It also validates 100% as XHTML 1.0 Transitional. Best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    Web Development html css question announcement

  • One-Click DataGridViewComboBoxCell
    D Dominik Reichl

    That's exactly what I was looking for. Works perfectly, thank you very much!! Best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    C# question

  • One-Click DataGridViewComboBoxCell
    D Dominik Reichl

    Hello! My application has a DataGridView, which contains a DataGridViewComboBoxCell. Is there any way to make the combo box drop down its list on the first mouse click? Currently, the first mouse click activates the cell, the second one creates the hosted combo box, and the third click finally drops down the combo box list. I'd like the combo box drop down immediately on one click instead of 3. Thanks and best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    C# question

  • depends.exe
    D Dominik Reichl

    The latest version of Dependency Walker (newer than the one included in VS 2005) can be downloaded here: http://dependencywalker.com/[^]. Best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    C / C++ / MFC visual-studio collaboration 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