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
S

suiram40

@suiram40
About
Posts
35
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C++ with automatic garbage collection = C#
    S suiram40

    I am askin' myself !!! what I do need tones of libraries and spaghetized frameworks to open a file or a socket or a stream or to write some code? I dont. C++ was made by THE ONE for THE ONE. C# was made by the ONES for the OTHERS that's why it wont stand a chance to C++. I don't say C# does not have it's buddies but they will leave-it as soon next language will be invented by some Mammoth company. They already know that, 'couse they have been to so many prior' ...VB, Java, and now C# and C(weak)..who knows...

    The Lounge question csharp c++ performance

  • C++ with automatic garbage collection = C#
    S suiram40

    I am askin' myself !!! what I do need tones of libraries and spaghetized frameworks to open a file or a socket or a stream or to write some code? I dont. C++ was made by THE ONE for THE ONE. C# was made by the ONES for the OTHERS that's why it wont stand a chance to C++. I don't say C# does not have it's buddies but they will leave-it as soon next language will be invented by some Mammoth company. They already know that couse' they have been to so many ...VB, Java, and now C# and C(bemol)..who knows...

    The Lounge question csharp c++ performance

  • WIndows Sucks...GetOpenFileName COInitializeEx(COINIT_MULTITHREADED)
    S suiram40

    around.: [code] class COd : public CFileDialog { public: COd(BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT|OFN_PATHMUSTEXIST, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL):CFileDialog(bOpenFileDialog, lpszDefExt , lpszFileName , dwFlags , lpszFilter , 0 ) { } int DoModal(){ return CFileDialog::DoModal(); } BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { BOOL ret = CFileDialog::OnNotify(wParam, lParam, pResult); OFNOTIFY* pNotify = (OFNOTIFY*)lParam; switch(pNotify->hdr.code) { case CDN_TYPECHANGE: { CWnd* pWnd = GetActiveWindow(); CWnd* PDlg = pWnd; if(pWnd) { GetFocus()->PostMessage(WM_KEYDOWN,VK_RETURN,0); GetFocus()->PostMessage(WM_KEYUP,VK_RETURN,0); } } break; } return ret; } virtual void OnFolderChange() { TCHAR cs[128]; CWnd* pWnd = GetActiveWindow(); CWnd* PDlg = pWnd; CWnd* PSlv = 0; int relation = GW_CHILD|GW_HWNDFIRST; while(pWnd = pWnd->GetWindow(relation)) { GetClassName(pWnd->m_hWnd, cs,128); if(!strcmp("SHELLDLL_DefView",cs)) { CWnd* pSave = pWnd; int relation = GW_CHILD|GW_HWNDFIRST; while(pWnd = pWnd->GetWindow(relation)) { GetClassName(pWnd->m_hWnd, cs,128); if(!strcmp("SysListView32",cs)) { PSlv = pWnd; break; } relation = GW_HWNDNEXT; } pWnd = pSave; } relation = GW_HWNDNEXT; } } }; class DlgWrap { public: DlgWrap(BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEP

    C / C++ / MFC

  • WIndows Sucks...GetOpenFileName COInitializeEx(COINIT_MULTITHREADED)
    S suiram40

    open dilaog after 15 years does not work propertly. Do a simple app. Make it enter MTA. Pop up a Common Open/Save File Dialog. On Win2K Hangs When Selecting topmost My Documents Folder. On Win XP, By selecting my computer the list view is empty. On both OS-es sometime list of files is chopped (if does not hang meanwhile). I would apreciate any workaround. But after 15 years they could not get it right a ... so common open dialog...

    C / C++ / MFC

  • XP CFileDialog & RichEdit multithreaded app
    S suiram40

    RIch Edit is still screwed up at least I solve it with the dialog: BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { BOOL ret = CFileDialog::OnNotify(wParam, lParam, pResult); OFNOTIFY* pNotify = (OFNOTIFY*)lParam; switch(pNotify->hdr.code) { case CDN_TYPECHANGE: { CWnd* pWnd = GetActiveWindow(); CWnd* PDlg = pWnd; if(pWnd) { GetFocus()->PostMessage(WM_KEYDOWN,VK_RETURN,0); GetFocus()->PostMessage(WM_KEYUP,VK_RETURN,0); } } break; } return ret; }

    C / C++ / MFC

  • Array - Strings of Characters.
    S suiram40

    xyz[1] = '1'; not xyz[1] = "1";

    C / C++ / MFC sharepoint com data-structures help question

  • MFC App for Threads & Virtual Memory
    S suiram40

    Have a look at psapi.dll

    C / C++ / MFC c++ performance help

  • XP CFileDialog & RichEdit multithreaded app
    S suiram40

    I have an app whs entering MTA instead STA by calling HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); Now on Windows XP OS all common openfile dialogs behave 'microsoft way' Any FileOpen Dialog even the style is OFN_EXLORER, or not, or even I am using extended structure to get the XP left crap I get folowings. Current browsing folder have only bmp files. In FileType Combobox I have 2 file filters, eg. (*.bmp) and (*jpg) Default selection is bmp. I see the bmp files in the listview. I am changing the File Types: to jpg. The list view is empty. Now I change back to bmp. The list box is still empty !!!. There is no way to repopulate the list view unless I type explicit the *.bmp in the File Name Edit Control. Also none of the rich edit controls work. They crash. If I join a STA CoInitialize() everithing is OK but I need the MTA. If you know any work around couse I searched at msdn and ... Thank you.

    C / C++ / MFC

  • right place to start a 3d engine
    S suiram40

    Get latest GETIC 3D Editor and full c++ source code for FPS game at http://getic.njoydeco.com

    IT & Infrastructure c++ com game-dev

  • C++ code for 3D
    S suiram40

    Check latest release of GETIC 3D that comes with C++ source code for navigating in a 3D world .:) http://getic.njoydeco.com

    C / C++ / MFC c++ com announcement

  • Class inheritance problems
    S suiram40

    you have a dependecy loop. "a.h" file includes "b.h" and "b.h" file includes "a.h" when you derive the derivated class has to know the type tou derive from so you need the definition of the type not the declaration of that type.

    C / C++ / MFC c++ oop help question announcement

  • Can't create a DLL dialog box object
    S suiram40

    try this hRes= LoadLibrary("dllwheredlgis.dll"); if(hRes) AfxSetResourceHandle(hRes);

    C / C++ / MFC c++ question learning

  • UDP-protcol in C
    S suiram40

    see at: http://enet.cubik.org/Features.html

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

  • Custom background for application
    S suiram40

    MFC. I do a skinning for a winapp written in mfc. I have to change totally the bkcolor apearence for all ui in a custom color. I superclassed all controls and works fine except: Tab controls 3d borders shadwows, Toolbar separators, Static frames and 3D edit controls shadows which are still system color. ANy Ideea. P.S Just Dont tell me I have to handle them on WM_PAINT and redraw on top another rect. :)

    C / C++ / MFC c++ design

  • Passing cdc across threads
    S suiram40

    Pass the HDC. Make sure the CDC is retreived by GetDC. Make thet window class has CS_OWNDC. you get it on WM_CREATE. you can set the GDI objects into this context once and thay persistent couse to CS_OWNDC.

    C / C++ / MFC help question

  • Help Wanted to display dlg box frm the Service
    S suiram40

    #ifdef _WIN32_WINNT #if (_WIN32_WINNT >= 0x0400) #define MB_SERVICE_NOTIFICATION 0x00200000L #else #define MB_SERVICE_NOTIFICATION 0x00040000L #endif #define MB_SERVICE_NOTIFICATION_NT3X 0x00040000L #endif MessageBox(...,MB_SERVICE_NOTIFICATION)

    C / C++ / MFC help

  • Microsoft !!! Q's
    S suiram40

    'CPotato' and any other specific category is right fine, but CObject ???

    C / C++ / MFC c++ com oop question

  • Microsoft !!! Q's
    S suiram40

    1. How they can call a type(class name) CObject. As long an object is an instance of a class, How they can call a class 'CObject' ??? 2. Extreme encapsulation!!! -I've seen this in MFC/ATL implementations: If they have C++ classes usually they make data members private and provides public functions for access Them as read/write (Set***(), Get***), so instead writing obj.member=5; you write obj.SetMemebr(5); and type t = obj.member; you write type t = obj.GetMember(). -On the other hand when you use some COM components type libraries By default (!raw_interfaces_only) they wrap the ccom_ptr In the *.tli generated files around the interfaces 'transforming' The interface method calls (__declspace(propput=)...) po->SetVar(type) into po->_var=type; which is the other way around. So finally the cool thing is when we have the possibility of right member access we wrap function calls and when we have function calls We wrap direct member access call. Isn’t this weird? :) :)

    C / C++ / MFC c++ com oop question

  • see my 3d editor.(c++)
    S suiram40

    ;) I finished the 3d editor and I have released the full C++ code for the 3d scene viewer. Is a good start for learning 3D using C++. http://getic.njoydeco.com

    IT & Infrastructure c++ com learning

  • 3D File viewer
    S suiram40

    I finished the 3d editor and I have released the full C++ code for the 3d scene viewer. Is a good start for learning 3D using C++. http://getic.njoydeco.com :)

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