i wonder, how MSN detects network connection, not internet but network connection, after that it tries to login user. interesting fact is that i specified wrong DNS and gateway, but MSN detected local area network and tried to connect to its server. so may be it use some system notifications? what do you think? really it can help me a lot. thank your, Mike.
Mike Melnikov
Posts
-
How MSN detects network connection -
Manage SwapFileDoes anybody know how to manage SwapFile: change its size, find used space in it, etc. just give me idea where to look for such functions....
-
Rank Articles by their comments countI think that page views - can show instersting in the subject of article. rating,votes,popularity - shows better how reader like "the body" of article IMHO. comments - show how many people try to use/modify it,and represent "community" of the article. so count of comments can show us such communities
-
HELP. . DLLs?????Hi Use Win32 Dynamic-Link Library wizard with option "a dll that exports some symbols" it makes some defines for you like these: #ifdef MY_EXPORTS #define MY_API __declspec(dllexport) #else #define MY_API __declspec(dllimport) #endif modify them a little: #ifdef MY_EXPORTS #define MY_API __declspec(dllexport) #elif defined(_STATIC_MY_LIB_) #define MY_API #else #define MY_API __declspec(dllimport) #endif and use MY_API before your classes: class MY_API CMyTestClass {}; now your should define in dll-project (wizard made it for you) MY_EXPORTS don't define any (MY_EXPORTS|_STATIC_MY_LIB_) in projects that use your dll you can make lib-project using same source files just define _STATIC_MY_LIB_ in project settings. ZMike.
-
How to Change the Caption of a CPropertyPage at run time ???Hi you can use SetTitle() function - before,after or in OnInitDialog check also that you haven't define your own WM_USER + 111 message Mike
-
RichTextCtrlHi 1. catch your enterbutton in BOOL CYourDlg::OnApply() { // do something with m_RichText; return FALSE; } also your can use OnChar(...) fiunction 2. a sample m_RichText.SetSel(0,-1); CHARFORMAT cf; cf.dwMask = CFM_SIZE|CFM_COLOR|CFM_UNDERLINE; cf.dwEffects = CFE_UNDERLINE; cf.crTextColor = RGB( 0, 0,255); cf.yHeight = 120; m_RichText.SetWordCharFormat(cf); 3. the simplest way try { ... m_RichText.LoadFile(..); } catch(...) { } Mike.
-
Determining VC++ Service Pack Numberit is enough? [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\ServicePacks] "latest"=dword:00000004 Mike.
-
Activate window in Win2000thank you for response. I tried to prevent restricting for SetForegroundWindow (as MSDN tells) but I can't do it :-( If it is interesting for you, I solved my problem, using SetWindowPos(&CWnd::wndTopMost...); and then SetWindowPos(&CWnd::wndNoTopMost...); Mike. :-)
-
Activate window in Win2000thank you for response. GetLastError() tell me that all OK. really problem doesn't caused by DrawAnimatedRects() I tried to prevent restricting for SetForegroundWindow (as MSDN tells) but I can't do it :-( If it is interesting for you, I solved my problem, using SetWindowPos(&CWnd::wndTopMost...); and then SetWindowPos(&CWnd::wndNoTopMost...); Mike. :-)
-
Activate window in Win2000I want to maximise window from SystemTray. after calling DrawAnimatedRects for my window I tried to use SetActiveWindow(); SetForegroundWindow(); and even ModifyStyleEx(0,WS_EX_TOPMOST) and it works in WinNT but not Win2000 can anybody help me? Mike.:confused:
-
C++ stuff you _never_ use?Hi I am using virtual base classes a lot. This is simple example: class AUnknown // this is base "interface" class { Object* m_owner; // pointer to base "object" class }; class IMove : virtual public AUnknown { void move() = 0; }; class IName : virtual public AUnknown { string getName() = 0; void setName(string) = 0; }; // class that implements two interfaces and has only one //instance of m_owner; class CanMoveHasName : public IMove, public IName { }; Mike
-
Sorting data in CListCtrl columns...Hi, try to look throw this functions void CMListCtrl::DoSort() { SortItems((PFNLVCOMPARE)MySort,(LPARAM)this); } BEGIN_MESSAGE_MAP(CMListCtrl, CListCtrl) ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, OnColumnclick) END_MESSAGE_MAP() void CMListCtrl::OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult) { NMLISTVIEW* pNMListView = (NMLISTVIEW*)pNMHDR; int iColumn = pNMListView->iSubItem + 1; int iColumnLast = m_iSortedCol; if (iColumn == abs(iColumnLast)) { iColumn = -iColumnLast; } m_iSortedCol = iColumn; DoSort(); } /* The comparison function must return a negative value if the first item should precede the second, a positive value if the first item should follow the second, or zero if the two items are equivalent.*/ static int CALLBACK CMListCtrl::MySort(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort) { CMListCtrl* _this = (CMListCtrl*)lParamSort; CFileItem* pFIOne = (CFileItem *)lParam1; // was added using Insert CFileItem* pFITwo = (CFileItem *)lParam2; // was added using Insert return 0; }
-
Need Help in add-inStandart macros window allow you to open any file at any line. As I understand you want something more. I think you can spend several days and write code that subclass macros window, then catch doubleclick, then find selected line, then... I think you should make your own window with your design. And in that window you can do anything you like. Mike
-
Need Help in add-in>> In the add-in I write to the 'macro' tab of the output >> window If YOU are writing to 'macro' tab I think you can analyze that text immediately :) Or you want to get something else? Mike.
-
visual studiothere is no any standart command in VS for it. but you can look for add-ins here http://codeproject.com/macro/
-
add-in problem...Can you give a url to that add-in?
-
AutoBld Add-InHi I am finding a way to read text from that windows too. But I wrote my own add-in that may be resolve your problem visit http://zmanagers.chat.ru and look how I send build output to "macros" window Zmike