Click here to Skip to main content
14,739,632 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: COM technology and use Pin
yusif muffed ektilat25-Aug-13 10:19
professionalyusif muffed ektilat25-Aug-13 10:19 
SuggestionHelp : learn ATL, STL and COM Pin
shanmugarajaa8-Jul-13 19:59
Membershanmugarajaa8-Jul-13 19:59 
GeneralRe: Help : learn ATL, STL and COM Pin
Richard MacCutchan8-Jul-13 22:12
mveRichard MacCutchan8-Jul-13 22:12 
GeneralRe: Help : learn ATL, STL and COM Pin
Jonathan Davies8-Jul-13 23:39
MemberJonathan Davies8-Jul-13 23:39 
GeneralRe: Help : learn ATL, STL and COM Pin
Ajay_Tiwari3-Sep-13 1:18
MemberAjay_Tiwari3-Sep-13 1:18 
QuestionHow can I get the ATL Headers for free? Pin
Louai Haimour7-Jul-13 0:37
MemberLouai Haimour7-Jul-13 0:37 
AnswerRe: How can I get the ATL Headers for free? Pin
Richard MacCutchan7-Jul-13 2:23
mveRichard MacCutchan7-Jul-13 2:23 
QuestionChakra: IActiveScript::GetScriptDispatch() fails with E_OUTOFMEMORY Pin
imagiro3-Jul-13 23:13
Memberimagiro3-Jul-13 23: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 23:29
Memberleisuregame1-Jul-13 23:29 
QuestionCOM Apartment Pin
KRISHNARAYALU16-Jun-13 21:46
MemberKRISHNARAYALU16-Jun-13 21:46 
AnswerRe: COM Apartment Pin
Richard MacCutchan16-Jun-13 21:57
mveRichard MacCutchan16-Jun-13 21:57 
GeneralRe: COM Apartment Pin
KRISHNARAYALU16-Jun-13 22:10
MemberKRISHNARAYALU16-Jun-13 22:10 
GeneralRe: COM Apartment Pin
Richard MacCutchan16-Jun-13 22:24
mveRichard MacCutchan16-Jun-13 22:24 
GeneralRe: COM Apartment Pin
KRISHNARAYALU16-Jun-13 22:35
MemberKRISHNARAYALU16-Jun-13 22:35 
AnswerRe: COM Apartment Pin
imagiro4-Jul-13 3:53
Memberimagiro4-Jul-13 3:53 
AnswerRe: COM Apartment Pin
Krishnakumartg13-Aug-13 7:53
MemberKrishnakumartg13-Aug-13 7:53 
Questionhow to export an enum type in an ATL prject Pin
astupidboy12-Jun-13 22:58
Memberastupidboy12-Jun-13 22:58 
AnswerRe: how to export an enum type in an ATL prject Pin
Jonathan Davies15-Jun-13 5:10
MemberJonathan Davies15-Jun-13 5:10 
QuestionHere is a C Program showing some Error, Give some solution Pin
Member 969295410-Jun-13 5:03
MemberMember 969295410-Jun-13 5:03 
AnswerRe: Here is a C Program showing some Error, Give some solution Pin
Richard MacCutchan10-Jun-13 7:03
mveRichard MacCutchan10-Jun-13 7:03 
AnswerRe: Here is a C Program showing some Error, Give some solution Pin
Krishnakumartg13-Aug-13 8:05
MemberKrishnakumartg13-Aug-13 8:05 
Questionstd::map and error checking Pin
bkelly139-Jun-13 11:42
Memberbkelly139-Jun-13 11:42 
AnswerRe: std::map and error checking Pin
Garth J Lancaster9-Jun-13 14:18
mveGarth J Lancaster9-Jun-13 14:18 
GeneralRe: std::map and error checking Pin
bkelly139-Jun-13 15:16
Memberbkelly139-Jun-13 15:16 
AnswerRe: std::map and error checking Pin
Richard MacCutchan9-Jun-13 22:23
mveRichard MacCutchan9-Jun-13 22:23 

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.