Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inline assembly syntax error.. Pin
CodingLover31-Oct-11 1:03
CodingLover31-Oct-11 1:03 
GeneralRe: Inline assembly syntax error.. Pin
Snorri Kristjansson31-Oct-11 1:09
professionalSnorri Kristjansson31-Oct-11 1:09 
GeneralRe: Inline assembly syntax error.. Pin
CodingLover31-Oct-11 1:12
CodingLover31-Oct-11 1:12 
AnswerRe: Inline assembly syntax error.. Pin
CodingLover31-Oct-11 23:53
CodingLover31-Oct-11 23:53 
JokeRe: Inline assembly syntax error.. Pin
David Crow1-Nov-11 2:57
David Crow1-Nov-11 2:57 
QuestionHow to get the current active document of MDI application? Pin
rahul.kulshreshtha30-Oct-11 20:41
rahul.kulshreshtha30-Oct-11 20:41 
AnswerRe: How to get the current active document of MDI application? Pin
«_Superman_»30-Oct-11 21:55
professional«_Superman_»30-Oct-11 21:55 
QuestionIIS Metadata, can't write the default pages and Mimes. Pin
jkirkerx30-Oct-11 6:43
professionaljkirkerx30-Oct-11 6:43 
I'm still having trouble writing a Mime list to the Metadata file for IIS on 5.5 and 6.0. My Default Documents was working, but stopped, not sure when I broke it.

I can write the Virtual Path, the asp.net Script Maps, Read write permissions.

The default Docs is the LPWSTR pszDefaultDocs[], and the Mime is pszMimes[].

If anybody with Metadata experience can just take a look at it, perhaps it just something real small I missed.

The last time I worked on it, the Mime array write said I did not submit a safe array. The metedata element type for Mimes is a string array. The element type for default docs is just a string.


//MimeMaps
	LPWSTR pszMimes[] = {
		L".application, application/x-ms-application",
		L".deploy, application/octet-stream",
		L".flv, video/x-flv",
		L".manifest, application/x-ms-manifest",
		L".msp, application/octet-stream",
		L".msu, application/octet-stream",
	};
	
    dwNumber = sizeof(pszMimes)/sizeof(LPWSTR);	
	VariantInit(&var);
	hr = ADsBuildVarArrayStr(pszMimes, dwNumber, &var);
	if (FAILED(hr)) goto CLEANUP;		
		 
	if ( SUCCEEDED (hr )) {
		hr = pADs->PutEx(ADS_PROPERTY_UPDATE, bstr_MimeMap, CComVariant(var) );
		// Fails with a invalid data error
	}
	VariantClear(&var);

	LPSAFEARRAY psaMimes;
	psaMimes = _create_W3SVC_MimeMap_Array();
	VariantInit(&var);


LPWSTR pszDefaultDocs[] = {
		L"index.aspx",
		L"Default.aspx",		
	};

	dwNumber = sizeof(pszDefaultDocs)/sizeof(LPWSTR);
	VariantInit(&var);
	hr = ADsBuildVarArrayStr(pszDefaultDocs, dwNumber, &var);
	if (SUCCEEDED(hr)) {		
		hr = pADs->PutEx(ADS_PROPERTY_UPDATE, bstr_DefaultDoc, var);
	}	
	VariantClear(&var);	

AnswerRe: IIS Metadata, can't write the default pages and Mimes. Pin
jkirkerx30-Oct-11 9:42
professionaljkirkerx30-Oct-11 9:42 
AnswerI'm almost there, how to add to safe array Pin
jkirkerx31-Oct-11 13:18
professionaljkirkerx31-Oct-11 13:18 
QuestionBuild problems Pin
columbos1492730-Oct-11 1:24
columbos1492730-Oct-11 1:24 
AnswerRe: Build problems Pin
Richard MacCutchan30-Oct-11 2:51
mveRichard MacCutchan30-Oct-11 2:51 
AnswerRe: Build problems Pin
_AnsHUMAN_ 30-Oct-11 22:02
_AnsHUMAN_ 30-Oct-11 22:02 
GeneralRe: Build problems Pin
columbos1492731-Oct-11 2:53
columbos1492731-Oct-11 2:53 
QuestionHow to extract Visio XML files properties Pin
DeveloperLife201529-Oct-11 1:41
DeveloperLife201529-Oct-11 1:41 
AnswerRe: How to extract Visio XML files properties Pin
Richard MacCutchan29-Oct-11 2:47
mveRichard MacCutchan29-Oct-11 2:47 
GeneralRe: How to extract Visio XML files properties Pin
Code-o-mat29-Oct-11 4:07
Code-o-mat29-Oct-11 4:07 
AnswerRe: Some links to visio code.. Pin
App_29-Oct-11 12:25
App_29-Oct-11 12:25 
QuestionHow to get column Title when get inffo from IShellFolder2::GetDetailsOf Method? Pin
Le@rner29-Oct-11 1:25
Le@rner29-Oct-11 1:25 
AnswerRe: How to get column Title when get inffo from IShellFolder2::GetDetailsOf Method? Pin
Trogdan6-Jan-12 10:45
Trogdan6-Jan-12 10:45 
Question#defines in a static library Pin
Albert Holguin28-Oct-11 10:30
professionalAlbert Holguin28-Oct-11 10:30 
AnswerRe: #defines in a static library Pin
Niklas L28-Oct-11 22:50
Niklas L28-Oct-11 22:50 
GeneralRe: #defines in a static library Pin
Albert Holguin29-Oct-11 9:55
professionalAlbert Holguin29-Oct-11 9:55 
GeneralRe: #defines in a static library Pin
Richard MacCutchan29-Oct-11 22:35
mveRichard MacCutchan29-Oct-11 22:35 
GeneralRe: #defines in a static library Pin
Albert Holguin30-Oct-11 10:42
professionalAlbert Holguin30-Oct-11 10:42 

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.