Click here to Skip to main content
15,899,754 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionAtlAdvise returns 0x80040201 [modified] Pin
Scorp1us1-May-08 8:28
Scorp1us1-May-08 8:28 
QuestionPopup Menu sends "UnInit" Before sending a command Pin
yytg1-May-08 4:43
yytg1-May-08 4:43 
QuestionC2440 Pin
T.RATHA KRISHNAN30-Apr-08 19:37
T.RATHA KRISHNAN30-Apr-08 19:37 
AnswerRe: C2440 Pin
Jörgen Sigvardsson1-May-08 0:14
Jörgen Sigvardsson1-May-08 0:14 
QuestionHow to use ATL COM dll in JavaScript? Pin
ritz123430-Apr-08 2:30
ritz123430-Apr-08 2:30 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
led mike30-Apr-08 4:32
led mike30-Apr-08 4:32 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
CPallini30-Apr-08 5:19
mveCPallini30-Apr-08 5:19 
GeneralRe: How to use ATL COM dll in JavaScript? Pin
ritz123430-Apr-08 18:41
ritz123430-Apr-08 18:41 
Thanks for the reply,

The problem is when I run the JScript in Mozilla Firefox browser it says

that ActiveX object is not defined.

My CoClass is defined as shown below.

class ATL_NO_VTABLE CQpOffice :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CQpOffice, &CLSID_QpOffice>,
public IDeskBand,
public IObjectWithSite,
public IDispatchImpl<IQpOffice, &IID_IQpOffice, &LIBID_AUTOUPDATETBLib>

and the interface method is defined as

STDMETHODIMP CQpOffice::Hello2(BSTR *String)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())

// TODO: Add your implementation code here
if(!String)
return(E_POINTER);
*String=::SysAllocString(L"Hello2!");
return S_OK;
}

and the JScript to call the interface method is defined as

var obj;
obj= new ActiveXObject("AUTOUPDATETBLib.QpOffice");
alert(obj.Hello2());

What could be the problem so I received the error "ActiveX object not defined" the COM DLL is registered in the system and I can see the CoClass and Interface method in "Object Browser" in Visual Basic 6.0.

ritz1234

QuestionRe: How to use ATL COM dll in JavaScript? Pin
CPallini30-Apr-08 22:10
mveCPallini30-Apr-08 22:10 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
ritz12341-May-08 3:06
ritz12341-May-08 3:06 
GeneralLoading a Dialog Resource from a different DLL Pin
PhilGoh29-Apr-08 2:30
PhilGoh29-Apr-08 2:30 
AnswerRe: Loading a Dialog Resource from a different DLL Pin
prasad_som30-Apr-08 4:16
prasad_som30-Apr-08 4:16 
QuestionHandle VC++ ATL COM Event in Java Script ?? [modified] Pin
garammasala28-Apr-08 2:46
garammasala28-Apr-08 2:46 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt28-Apr-08 15:57
Stephen Hewitt28-Apr-08 15:57 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
garammasala28-Apr-08 17:42
garammasala28-Apr-08 17:42 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt28-Apr-08 17:46
Stephen Hewitt28-Apr-08 17:46 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
garammasala28-Apr-08 20:43
garammasala28-Apr-08 20:43 
GeneralRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt29-Apr-08 20:07
Stephen Hewitt29-Apr-08 20:07 
QuestionRe: Handle VC++ ATL COM Event in Java Script ?? Pin
garammasala5-May-08 21:07
garammasala5-May-08 21:07 
AnswerRe: Handle VC++ ATL COM Event in Java Script ?? Pin
Stephen Hewitt6-May-08 16:25
Stephen Hewitt6-May-08 16:25 
AnswerRe: Handle VC++ ATL COM Event in Java Script ?? [modified] Pin
garammasala6-May-08 17:38
garammasala6-May-08 17:38 
Generalperformant deserialization from a buffer to a std::Vector‏ Pin
manustone24-Apr-08 3:45
manustone24-Apr-08 3:45 
GeneralRe: performant deserialization from a buffer to a std::Vector‏ Pin
Stuart Dootson28-Apr-08 1:22
professionalStuart Dootson28-Apr-08 1:22 
GeneralRe: performant deserialization from a buffer to a std::Vector‏ Pin
manustone28-Apr-08 5:31
manustone28-Apr-08 5:31 
GeneralA quick question on themes... Pin
Gene OK24-Apr-08 3:01
Gene OK24-Apr-08 3:01 

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.