Click here to Skip to main content
15,886,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reading a (MAC) Address on my (NIC) or any other hardware device information. Pin
Rajesh R Subramanian20-Jan-10 19:58
professionalRajesh R Subramanian20-Jan-10 19:58 
QuestionRe: Reading a (MAC) Address on my (NIC) or any other hardware device information. Pin
David Crow21-Jan-10 3:04
David Crow21-Jan-10 3:04 
AnswerRe: Reading a (MAC) Address on my (NIC) or any other hardware device information. Pin
rbwest8621-Jan-10 8:28
rbwest8621-Jan-10 8:28 
GeneralRe: Reading a (MAC) Address on my (NIC) or any other hardware device information. Pin
David Crow21-Jan-10 8:48
David Crow21-Jan-10 8:48 
AnswerRe: Reading a (MAC) Address on my (NIC) or any other hardware device information. Pin
JudyL_MD21-Jan-10 11:34
JudyL_MD21-Jan-10 11:34 
QuestionBeep and MessageBeep not working on Window Server 2008. Pin
Le@rner20-Jan-10 18:41
Le@rner20-Jan-10 18:41 
AnswerRe: Beep and MessageBeep not working on Window Server 2008. Pin
Rajesh R Subramanian20-Jan-10 18:55
professionalRajesh R Subramanian20-Jan-10 18:55 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Le@rner20-Jan-10 19:35
Le@rner20-Jan-10 19:35 
//for beep function
	for(int i=750; i>100; i-=200)
		Beep(i,50+i/5);
	
	Beep( 150, 100 );
	
	HRESULT lCode=GetLastError();
	LPVOID lpMsgBuf;
	FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL,
	lCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
	(LPWSTR) &lpMsgBuf,0,NULL );
	MessageBox((LPCTSTR)lpMsgBuf, _T("Error"), MB_OK | MB_ICONINFORMATION );
//message is "The RPC server is unavilable."
	LocalFree( lpMsgBuf );


for MessageBeep function
	MessageBeep(MB_ICONASTERISK);
	
	HRESULT lCode=GetLastError();
	LPVOID lpMsgBuf;
	FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL,
	lCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
	(LPWSTR) &lpMsgBuf,0,NULL );
	MessageBox((LPCTSTR)lpMsgBuf, _T("Error"), MB_OK | MB_ICONINFORMATION );
//message is "The request is not supported."
	LocalFree( lpMsgBuf );


To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Rajesh R Subramanian20-Jan-10 20:06
professionalRajesh R Subramanian20-Jan-10 20:06 
AnswerRe: Beep and MessageBeep not working on Window Server 2008. Pin
LunaticFringe20-Jan-10 19:04
LunaticFringe20-Jan-10 19:04 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Rajesh R Subramanian20-Jan-10 19:06
professionalRajesh R Subramanian20-Jan-10 19:06 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
LunaticFringe20-Jan-10 19:27
LunaticFringe20-Jan-10 19:27 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
Le@rner20-Jan-10 22:54
Le@rner20-Jan-10 22:54 
GeneralRe: Beep and MessageBeep not working on Window Server 2008. Pin
LunaticFringe21-Jan-10 2:11
LunaticFringe21-Jan-10 2:11 
QuestionSetFocus Function Pin
Pryabu20-Jan-10 17:27
Pryabu20-Jan-10 17:27 
AnswerRe: SetFocus Function Pin
Chris Losinger20-Jan-10 17:39
professionalChris Losinger20-Jan-10 17:39 
AnswerRe: SetFocus Function Pin
LunaticFringe20-Jan-10 17:40
LunaticFringe20-Jan-10 17:40 
AnswerRe: SetFocus Function Pin
vasu_sri20-Jan-10 21:23
vasu_sri20-Jan-10 21:23 
AnswerRe: SetFocus Function Pin
Stephen Hewitt21-Jan-10 1:02
Stephen Hewitt21-Jan-10 1:02 
QuestionC++ fstream's write operation is Sync or aSync? Pin
iceman861620-Jan-10 16:46
iceman861620-Jan-10 16:46 
AnswerRe: C++ fstream's write operation is Sync or aSync? Pin
Chris Losinger20-Jan-10 17:00
professionalChris Losinger20-Jan-10 17:00 
GeneralRe: C++ fstream's write operation is Sync or aSync? Pin
iceman861621-Jan-10 13:20
iceman861621-Jan-10 13:20 
QuestionReading files... Pin
Jacob Dixon20-Jan-10 16:25
Jacob Dixon20-Jan-10 16:25 
AnswerRe: Reading files... Pin
Jacob Dixon20-Jan-10 16:37
Jacob Dixon20-Jan-10 16:37 
AnswerRe: Reading files... Pin
Avi Berger20-Jan-10 16:48
Avi Berger20-Jan-10 16:48 

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.