Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get a value from registery in MFC application Pin
Owner drawn8-Feb-06 0:09
Owner drawn8-Feb-06 0:09 
AnswerRe: how to get a value from registery in MFC application Pin
ThatsAlok8-Feb-06 18:55
ThatsAlok8-Feb-06 18:55 
QuestionNetwork Connection status monotoring Pin
Tony Kurishunkal7-Feb-06 23:56
Tony Kurishunkal7-Feb-06 23:56 
AnswerRe: Network Connection status monotoring Pin
bantisk8-Feb-06 1:12
bantisk8-Feb-06 1:12 
QuestionRe: Network Connection status monotoring Pin
David Crow8-Feb-06 3:52
David Crow8-Feb-06 3:52 
AnswerRe: Network Connection status monotoring Pin
Tony Kurishunkal13-Feb-06 22:15
Tony Kurishunkal13-Feb-06 22:15 
QuestionRe: Network Connection status monotoring Pin
David Crow14-Feb-06 2:50
David Crow14-Feb-06 2:50 
AnswerRe: Network Connection status monotoring Pin
Tony Kurishunkal14-Feb-06 16:02
Tony Kurishunkal14-Feb-06 16:02 
void CNetWorkTryDlg::CheckNetworkStatus()
{
while (true)
{

LPSERVER_INFO_101 pBuf = NULL;
LPSERVER_INFO_101 pTmpBuf;
DWORD dwLevel = 101;
DWORD dwPrefMaxLen = MAX_PREFERRED_LENGTH;
DWORD dwEntriesRead = 0;
DWORD dwTotalEntries = 0;
DWORD dwTotalCount = 0;
DWORD dwServerType = SV_TYPE_SERVER; // all servers
DWORD dwResumeHandle = 0;
NET_API_STATUS nStatus;
LPCWSTR pszServerName = NULL;
DWORD i;


// Call the NetServerEnum function to retrieve information
// for all servers, specifying information level 101.
//
nStatus = NetServerEnum(pszServerName,
dwLevel,
(LPBYTE *) &pBuf,
dwPrefMaxLen,
&dwEntriesRead,
&dwTotalEntries,
dwServerType,
NULL,
&dwResumeHandle);
//
// If the call succeeds,
//
if ((nStatus == NERR_Success) || (nStatus == ERROR_MORE_DATA))
{
if ((pTmpBuf = pBuf) != NULL)
{

m_Status.SetWindowText("Network connected");

}
else
{
m_Status.SetWindowText("Network disconnected");
}

}
else
{
m_Status.SetWindowText("Network disconnected");
}


//
// Free the allocated buffer.
//
if (pBuf != NULL)
NetApiBufferFree(pBuf);
Sleep(2000);
}

}

QuestionGroup box in XP Pin
BabuZaleela7-Feb-06 23:54
BabuZaleela7-Feb-06 23:54 
AnswerRe: Group box in XP Pin
-Dy8-Feb-06 1:29
-Dy8-Feb-06 1:29 
Questionmove button Pin
mariantonietta7-Feb-06 23:41
mariantonietta7-Feb-06 23:41 
AnswerRe: move button Pin
_anil_7-Feb-06 23:44
_anil_7-Feb-06 23:44 
AnswerRe: move button Pin
benjymous8-Feb-06 0:41
benjymous8-Feb-06 0:41 
AnswerRe: move button Pin
David Crow8-Feb-06 3:54
David Crow8-Feb-06 3:54 
Questionmenu Pin
sundar_mca7-Feb-06 23:12
sundar_mca7-Feb-06 23:12 
AnswerRe: menu Pin
_AnsHUMAN_ 8-Feb-06 1:24
_AnsHUMAN_ 8-Feb-06 1:24 
GeneralRe: menu Pin
sundar_mca8-Feb-06 1:30
sundar_mca8-Feb-06 1:30 
GeneralRe: menu Pin
_AnsHUMAN_ 8-Feb-06 1:46
_AnsHUMAN_ 8-Feb-06 1:46 
Questionhow to see CString values Pin
dharani7-Feb-06 23:04
dharani7-Feb-06 23:04 
AnswerRe: how to see CString values Pin
toxcct7-Feb-06 23:07
toxcct7-Feb-06 23:07 
GeneralRe: how to see CString values Pin
dharani7-Feb-06 23:11
dharani7-Feb-06 23:11 
GeneralRe: how to see CString values Pin
Rage8-Feb-06 1:28
professionalRage8-Feb-06 1:28 
AnswerRe: how to see CString values Pin
James R. Twine8-Feb-06 3:37
James R. Twine8-Feb-06 3:37 
GeneralRe: how to see CString values Pin
Rage8-Feb-06 3:49
professionalRage8-Feb-06 3:49 
AnswerRe: how to see CString values Pin
ahmet07038-Feb-06 2:31
ahmet07038-Feb-06 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.