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
D

Dimitris Vasiliadis

@Dimitris Vasiliadis
About
Posts
24
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [SOLVED] Select with UNICODE
    D Dimitris Vasiliadis

    Is your file saved as utf8 (better without bom)? Also you should add in your html

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


    ...Plug & Pray... X|

    Linux, Apache, MySQL, PHP php database mysql help question

  • Bizarre error with Borland C++ and GetUserName
    D Dimitris Vasiliadis

    I think a generally safer way is to ask for the required size, allocate the memory, and then provide the buffer to store the value. e.g.

    char* name = NULL;
    DWORD namesize = 0;
    //Ask for required size
    GetUserName(NULL, &namesize);
    name = (char*)malloc(namesize+1);
    GetUserName(name, &namesize);
    //Do whatever...
    free(name);


    ...Plug & Pray... X|

    Clever Code help c++ delphi design tutorial

  • Creating a language pack............
    D Dimitris Vasiliadis

    Maybe it's "Resource Only Dlls" you are looking for.


    ...Plug & Pray... X|

    C / C++ / MFC

  • I am 20
    D Dimitris Vasiliadis

    I would be happy if I was 20 :~


    ...Plug & Pray... X|

    The Lounge com discussion

  • Start application before Windows startup
    D Dimitris Vasiliadis

    Maybe you should check the CP article here. I think it will fit your needs better that putting your application in HKLM/.../Run


    ...Plug & Pray... X|

    System Admin security question

  • Using ATL DLL.
    D Dimitris Vasiliadis

    If you want to use the classes take a look at: http://msdn.microsoft.com/library/en-us/vccore/html/_core_mutual_imports.asp?frame=true[^] http://msdn.microsoft.com/library/en-us/vccore/html/_core_import_into_an_application_using___declspec.28.dllimport.29.asp?frame=true[^]


    ...Plug & Pray... X|

    ATL / WTL / STL c++ question

  • Change workgroup
    D Dimitris Vasiliadis

    How can I programmatically change the workgroup / domain a computer belongs? Can I do it remotely? Is there a sample, or any hints? Thanks in advance.


    ...Plug & Pray... X|

    System Admin question

  • Outlook express prevent from open/save attachment file
    D Dimitris Vasiliadis

    I use outlook express 6. Try the menu Tools | Options, go to the Security Tab, and uncheck the "Do not allow attachments to be saved or opened that could potenially be a virus". Hope it helps.


    ...Plug & Pray... X|

    System Admin help tutorial question

  • LPWSTR substring?
    D Dimitris Vasiliadis

    LPWSTR a_string = _T("abcdef"); if (a_string[2] == (WCHAR)'c'){...}


    ...Plug & Pray... X|

    C / C++ / MFC tutorial question

  • Replacing a substring using a string class
    D Dimitris Vasiliadis

    s2 = s1.Replace("string", "solution");

    Check the syntax at MSDN here [^]


    ...Plug & Pray... X|

    C / C++ / MFC help

  • Passing large data to DLLs
    D Dimitris Vasiliadis

    I think the problem is on passing large amounts of data as parameters. Since you say it works with smaller blocks, what I suggest is break the large data into smaller blocks and call Func1 to pass them to the dll one by one. Finally when you have passed all the smaller blocks to the dll, call Func2 to process them all together as one.

    C / C++ / MFC help question

  • ATL ActiveX control for MSAccess Forms
    D Dimitris Vasiliadis

    Where can I find a sample or documentation on ActiveX controls for use from MSAccess Forms. I am trying to create an activex contol (SysListView32 derived) and trying figure what interfaces should I implement to bind it properly, provide a datasource for the items, etc. Thanks in advance.


    ...Plug & Pray... X|

    C / C++ / MFC c++ com

  • Passing large data to DLLs
    D Dimitris Vasiliadis

    If you have access to the dll sources, you can try changing the dll to export two functions - Func1 to load (and append) the data, and Func2 will process the loaded data. Then break your data into smaller blocks and call Func1 until all data is loaded, then call Func2 to handle them.


    ...Plug & Pray... X|

    C / C++ / MFC help question

  • Running Application
    D Dimitris Vasiliadis

    Check GetModuleFileName in MSDN


    ...Plug & Pray... X|

    C / C++ / MFC question windows-admin json

  • Mac look&amp;feel in Windows App
    D Dimitris Vasiliadis

    One simpler way could be to find someone else to do it for you.


    Dirty Job but someone has to do it X|

    C / C++ / MFC question

  • activeX control - using CListCtrl
    D Dimitris Vasiliadis

    Do you handle WM_PAINT messages? Check if you should forward the message to CListCtrl.


    ...Plug & Pray... X|

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

  • multilanguage DLL
    D Dimitris Vasiliadis

    Maybe you have already found a solution. If not search MSDN for Resource-only DLLs and check for samples using the function AfxSetResourceHandle. Hope it helps.


    ...Plug & Pray... X|

    C / C++ / MFC question tutorial

  • Windows XP look and feel on other applications
    D Dimitris Vasiliadis

    I suppose you mean Windows OS's. Take a look at WindowBlinds[^], maybe it fits what you need. If you want XP look and feel for programs you have the source code, you already are on the right place.


    ...Plug & Pray... X|

    C / C++ / MFC question

  • Resizing windows
    D Dimitris Vasiliadis

    Try handling the WM_SIZING message.


    ...Plug & Pray... X|

    C / C++ / MFC tutorial question

  • ActiveX event delay
    D Dimitris Vasiliadis

    I am creating an activex treeview control (ATL, VC++ 6, Win2000) to use it from an MSAccess form. I bind the control value to a field (RegionID, integer) in the form, and also bind a combo box in the same field. When I click some node on my activex control I fire an xxx_Updated event, and expect to see the combo box value change, but nothing happens, until my activex control loses the focus. Is this the normal behaviour or am I doing something wrong, because I was expecting the other controls on the form that are bound on the same field like my activex control to be updated immediately when I fire the _Updated event, and not wait until my control loses the focus. Thanks in advance for any help. The code I use to fire the event is shown below. LRESULT CTreeView::onclick(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) {     if (FireOnRequestEdit(DISPID_VALUE) == S_FALSE)     {         bHandled = FALSE;         return 0;     }     UNUSED_ALWAYS(wParam);     UNUSED_ALWAYS(uMsg);      POINT pt;     TVHITTESTINFO hti;      POINTSTOPOINT(pt, lParam);     hti.pt = pt;     HTREEITEM hItem = TreeView_HitTest(m_ctlSysCtrl.m_hWnd, &hti);     if (hti.flags & (TVHT_ONITEMICON | TVHT_ONITEMLABEL))     {         TV_ITEM tvi = {0};         tvi.hItem = hItem;         tvi.mask |= TVIF_PARAM;         TreeView_GetItem(m_ctlSysCtrl.m_hWnd, &tvi);         put_Value(tvi.lParam);         FireOnChanged(DISPID_VALUE);         FireViewChange();         SendOnDataChange(NULL);         bHandled = TRUE;     }     else         bHandled = FALSE;     return 0; }


    ...Plug & Pray... X|

    ATL / WTL / STL c++ com help
  • Login

  • Don't have an account? Register

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