Click here to Skip to main content
15,923,273 members
Home / Discussions / COM
   

COM

 
QuestionIHttpNegotiate and IWebBrowser2 Pin
KellyLynch14-Sep-06 7:42
KellyLynch14-Sep-06 7:42 
QuestionHow to use MSXML Pin
SilpaS14-Sep-06 1:14
SilpaS14-Sep-06 1:14 
AnswerRe: How to use MSXML Pin
Steve S14-Sep-06 1:59
Steve S14-Sep-06 1:59 
AnswerRe: How to use MSXML Pin
George L. Jackson19-Sep-06 12:29
George L. Jackson19-Sep-06 12:29 
QuestionCOM+ error :Callback failure handled by IAsyncErrorNotify Pin
manuel.alvarez13-Sep-06 23:32
manuel.alvarez13-Sep-06 23:32 
QuestionProblems downloading com objects in IE7 Pin
OrcBighter213-Sep-06 18:22
OrcBighter213-Sep-06 18:22 
AnswerRe: Problems downloading com objects in IE7 Pin
Mike Dimmick14-Sep-06 2:00
Mike Dimmick14-Sep-06 2:00 
Questiondanish character in activeX control Pin
khuongdp12-Sep-06 11:30
khuongdp12-Sep-06 11:30 
When I call SetName on my activeX control with some danish character (æøå) as parameter I get some wired text in my Edit control. How can I solved this problem?. Thx in advance.

test.h
// Dispatch maps<br />
//{{AFX_DISPATCH(CMyMFCCtrl)<br />
afx_msg void SetName(LPCTSTR name);<br />
//}}AFX_DISPATCH<br />
DECLARE_DISPATCH_MAP()<br />


test.cpp
// Dispatch map<br />
<br />
BEGIN_DISPATCH_MAP(CMyMFCCtrl, COleControl)<br />
	//{{AFX_DISPATCH_MAP(CSignScanMFCCtrl)<br />
	DISP_FUNCTION(CSignScanMFCCtrl, "SetName", SetName, VT_EMPTY, VTS_BSTR)	<br />
	//}}AFX_DISPATCH_MAP<br />
END_DISPATCH_MAP()<br />
<br />
<br />
void MyCtrl::SetName(LPCTSTR name) <br />
{<br />
   std::string myname = name;<br />
}



CMyDialog dlg = new CMyDialog();<br />
// m_name is a CString<br />
dlg.m_name = myname.c_str();


void CMyDialog::OnInitDialog() <br />
{<br />
  CString defaultText = m_name;<br />
  // get the system date<br />
  SYSTEMTIME systemTime;<br />
  GetLocalTime(&systemTime);<br />
<br />
  char formatDate[20];<br />
  // clear the buffer<br />
  memset(formatDate, (char)NULL, sizeof(formatDate));<br />
<br />
  // format the date to the right format<br />
  sprintf(formatDate," %4.4d%2.2d%2.2d %2.2d%2.2d", <br />
		systemTime.wYear, <br />
		systemTime.wMonth,<br />
		systemTime.wDay,<br />
		systemTime.wHour,<br />
		systemTime.wMinute);<br />
<br />
  // add the formated date to the others<br />
  defaultText += formatDate;<br />
  // insert the new text<br />
  SetDlgItemText(IDC_DESCRIPTON_EDIT, defaultText);<br />
}

AnswerRe: danish character in activeX control Pin
Steve S13-Sep-06 1:50
Steve S13-Sep-06 1:50 
Questionstart for com object Pin
zon_cpp12-Sep-06 1:17
zon_cpp12-Sep-06 1:17 
AnswerRe: start for com object Pin
Steve S12-Sep-06 3:09
Steve S12-Sep-06 3:09 
GeneralRe: start for com object Pin
zon_cpp12-Sep-06 20:20
zon_cpp12-Sep-06 20:20 
QuestionActiveX (ocx file) Pin
zon_cpp12-Sep-06 1:09
zon_cpp12-Sep-06 1:09 
AnswerRe: ActiveX (ocx file) Pin
Steve S12-Sep-06 3:06
Steve S12-Sep-06 3:06 
QuestionOut of office in Lotus Notes Pin
jan larsen11-Sep-06 22:35
jan larsen11-Sep-06 22:35 
QuestionHow to Create SubStorage with More than 32 characters? Pin
kanduripavan11-Sep-06 17:51
kanduripavan11-Sep-06 17:51 
Questionhow to install DCOM to other computers Pin
Yaki_1510-Sep-06 17:20
Yaki_1510-Sep-06 17:20 
AnswerRe: how to install DCOM to other computers Pin
Steve S12-Sep-06 3:03
Steve S12-Sep-06 3:03 
GeneralRe: how to install DCOM to other computers Pin
Yaki_1512-Sep-06 16:17
Yaki_1512-Sep-06 16:17 
GeneralRe: how to install DCOM to other computers Pin
Yaki_1512-Sep-06 16:33
Yaki_1512-Sep-06 16:33 
GeneralRe: how to install DCOM to other computers Pin
Steve S13-Sep-06 1:28
Steve S13-Sep-06 1:28 
GeneralRe: how to install DCOM to other computers Pin
Yaki_1513-Sep-06 3:06
Yaki_1513-Sep-06 3:06 
GeneralRe: how to install DCOM to other computers Pin
Yaki_1514-Sep-06 3:01
Yaki_1514-Sep-06 3:01 
AnswerRe: how to install DCOM to other computers Pin
Hamid_RT15-Sep-06 21:44
Hamid_RT15-Sep-06 21:44 
Questionproblem in retrieving "Time" from database using _RecordsetPtr Pin
PrafullaVedante9-Sep-06 3:07
PrafullaVedante9-Sep-06 3:07 

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.