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...
suiram40
Posts
-
C++ with automatic garbage collection = C# -
C++ with automatic garbage collection = C#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...
-
WIndows Sucks...GetOpenFileName COInitializeEx(COINIT_MULTITHREADED)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
-
WIndows Sucks...GetOpenFileName COInitializeEx(COINIT_MULTITHREADED)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...
-
XP CFileDialog & RichEdit multithreaded appRIch 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; }
-
Array - Strings of Characters.xyz[1] = '1'; not xyz[1] = "1";
-
MFC App for Threads & Virtual MemoryHave a look at psapi.dll
-
XP CFileDialog & RichEdit multithreaded appI 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.
-
right place to start a 3d engineGet latest GETIC 3D Editor and full c++ source code for FPS game at http://getic.njoydeco.com
-
C++ code for 3DCheck latest release of GETIC 3D that comes with C++ source code for navigating in a 3D world .:) http://getic.njoydeco.com
-
Class inheritance problemsyou 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.
-
Can't create a DLL dialog box objecttry this hRes= LoadLibrary("dllwheredlgis.dll"); if(hRes) AfxSetResourceHandle(hRes);
-
UDP-protcol in C -
Custom background for applicationMFC. 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. :)
-
Passing cdc across threadsPass 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.
-
Help Wanted to display dlg box frm the Service#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)
-
Microsoft !!! Q's'CPotato' and any other specific category is right fine, but CObject ???
-
Microsoft !!! Q's1. 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? :) :)
-
see my 3d editor.(c++);) 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
-
3D File viewerI 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 :)