Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPrinting Class Library PrintRotatedText Pin
DanYELL29-Sep-11 16:41
DanYELL29-Sep-11 16:41 
AnswerRe: Printing Class Library PrintRotatedText Pin
Roger Allen30-Sep-11 6:23
Roger Allen30-Sep-11 6:23 
GeneralRe: Printing Class Library PrintRotatedText Pin
DanYELL30-Sep-11 6:35
DanYELL30-Sep-11 6:35 
Questioncall weka classes Pin
salv0329-Sep-11 5:52
salv0329-Sep-11 5:52 
QuestionRe: call weka classes Pin
David Crow29-Sep-11 7:51
David Crow29-Sep-11 7:51 
AnswerRe: call weka classes Pin
Chris Losinger29-Sep-11 9:26
professionalChris Losinger29-Sep-11 9:26 
AnswerRe: WEKA is written in Java, for JAVA not c, and is a collection of Java classes However you can Pin
Software_Developer29-Sep-11 9:51
Software_Developer29-Sep-11 9:51 
QuestionHow to resize Tab Control?? Pin
antonio34328-Sep-11 22:42
antonio34328-Sep-11 22:42 
AnswerRe: How to resize Tab Control?? Pin
TheGreatAndPowerfulOz29-Sep-11 7:51
TheGreatAndPowerfulOz29-Sep-11 7:51 
GeneralRe: How to resize Tab Control?? Pin
antonio34329-Sep-11 12:49
antonio34329-Sep-11 12:49 
GeneralRe: How to resize Tab Control?? Pin
TheGreatAndPowerfulOz29-Sep-11 19:46
TheGreatAndPowerfulOz29-Sep-11 19:46 
GeneralRe: How to resize Tab Control?? Pin
antonio34329-Sep-11 21:49
antonio34329-Sep-11 21:49 
GeneralRe: How to resize Tab Control?? Pin
TheGreatAndPowerfulOz30-Sep-11 8:24
TheGreatAndPowerfulOz30-Sep-11 8:24 
QuestionLoading ICON Pin
Benjamin Bruno28-Sep-11 22:36
Benjamin Bruno28-Sep-11 22:36 
AnswerRe: Loading ICON Pin
Randor 28-Sep-11 22:55
professional Randor 28-Sep-11 22:55 
AnswerRe: Loading ICON Pin
Madhu Nair28-Sep-11 23:00
Madhu Nair28-Sep-11 23:00 
AnswerRe: Loading ICON Pin
Richard MacCutchan29-Sep-11 2:37
mveRichard MacCutchan29-Sep-11 2:37 
Questionhow to unzip bytes in memory Pin
Namtaerg28-Sep-11 18:15
Namtaerg28-Sep-11 18:15 
AnswerRe: how to unzip bytes in memory Pin
enhzflep28-Sep-11 20:33
enhzflep28-Sep-11 20:33 
AnswerRe: how to unzip bytes in memory Pin
Madhu Nair28-Sep-11 20:35
Madhu Nair28-Sep-11 20:35 
Questionsafearray of variant Pin
jkirkerx28-Sep-11 12:35
professionaljkirkerx28-Sep-11 12:35 
AnswerRe: safearray of variant Pin
TheGreatAndPowerfulOz29-Sep-11 4:26
TheGreatAndPowerfulOz29-Sep-11 4:26 
GeneralRe: safearray of variant Pin
jkirkerx29-Sep-11 5:22
professionaljkirkerx29-Sep-11 5:22 
I was brain dead when I posted the question, I read again and it didn't make sense to me either.

I'm frustrated with the mimemap and ADS. I get the error -2147463156. I decoded the error to my input data not being in the correct format of a safe array.When I examine &var in PutEx, it looks like a safe array to me, but putEx just rejects it. I've googled the subject, but it looks so complex, in which articles talk about a pointer in the package, that points to a record in the safe array, BSTR's, VT's. I found 1 vb example of a successful add to MimeMap, if I could just package my data correctly, I could add the data to the key. Just looking for help again.



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",
	};

    DWORD dwNumber = sizeof(pszMimes)/sizeof(LPWSTR);
    hr = ADsBuildVarArrayStr(pszMimes, dwNumber, &var);
    
	if ( SUCCEEDED (hr )) {
		hr = pADs->PutEx(ADS_PROPERTY_UPDATE, CComBSTR("MimeMap"), CComVariant(var) ); 
		VariantClear(&var);
		if ( SUCCEEDED (hr )) {
			hr = pADs->SetInfo(); 
		}
	}	  		

GeneralRe: safearray of variant Pin
TheGreatAndPowerfulOz29-Sep-11 6:47
TheGreatAndPowerfulOz29-Sep-11 6:47 
GeneralRe: safearray of variant Pin
jkirkerx29-Sep-11 8:18
professionaljkirkerx29-Sep-11 8:18 

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.