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
A

Alberto Giannetto

@Alberto Giannetto
About
Posts
10
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Multilingual resource strings
    A Alberto Giannetto

    I've noticed that VC6 has problems in dealing with language strings, especially unicode characters. What we do normally is create the structure of the resource file using the VC resource editor, then have the translators to use their text editor (I think they use TextPad), re-include the modified resource file in Visual Studio. DO NOT modifiy in any way the file after it has been translated - do not change dialogs, not accelerators, nothing. If you do get a saved copy of the translated version and copy and paste the text using a text editor to replace the garbled text. VC7 seems to have addressed the problem. Hope that helps.

    C / C++ / MFC question learning

  • COM exe server returns CO_E_SERVER_EXEC_FAILURE
    A Alberto Giannetto

    Hi, I have a rather bizarre configuration that is causing me some headache. An application running as the Interactive User acts as COM server. A service spawns another application - therefore running under the System account - that tries to create an instance of the running COM server. The spawned application fails with CO_E_SERVER_EXEC_FAILURE. Additional info: - The COM server uses TypeLib marshalling. - I've tried to flatten the security access on the COM server - no change. - A test application running using the logged on user account succeeds in creating the instance of the COM object. - The COM server is a former MFC app that has been converted to use ATL with the very nice .NET plugin to make the conversion. I have a feeling that is something related to security, but I'm quite surprised not to see 'access denied' rather than 0x80080005. Any ideas? Thanks, Alberto

    C / C++ / MFC c++ csharp com sysadmin security

  • List control window
    A Alberto Giannetto

    Anonymous wrote: If I use a resizable dialog, then the dialog itself is resized but the control size is fixed, no ? If I create a dialog based application, and I click on the maximize button, all the control remian in the original size they were created, is there a way to expand them to the size of the whole dialog frame ? You should be able to intercept the WM_SIZE and then, for each control in the window, call SetWindowPos or something like that. The WM_SIZE gets called with the new size as parameters, so you can redraw your controls or child window accordingly. Albi

    C / C++ / MFC help question

  • List control window
    A Alberto Giannetto

    Why not use resizable dialogs? Alberto

    C / C++ / MFC help question

  • How to get local path from a shared folder name?
    A Alberto Giannetto

    You can use NetShareGetInfo If you're running on Windows NT/2K/XP you can use level 2 and a structure of type SHARE_INFO_2; on Windows 9x/ME level 50 and pass in a structure of type share_info_50. The two structures unfortunately are defined in two different header files and, if you're targeting win9x you'll also need to link to a different library (netapi32.lib for NT/2K/XP and svrapi.lib for 9x) Hope that helps, Alberto

    C / C++ / MFC question sysadmin help tutorial

  • dynamic button on CFormView ???
    A Alberto Giannetto

    if you're using MFC it shouldn't be too difficult to call Create on a CButton object that you can allocate dynamically - haven't tried myself I have to say :)

    C / C++ / MFC question

  • Logon script and dial up
    A Alberto Giannetto

    Hi all, Does anyone know if it is possible, when dialling up the internet with a modem, to run local applications using the login script (the one typically used to provide information to the ISP) so that, when the system dials, an application runs - instaed of having a system that polls the port to see if there's a connection. Thanks, Alberto Giannetto

    C / C++ / MFC tools

  • Multiline Tray Tooltip
    A Alberto Giannetto

    Interesting code surely, but I'm not sure it can help: how do I get full control over the ToolTip when, through Shell_NotifyIcon, all I have to do is just fill a NOTIFYICONDATA structure? Albi

    C / C++ / MFC linux question

  • Setting height in CComboBox dropdown list
    A Alberto Giannetto

    In the resource designer click on the drop-down arrow of the combobox; then drag the bottom down as if you want to enlarge it: that size is the actual extent of the portion of the list box associated to the combobox. Alberto Alberto Giannetto

    C / C++ / MFC question

  • Multiline Tray Tooltip
    A Alberto Giannetto

    Hi all, is there a way to display multiline tooltip on an icon in the system tray box under Win9x? The same multiline tooltip on W2K appears correctly on two lines; on W9x it has the obnoxious black 'squarelets' meaning no translation of carriage returns... The only way I could find to manage system tray icons is via the Shell_NotifyIcon, which doesn't allow full control over the notification messages, except normal mouse and keyboard activity... Thanks, Alberto Giannetto

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