Click here to Skip to main content
15,901,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to get current compiled file? Pin
David Crow15-Dec-08 3:05
David Crow15-Dec-08 3:05 
AnswerRe: How to get current compiled file? Pin
George_George16-Dec-08 0:38
George_George16-Dec-08 0:38 
GeneralRe: How to get current compiled file? Pin
CPallini16-Dec-08 2:23
mveCPallini16-Dec-08 2:23 
GeneralRe: How to get current compiled file? Pin
George_George18-Dec-08 0:23
George_George18-Dec-08 0:23 
QuestionDownload Data from Web Service using Win 32 C++ Pin
~Khatri Mitesh~15-Dec-08 2:06
~Khatri Mitesh~15-Dec-08 2:06 
AnswerRe: Download Data from Web Service using Win 32 C++ Pin
Code-o-mat15-Dec-08 8:06
Code-o-mat15-Dec-08 8:06 
QuestionCHtmlEditCtrl usage Pin
William Engberts15-Dec-08 0:58
William Engberts15-Dec-08 0:58 
QuestionCant we develope a dll which can be work in both vista and XP? Pin
WindowsPistha15-Dec-08 0:47
WindowsPistha15-Dec-08 0:47 
Hi All,

We have one dll which can be used in many Exes and different Operating systems.

At present i am having one requirement to support to get the LocalLow path in vista.
So I have implemented separate function for it.

I have used SHGetKnownFolderPath funciton to get the LocalLow path.
To compile the workspace , I have to use WINVER value as 0x0600.
IF we defined the WinVersion as 6 , DLL is not running in XP.

Developement Environment :VS 2005 & Vista Business.

//In Vista Expected output : C:\Users\bob\AppData\LocalLow\eGrabber\
//In XP Expceted output: C:\Documents and Settings\Smith\Application Data\eGrabber\
<br />
int GetCurrentUserLocalLowAppPath(LPTSTR szProfileDir,int dirlen )<br />
	{<br />
<br />
	memset(szProfileDir,0,dirlen);<br />
<br />
	 if(IsWinXP() == TRUE)<br />
		 {		<br />
			GetCurrentUserAppPath( szProfileDir, dirlen );<br />
		 }<br />
	 else if(IsVista() == TRUE)<br />
		 {<br />
                 	 PWSTR pszPath[1];<br />
                 	 SHGetKnownFolderPath(NULL,FOLDERID_LocalAppDataLow,0,NULL,pszPath);	<br />
                	//copying the pszPath to szProfileDir array	 <br />
		}<br />
         return 1;<br />
<br />
	}


Any idea how to achieve this.

Your suggestion welcomed ...

Thanks.
AnswerRe: Cant we develope a dll which can be work in both vista and XP? Pin
Naveen15-Dec-08 0:58
Naveen15-Dec-08 0:58 
GeneralRe: Cant we develope a dll which can be work in both vista and XP? Pin
WindowsPistha15-Dec-08 3:51
WindowsPistha15-Dec-08 3:51 
QuestionWant struct parameter by default set to NULL Pin
Wischkony15-Dec-08 0:37
Wischkony15-Dec-08 0:37 
AnswerRe: Want struct parameter by default set to NULL Pin
ramana.g15-Dec-08 0:46
ramana.g15-Dec-08 0:46 
GeneralRe: Want struct parameter by default set to NULL Pin
Wischkony15-Dec-08 0:57
Wischkony15-Dec-08 0:57 
GeneralRe: Want struct parameter by default set to NULL Pin
ramana.g15-Dec-08 1:07
ramana.g15-Dec-08 1:07 
GeneralRe: Want struct parameter by default set to NULL Pin
Wischkony15-Dec-08 1:11
Wischkony15-Dec-08 1:11 
AnswerRe: Want struct parameter by default set to NULL Pin
Maximilien15-Dec-08 0:49
Maximilien15-Dec-08 0:49 
GeneralRe: Want struct parameter by default set to NULL Pin
Wischkony15-Dec-08 1:09
Wischkony15-Dec-08 1:09 
AnswerRe: Want struct parameter by default set to NULL Pin
CPallini15-Dec-08 0:54
mveCPallini15-Dec-08 0:54 
GeneralRe: Want struct parameter by default set to NULL Pin
Wischkony15-Dec-08 1:07
Wischkony15-Dec-08 1:07 
QuestionRe: Want struct parameter by default set to NULL Pin
CPallini15-Dec-08 1:43
mveCPallini15-Dec-08 1:43 
AnswerRe: Want struct parameter by default set to NULL Pin
Wischkony15-Dec-08 2:06
Wischkony15-Dec-08 2:06 
GeneralRe: Want struct parameter by default set to NULL Pin
CPallini15-Dec-08 2:23
mveCPallini15-Dec-08 2:23 
GeneralRe: Want struct parameter by default set to NULL Pin
Wischkony15-Dec-08 2:34
Wischkony15-Dec-08 2:34 
GeneralRe: Want struct parameter by default set to NULL [modified] Pin
CPallini15-Dec-08 2:55
mveCPallini15-Dec-08 2:55 
GeneralRe: Want struct parameter by default set to NULL Pin
BonshatS15-Dec-08 1:56
BonshatS15-Dec-08 1:56 

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.