Click here to Skip to main content
14,875,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEnum local security groups in NTFS folder ACL Pin
fourierman9-Aug-06 16:32
Memberfourierman9-Aug-06 16:32 
AnswerRe: Enum local security groups in NTFS folder ACL Pin
Milton Karimbekallil9-Aug-06 23:45
MemberMilton Karimbekallil9-Aug-06 23:45 
QuestionComparing images.... Visual C++ (MFC) Pin
cheng859-Aug-06 16:06
Membercheng859-Aug-06 16:06 
AnswerRe: Comparing images.... Visual C++ (MFC) Pin
Christian Graus9-Aug-06 16:55
protectorChristian Graus9-Aug-06 16:55 
AnswerRe: Comparing images.... Visual C++ (MFC) Pin
PJ Arends9-Aug-06 16:59
professionalPJ Arends9-Aug-06 16:59 
GeneralRe: Comparing images.... Visual C++ (MFC) Pin
kaushal kishore sharma5-Oct-08 22:24
Memberkaushal kishore sharma5-Oct-08 22:24 
AnswerRe: Comparing images.... Visual C++ (MFC) Pin
Hamid_RT9-Aug-06 22:25
MemberHamid_RT9-Aug-06 22:25 
QuestionHELP!! Using "AtlEscapeUrl" Pin
atsuki9-Aug-06 15:55
Memberatsuki9-Aug-06 15:55 
Hi guys.

Now I'm making IE tool bar, like google tool bar, wanting to use both Japanese and English.
Anyone help me out with AtlEscapeUrl by using multibyte code.

following is my source...
============================================================================================
LRESULT CBandToolBarCtrl::OnVarableLink2(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
CString ss = "";
switch(m_nCurrentConfigInfo)
{
case ButtonInfo:
ss = (LPCSTR)m_ptConfigInfo->m_ptButtonInfo[m_nCurrentConfigIdx].URL;
break;
case MenuInfo:
ss = (LPCSTR)m_ptConfigInfo->m_ptMenuItem[m_nCurrentConfigIdx].URL;
break;
}

TCHAR cValue1[1024];
TCHAR cValue2[1024];
m_ctlBandComboBox.GetWindowText(cValue1, sizeof(cValue1));
m_ctlBandComboBox.Process(cValue1);
CString sSJIS = cValue1;
CString sEUC;

int ires;
LPWSTR wbuf;
LPSTR putf;


ires = MultiByteToWideChar(CP_ACP, 0, cValue1, -1, NULL, NULL);
wbuf = new WCHAR[ires+1];
ires = MultiByteToWideChar(CP_ACP, 0, cValue1, -1, wbuf, ires);

strcpy_s(cValue2,cValue1);

switch (m_eURLCode)
{
case ConvSJIS:
break;
case ConvEUCJP:
sEUC = SJIStoEUC(sSJIS);
strcpy_s(cValue2, sEUC);
break;
case ConvUTF8:
// checking buffer size
ires = WideCharToMultiByte(CP_UTF8, 0, wbuf, -1, NULL, 0, NULL, NULL);
if (ires > 0)
{
putf = new char[ires+1];
ires = WideCharToMultiByte(CP_UTF8, 0, wbuf, -1, putf, ires, NULL, NULL);
if (ires > 0)
{
putf[ires] = 0;
strcpy_s(cValue2, putf);
}
delete [] putf;
}
break;
}

int sz;
CHAR buf[2048];
sz = sizeof(buf);

if(AtlEscapeUrl((LPCSTR)cValue2,(LPSTR)buf,(LPDWORD)&sz,(DWORD)sz) == TRUE)
{
ss.Replace("%%%%", buf);
_variant_t varURL = ss;
_variant_t varEmpty;
m_pWebBrowser->Navigate2(&varURL, &varEmpty, &varEmpty, &varEmpty, &varEmpty);
}
return 0;
}

============================================================================================

and anymore information, or anything you need,
please send me mail or MSN messanger
here's my address
atsuki0714@hotmail.com

thank you all.


Atsuki
QuestionMaking a script language? Pin
Lord Kixdemp9-Aug-06 15:51
MemberLord Kixdemp9-Aug-06 15:51 
AnswerRe: Making a script language? Pin
Christian Graus9-Aug-06 17:00
protectorChristian Graus9-Aug-06 17:00 
GeneralRe: Making a script language? Pin
Lord Kixdemp9-Aug-06 17:29
MemberLord Kixdemp9-Aug-06 17:29 
AnswerRe: Making a script language? Pin
Rudolf Jan10-Aug-06 0:19
MemberRudolf Jan10-Aug-06 0:19 
Question[Help] MFC ypelib wrappers for MSXML5 Pin
oaks, rbt9-Aug-06 10:10
Memberoaks, rbt9-Aug-06 10:10 
AnswerRe: [Help] MFC ypelib wrappers for MSXML5 Pin
Gerald Schwab9-Aug-06 18:20
MemberGerald Schwab9-Aug-06 18:20 
GeneralRe: [Help] MFC ypelib wrappers for MSXML5 [modified] Pin
oaks, rbt10-Aug-06 8:09
Memberoaks, rbt10-Aug-06 8:09 
GeneralRe: [Help] MFC ypelib wrappers for MSXML5 Pin
Gerald Schwab10-Aug-06 9:21
MemberGerald Schwab10-Aug-06 9:21 
GeneralRe: [Help] MFC ypelib wrappers for MSXML5 Pin
oaks, rbt14-Aug-06 10:00
Memberoaks, rbt14-Aug-06 10:00 
GeneralRe: [Help] MFC ypelib wrappers for MSXML5 Pin
Gerald Schwab14-Aug-06 15:07
MemberGerald Schwab14-Aug-06 15:07 
QuestionOpen files handle found Pin
RomTibi9-Aug-06 8:52
MemberRomTibi9-Aug-06 8:52 
QuestionRe: Open files handle found Pin
David Crow9-Aug-06 10:02
MemberDavid Crow9-Aug-06 10:02 
AnswerRe: Open files handle found Pin
sujtha9-Aug-06 18:53
Membersujtha9-Aug-06 18:53 
QuestionRe: Open files handle found Pin
Hamid_RT10-Aug-06 8:03
MemberHamid_RT10-Aug-06 8:03 
AnswerRe: Open files handle found Pin
RomTibi11-Aug-06 20:39
MemberRomTibi11-Aug-06 20:39 
GeneralRe: Open files handle found Pin
Hamid_RT12-Aug-06 2:44
MemberHamid_RT12-Aug-06 2:44 
GeneralRe: Open files handle found Pin
RomTibi12-Aug-06 6:03
MemberRomTibi12-Aug-06 6:03 

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.