Click here to Skip to main content
15,911,848 members
Home / Discussions / COM
   

COM

 
GeneralRe: Declaring STL data structures and types in IDL Pin
CodeGuy9-Jan-02 5:20
CodeGuy9-Jan-02 5:20 
GeneralWriting a VERY simple COM Client Pin
Jeremy B8-Jan-02 7:53
Jeremy B8-Jan-02 7:53 
GeneralRe: Writing a VERY simple COM Client Pin
Michael Dunn8-Jan-02 9:59
sitebuilderMichael Dunn8-Jan-02 9:59 
GeneralRe: Writing a VERY simple COM Client Pin
Brian C Hart8-Jan-02 10:10
professionalBrian C Hart8-Jan-02 10:10 
GeneralActiveX and IE Events Pin
7-Jan-02 11:16
suss7-Jan-02 11:16 
GeneralRe: ActiveX and IE Events Pin
Todd Smith7-Jan-02 11:18
Todd Smith7-Jan-02 11:18 
GeneralRe: ActiveX and IE Events Pin
7-Jan-02 11:21
suss7-Jan-02 11:21 
General(KERNEL32.DLL): 0x000006F4: (no name) Pin
4-Jan-02 4:59
suss4-Jan-02 4:59 
Hello all,
Just a little historyof my project. I have started to develop COM component. Now, I evolve to DCOM component -> switch from IUnknow to IDispatch and DLL server to NTService server.

I have many interfaces.
And one give me this error and it's the most important.
Here the IDL def in the Library part:
[
object,
uuid(535765EA-C024-423A-B921-9F77416CF47F),
dual,
helpstring("ISearchMidiScore Interface, the search interface and the most important"),
pointer_default(unique)
]
interface ISearchMidiScore : IDispatch
{
[helpstring("SetCompareClass, allow user to change the comparison method")]
HRESULT SetCompareClass(
[in] CompareClassEnum classType);

[helpstring("SetSettings, allow user to change the number of result returned")]
HRESULT SetSettings(
[in] int maxSearchElement,
[in] float maxScore);

[helpstring("SearchFromText, allow user to search a music from a set of midi notes separate by a coma")]
HRESULT SearchFromText(
[in, string] BSTR text,
[out] IEnumScoreResult** ppenum);

[helpstring("SearchFromAudio, allow user to search a music from a PCM or a WAV buffer")]
HRESULT SearchFromAudio(
[in] BYTE* audioBuffer,
[in] ULONG audioLength,
[out] IEnumScoreResult** ppenum);

[helpstring("SearchFromScore, allow user to search from a previous score convertion")]
HRESULT SearchFromScore(
[in, out] IScoreDesc* score,
[out] IEnumScoreResult** ppenum);
};

[
object,
uuid(54901242-0019-4986-9328-7260EAEF7D9C),
dual,
helpstring("IEnumScoreResult Interface, enum the result set construct by previous call to ISearchMidiScore search methods"),
pointer_default(unique)
]
interface IEnumScoreResult : IDispatch
{
typedef [unique] IEnumScoreResult *LPENUMSCORERESULT;

[id(1)]
HRESULT Next(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)]
IScoreResult **rgelt,
[out] ULONG *pceltFetched);

[id(2)]
HRESULT Skip(
[in] ULONG celt);

[id(3)]
HRESULT Reset();

[id(4)]
HRESULT Clone(
[out] IEnumScoreResult **ppenum);
};

I call the ISearchMidiScore::SearchFromScore(score, enum), it returns a pointer.
When I call IEnumScoreResult::Next, I got the kernel exception.

I have other function working like this 2 - one is calling and give an enumerator pointer - it always work fine.
Before I switch, they work fine too.

Can't see what it is? Do you have any idea? Do you need more info?

Bruno
GeneralRe: (KERNEL32.DLL): 0x000006F4: (no name) Pin
7-Jan-02 0:26
suss7-Jan-02 0:26 
GeneralCOM_INTERFACE_ENTRY brings nothing Pin
2-Jan-02 23:07
suss2-Jan-02 23:07 
GeneralRe: COM_INTERFACE_ENTRY brings nothing Pin
Not Active3-Jan-02 6:39
mentorNot Active3-Jan-02 6:39 
GeneralRe: COM_INTERFACE_ENTRY brings nothing Pin
7-Jan-02 21:09
suss7-Jan-02 21:09 
GeneralDCOM, Events and Performance Pin
Firoz31-Dec-01 18:55
Firoz31-Dec-01 18:55 
GeneralRe: DCOM, Events and Performance Pin
Anand Amirineni15-Mar-02 9:35
Anand Amirineni15-Mar-02 9:35 
GeneralATL ASP Global.asa Pin
jubinishoo27-Dec-01 18:41
jubinishoo27-Dec-01 18:41 
QuestionApartment? Pin
ragamuffin26-Dec-01 19:29
ragamuffin26-Dec-01 19:29 
AnswerRe: Apartment? Pin
geoff3-Jan-02 18:13
geoff3-Jan-02 18:13 
GeneralRe: Apartment? Pin
Not Active4-Jan-02 20:15
mentorNot Active4-Jan-02 20:15 
GeneralRe: Apartment? Pin
geoff5-Jan-02 2:38
geoff5-Jan-02 2:38 
GeneralHelp! How to understanding marshaling! Pin
Kang wenzhen24-Dec-01 22:16
Kang wenzhen24-Dec-01 22:16 
GeneralRe: Help! How to understanding marshaling! Pin
Tim Smith25-Dec-01 2:36
Tim Smith25-Dec-01 2:36 
GeneralProblems with class header of COM object Pin
IGx8922-Dec-01 8:52
IGx8922-Dec-01 8:52 
GeneralRe: Problems with class header of COM object Pin
IGx8922-Dec-01 8:56
IGx8922-Dec-01 8:56 
GeneralRe: Problems with class header of COM object Pin
Michael Dunn22-Dec-01 14:51
sitebuilderMichael Dunn22-Dec-01 14:51 
GeneralRe: Problems with class header of COM object Pin
IGx8922-Dec-01 16:01
IGx8922-Dec-01 16: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.