Click here to Skip to main content
15,913,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: write multistring value to ADS key Pin
Richard Andrew x6425-Sep-11 14:05
professionalRichard Andrew x6425-Sep-11 14:05 
GeneralRe: write multistring value to ADS key Pin
jkirkerx25-Sep-11 15:31
professionaljkirkerx25-Sep-11 15:31 
Good Call, I added the line, must of missed it.

Well after hours of testing, I can write the ScriptMaps, but not the MimeMap, I get some -214 error.

hr = pADs->PutEx(ADS_PROPERTY_UPDATE, CComBSTR("MimeMap"), var);


I can write this ScriptMaps key as a multi-string, and it works fine.


C#
};
    LPWSTR pszScriptMaps[] = 
    {
	L".asp,C:\\WINDOWS\\system32\\inetsrv\\asp.dll,5,GET,HEAD,POST,TRACE",
	L".cer,C:\\WINDOWS\\system32\\inetsrv\\asp.dll,5,GET,HEAD,POST,TRACE",
    };
    dwNumber = sizeof(pszScriptMaps)/sizeof(LPWSTR);
    VariantInit(&var);
    hr = ADsBuildVarArrayStr(pszScriptMaps, dwNumber, &var);
    if (SUCCEEDED(hr)) {
        hr = pADs->PutEx(ADS_PROPERTY_UPDATE, CComBSTR("ScriptMaps"), var);
    }
    VariantClear(&var);


modified 25-Sep-11 23:30pm.

Questionreference prob with namespace C++ Pin
Schehaider_Aymen25-Sep-11 12:00
Schehaider_Aymen25-Sep-11 12:00 
AnswerRe: reference prob with namespace C++ Pin
Schehaider_Aymen25-Sep-11 12:39
Schehaider_Aymen25-Sep-11 12:39 
GeneralRe: reference prob with namespace C++ Pin
Emilio Garavaglia25-Sep-11 21:20
Emilio Garavaglia25-Sep-11 21:20 
GeneralRe: reference prob with namespace C++ Pin
Schehaider_Aymen25-Sep-11 22:48
Schehaider_Aymen25-Sep-11 22:48 
GeneralRe: reference prob with namespace C++ Pin
Richard MacCutchan25-Sep-11 23:03
mveRichard MacCutchan25-Sep-11 23:03 
QuestionHow to use CMimeMessage to send a mail with attached file? Pin
yu-jian25-Sep-11 3:44
yu-jian25-Sep-11 3:44 
AnswerRe: How to use CMimeMessage to send a mail with attached file? Pin
André Kraak25-Sep-11 4:38
André Kraak25-Sep-11 4:38 
QuestionWatch cannot find symbol $x Pin
AlecJames24-Sep-11 4:35
AlecJames24-Sep-11 4:35 
AnswerRe: Watch cannot find symbol $x Pin
Richard MacCutchan24-Sep-11 5:56
mveRichard MacCutchan24-Sep-11 5:56 
GeneralRe: Watch cannot find symbol $x Pin
Albert Holguin24-Sep-11 6:34
professionalAlbert Holguin24-Sep-11 6:34 
GeneralRe: Watch cannot find symbol $x Pin
Richard MacCutchan24-Sep-11 6:43
mveRichard MacCutchan24-Sep-11 6:43 
QuestionVC++ Graphs. Pin
Vijay Rajanna23-Sep-11 7:08
Vijay Rajanna23-Sep-11 7:08 
AnswerRe: VC++ Graphs. Pin
Rajesh R Subramanian23-Sep-11 7:20
professionalRajesh R Subramanian23-Sep-11 7:20 
AnswerRe: VC++ Graphs. Pin
Albert Holguin23-Sep-11 8:36
professionalAlbert Holguin23-Sep-11 8:36 
AnswerRe: VC++ Graphs. Pin
Vijay Rajanna23-Sep-11 9:01
Vijay Rajanna23-Sep-11 9:01 
GeneralRe: VC++ Graphs. Pin
Software_Developer23-Sep-11 9:37
Software_Developer23-Sep-11 9:37 
AnswerRe: VC++ Graphs. Pin
Cedric Moonen25-Sep-11 20:31
Cedric Moonen25-Sep-11 20:31 
QuestionCan I use a SetTimer() API in a console c++ app. Pin
JosephJohnAllen23-Sep-11 5:57
JosephJohnAllen23-Sep-11 5:57 
AnswerRe: Console SetTimer Pin
Software_Developer23-Sep-11 6:14
Software_Developer23-Sep-11 6:14 
GeneralRe: Console SetTimer Pin
Albert Holguin23-Sep-11 8:39
professionalAlbert Holguin23-Sep-11 8:39 
GeneralRe: Console SetTimer Pin
Software_Developer23-Sep-11 21:43
Software_Developer23-Sep-11 21:43 
AnswerRe: Can I use a SetTimer() API in a console c++ app. Pin
André Kraak23-Sep-11 8:46
André Kraak23-Sep-11 8:46 
QuestionRe: Can I use a SetTimer() API in a console c++ app. Pin
Randor 23-Sep-11 15:19
professional Randor 23-Sep-11 15:19 

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.