Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hourglass cursor not showing in thread Pin
CPallini18-Mar-08 5:31
mveCPallini18-Mar-08 5:31 
GeneralRe: hourglass cursor not showing in thread [modified] Pin
josip cagalj18-Mar-08 5:50
josip cagalj18-Mar-08 5:50 
GeneralRe: hourglass cursor not showing in thread Pin
CPallini18-Mar-08 6:46
mveCPallini18-Mar-08 6:46 
QuestionDifference between Windows Xp os and Windows Vista os? Pin
rowdy_vc++18-Mar-08 0:02
rowdy_vc++18-Mar-08 0:02 
AnswerRe: Difference between Windows Xp os and Windows Vista os? Pin
Maxwell Chen18-Mar-08 0:14
Maxwell Chen18-Mar-08 0:14 
GeneralRe: Difference between Windows Xp os and Windows Vista os? Pin
rowdy_vc++18-Mar-08 0:26
rowdy_vc++18-Mar-08 0:26 
AnswerRe: Difference between Windows Xp os and Windows Vista os? Pin
Rajesh R Subramanian18-Mar-08 1:15
professionalRajesh R Subramanian18-Mar-08 1:15 
GeneralRe: Difference between Windows Xp os and Windows Vista os? Pin
rowdy_vc++18-Mar-08 2:07
rowdy_vc++18-Mar-08 2:07 
Hi this is my sample code .

STDMETHODIMP CFileIO::VerifyUser(SAFEARRAY* userCredential, SAFEARRAY* appCredential, BYTE* result)<br />
{<br />
	*result = (BYTE)false; // Prepare in case we fail at some point<br />
	try<br />
	{<br />
		validateCredential(appCredential);<br />
		validateUser(userCredential);    //this is our one sample metod<br />
		*result = (BYTE)true;<br />
	}<br />
	catch (std::exception& e)<br />
	{<br />
		log("Verify User", e.what(), EVENTLOG_ERROR_TYPE);<br />
	}<br />
	return S_OK;<br />
}


#define S_OK ((HRESULT)0x00000000L)//winerror.h
#define S_FALSE ((HRESULT)0x00000001L)//winerror.h

return S_OK ;// this our code <br />
return S_FALSE;


this is perfectly running in windows XP and it gives return value '0'but in vista it running good but it gives the retun value 255.

whats the problem about that?

*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )

GeneralRe: Difference between Windows Xp os and Windows Vista os? Pin
David Crow18-Mar-08 3:41
David Crow18-Mar-08 3:41 
GeneralRe: Difference between Windows Xp os and Windows Vista os? Pin
rowdy_vc++18-Mar-08 4:03
rowdy_vc++18-Mar-08 4:03 
GeneralRe: Difference between Windows Xp os and Windows Vista os? Pin
rowdy_vc++18-Mar-08 4:04
rowdy_vc++18-Mar-08 4:04 
GeneralRe: Difference between Windows Xp os and Windows Vista os? Pin
David Crow18-Mar-08 5:42
David Crow18-Mar-08 5:42 
QuestionSuppressing javascript error from MFC ?? Pin
Soumyadipta17-Mar-08 23:19
Soumyadipta17-Mar-08 23:19 
GeneralRe: Suppressing javascript error from MFC ?? Pin
Maxwell Chen18-Mar-08 0:12
Maxwell Chen18-Mar-08 0:12 
GeneralRAS Dial through Port Pin
PSLoh17-Mar-08 22:19
PSLoh17-Mar-08 22:19 
GeneralOpen button in MS office file Open dialog Pin
Nitheesh George17-Mar-08 20:27
Nitheesh George17-Mar-08 20:27 
GeneralLocal Variable Address off by 4 bytes Pin
ForNow17-Mar-08 20:18
ForNow17-Mar-08 20:18 
QuestionRe: Local Variable Address off by 4 bytes Pin
Maxwell Chen17-Mar-08 20:56
Maxwell Chen17-Mar-08 20:56 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow17-Mar-08 21:54
ForNow17-Mar-08 21:54 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 8:21
Mark Salsbery18-Mar-08 8:21 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 12:40
ForNow18-Mar-08 12:40 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 13:07
Mark Salsbery18-Mar-08 13:07 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 14:59
ForNow18-Mar-08 14:59 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 15:54
ForNow18-Mar-08 15:54 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 16:13
Mark Salsbery18-Mar-08 16:13 

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.