Click here to Skip to main content
15,884,986 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCOM technology and use Pin
marisha.u12-Jul-13 9:53
marisha.u12-Jul-13 9:53 
AnswerRe: COM technology and use Pin
Richard MacCutchan12-Jul-13 22:06
mveRichard MacCutchan12-Jul-13 22:06 
AnswerRe: COM technology and use Pin
pasztorpisti13-Jul-13 7:58
pasztorpisti13-Jul-13 7:58 
GeneralRe: COM technology and use Pin
marisha.u15-Jul-13 4:31
marisha.u15-Jul-13 4:31 
GeneralRe: COM technology and use Pin
pasztorpisti15-Jul-13 4:48
pasztorpisti15-Jul-13 4:48 
AnswerRe: COM technology and use Pin
yusif muffed ektilat25-Aug-13 9:19
professionalyusif muffed ektilat25-Aug-13 9:19 
SuggestionHelp : learn ATL, STL and COM Pin
shanmugarajaa8-Jul-13 18:59
shanmugarajaa8-Jul-13 18:59 
GeneralRe: Help : learn ATL, STL and COM Pin
Richard MacCutchan8-Jul-13 21:12
mveRichard MacCutchan8-Jul-13 21:12 
GeneralRe: Help : learn ATL, STL and COM Pin
Jonathan Davies8-Jul-13 22:39
Jonathan Davies8-Jul-13 22:39 
GeneralRe: Help : learn ATL, STL and COM Pin
Ajay_Tiwari3-Sep-13 0:18
Ajay_Tiwari3-Sep-13 0:18 
QuestionHow can I get the ATL Headers for free? Pin
Louai Haimour6-Jul-13 23:37
Louai Haimour6-Jul-13 23:37 
AnswerRe: How can I get the ATL Headers for free? Pin
Richard MacCutchan7-Jul-13 1:23
mveRichard MacCutchan7-Jul-13 1:23 
QuestionChakra: IActiveScript::GetScriptDispatch() fails with E_OUTOFMEMORY Pin
imagiro3-Jul-13 22:13
imagiro3-Jul-13 22:13 
Hi all,

When using jscipt9 (Chakra) from C++ with the AddNamedItem() / GetScriptDispatch() functionality to create a module-like behaviour (context separation) I get E_OUTOFMEMORY from GetScriptDispatch().

This happens only when omitting the SCRIPTITEM_GLOBALMEMBERS flag with AddNamedItem(), no matter what other flags are given.

I tried already everything, including different flags (all possible flags, not only the known ones), changing the order of calls to IActiveScript, calling it in different states of the script engine, invoking different versions via SCRIPTPROP_INVOKEVERSIONING, implementing all requested interfaces in my IActiveScriptSite etc - no result.

For older versions (means: not using jscript9) of jscript everything works as expected. But as soon as I switch the CLSID to Chakra it breaks.

I posted already on msdn: "AddNamedItem() / GetScriptDispatch() broken in jscript9?" [^] and filed a bug report [^].

You can reproduce with a most simple sample I put on github: https://github.com/IUnknown68/ascptest [^]

My main questions is: Am I doing something wrong? Is there something undocumented I have to do? Or is it really a bug?

Thanks,
imagiro

Edit: Run the sample from the command line with 9 as argument to invoke chakra. Otherwise the old jscript engine will be used.

modified 4-Jul-13 7:03am.

QuestionActiveX in ActiveX problem Pin
leisuregame1-Jul-13 22:29
leisuregame1-Jul-13 22:29 
QuestionCOM Apartment Pin
KRISHNARAYALU16-Jun-13 20:46
KRISHNARAYALU16-Jun-13 20:46 
AnswerRe: COM Apartment Pin
Richard MacCutchan16-Jun-13 20:57
mveRichard MacCutchan16-Jun-13 20:57 
GeneralRe: COM Apartment Pin
KRISHNARAYALU16-Jun-13 21:10
KRISHNARAYALU16-Jun-13 21:10 
GeneralRe: COM Apartment Pin
Richard MacCutchan16-Jun-13 21:24
mveRichard MacCutchan16-Jun-13 21:24 
GeneralRe: COM Apartment Pin
KRISHNARAYALU16-Jun-13 21:35
KRISHNARAYALU16-Jun-13 21:35 
AnswerRe: COM Apartment Pin
imagiro4-Jul-13 2:53
imagiro4-Jul-13 2:53 
AnswerRe: COM Apartment Pin
Krishnakumartg13-Aug-13 6:53
Krishnakumartg13-Aug-13 6:53 
Questionhow to export an enum type in an ATL prject Pin
astupidboy12-Jun-13 21:58
astupidboy12-Jun-13 21:58 
AnswerRe: how to export an enum type in an ATL prject Pin
Jonathan Davies15-Jun-13 4:10
Jonathan Davies15-Jun-13 4:10 
QuestionHere is a C Program showing some Error, Give some solution Pin
Member 969295410-Jun-13 4:03
Member 969295410-Jun-13 4:03 
AnswerRe: Here is a C Program showing some Error, Give some solution Pin
Richard MacCutchan10-Jun-13 6:03
mveRichard MacCutchan10-Jun-13 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.