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

C / C++ / MFC

 
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 
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 
Well after a day and a half, I can get the pointer, pull the values from the key if there is a key, I can create a new key, and populate the data,
but I can't figure out how to put my data in the safe array.

the PutEx will write the safe array, I just need to get data in it.

My Data
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",



// Create an array to hold the new values
	VariantArray va(cVariants + 1);
		
	SAFEARRAYBOUND saBound = {cVariants, 0};
	SafeArray sa(VT_VARIANT, 1, &saBound);

	VARIANT varArray;
	VariantInit(&varArray);

	V_VT(&varArray) = (VT_VARIANT | VT_ARRAY);
	V_ARRAY(&varArray) = sa.psa;

	for (i = 0; i < cVariants; ++i) {
		hr = SafeArrayPutElement(sa.psa, &i, &va.pa[i]);
		RETURN_ON_FAILURE(hr);
	}		
	
	// Write back to the pointer
	hr = pApp->PutEx(ADS_PROPERTY_UPDATE, bstr_MimeMap, varArray);
	// Commit the Write to the Metabase
	hr = pADs->SetInfo();

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 
GeneralRe: #defines in a static library Pin
Richard MacCutchan30-Oct-11 23:34
mveRichard MacCutchan30-Oct-11 23:34 
AnswerRe: #defines in a static library Pin
Richard MacCutchan28-Oct-11 23:21
mveRichard MacCutchan28-Oct-11 23:21 

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.