Click here to Skip to main content
15,890,185 members
Home / Discussions / COM
   

COM

 
Questionwhat error occurren in this code? Pin
jackyxinli12-Nov-08 15:43
jackyxinli12-Nov-08 15:43 
AnswerRe: what error occurren in this code? Pin
jackyxinli12-Nov-08 15:49
jackyxinli12-Nov-08 15:49 
QuestionCoCreateInstance Problem Pin
john563212-Nov-08 5:56
john563212-Nov-08 5:56 
AnswerRe: CoCreateInstance Problem Pin
jackyxinli12-Nov-08 17:56
jackyxinli12-Nov-08 17:56 
QuestionCOM(c++) event passing object as parameter c#.net? Pin
taiyang17-Nov-08 22:01
taiyang17-Nov-08 22:01 
AnswerRe: CoCreateInstance Problem Pin
Baltoro13-Nov-08 5:43
Baltoro13-Nov-08 5:43 
GeneralRe: CoCreateInstance Problem Pin
john563213-Nov-08 17:42
john563213-Nov-08 17:42 
QuestionHelp needed [ Problem in IDispatch::GetTypeInfo] Pin
mvkvibin11-Nov-08 19:13
mvkvibin11-Nov-08 19:13 
Hi I am new to COM. I am working on a java application that will make use of COM to get the required interface Information from I2 Analyst Note Book V6. And the application is working fine. Recently we upgraded the I2 V6 to V7 and Modified the Interface as mentioned in I2 V7 support docs. After the upgradtion we are getting problems from COM.

The problem is in IDispatch::GetTypeInfo.Here the function returns S_OK but still the pointer to ITypeInfo is null. In which scenario this will happen. Following is the code snippet which does this.

=================Code Snippet==============
ITypeInfo* pTypeInfo;
UINT pctInfo;
m_hRet = m_pDisp->GetTypeInfoCount(&pctInfo);
if(m_hRet!=S_OK || pctInfo != 1)
{
return false;
}

m_hRet = m_pDisp->GetTypeInfo(0,LOCALE_SYSTEM_DEFAULT,&pTypeInfo);

if(m_hRet!=S_OK || pTypeInfo==NULL)
{
if(pTypeInfo==NULL && m_hRet==S_OK )
MessageBox(NULL, "Error : GetTypeInfo, pTypeInfo is null", "1", MB_OK);
return false;
}
===========================================
After upgrading to I2 V6 to I2 V7. I am getting the error 'Error : GetTypeInfo, pTypeInfo is null' in the MessageBox.

Please help me ,since i am totally stuck at this point.thanks in advance
AnswerRe: Help needed [ Problem in IDispatch::GetTypeInfo] Pin
Vi213-Nov-08 1:38
Vi213-Nov-08 1:38 
GeneralRe: Help needed [ Problem in IDispatch::GetTypeInfo] Pin
mvkvibin13-Nov-08 22:14
mvkvibin13-Nov-08 22:14 
QuestionNeed to have a ClassFactory Pin
ShyamR11-Nov-08 18:44
ShyamR11-Nov-08 18:44 
QuestionReg:Output from Exe Method call Pin
swethasri11-Nov-08 18:13
swethasri11-Nov-08 18:13 
QuestionHow to retrieve document content or whole document on DocumentOpen Event Word Add-in Pin
PatilVijay9-Nov-08 19:49
PatilVijay9-Nov-08 19:49 
QuestionHow do you create and work a proxy used to Marshal an interface? (An IDropTarget to be precise) Pin
Code-o-mat9-Nov-08 11:11
Code-o-mat9-Nov-08 11:11 
QuestionError message "Overlapped I/O operation is in progress" Pin
Member 14340936-Nov-08 2:42
Member 14340936-Nov-08 2:42 
AnswerRe: Error message "Overlapped I/O operation is in progress" Pin
Randor 9-Nov-08 21:48
professional Randor 9-Nov-08 21:48 
QuestionSerial Port Simulation Pin
pierrecor5-Nov-08 21:40
pierrecor5-Nov-08 21:40 
AnswerRe: Serial Port Simulation Pin
Roger Stoltz5-Nov-08 22:05
Roger Stoltz5-Nov-08 22:05 
QuestionOutlook Addin Pin
Member 36453113-Nov-08 6:03
Member 36453113-Nov-08 6:03 
AnswerRe: Outlook Addin Pin
Rajasekharan Vengalil4-Nov-08 10:19
Rajasekharan Vengalil4-Nov-08 10:19 
AnswerRe: Outlook Addin Pin
Randor 5-Nov-08 10:30
professional Randor 5-Nov-08 10:30 
QuestionNot sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Matthew Cash1-Nov-08 11:42
Matthew Cash1-Nov-08 11:42 
AnswerRe: Not sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Rajasekharan Vengalil4-Nov-08 10:15
Rajasekharan Vengalil4-Nov-08 10:15 
GeneralRe: Not sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Matthew Cash4-Nov-08 18:48
Matthew Cash4-Nov-08 18:48 
QuestionCOM/DCOM singleton behavior not working [modified] Pin
ToriHino200830-Oct-08 11:31
ToriHino200830-Oct-08 11:31 

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.