Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding controls to an invisible control Pin
cignox118-Sep-07 20:37
cignox118-Sep-07 20:37 
GeneralRe: adding controls to an invisible control Pin
Big Daddy Farang19-Sep-07 7:28
Big Daddy Farang19-Sep-07 7:28 
QuestionDatabase problem Pin
Nishad8517-Sep-07 20:45
Nishad8517-Sep-07 20:45 
AnswerRe: Database problem Pin
Paul Conrad23-Sep-07 6:44
professionalPaul Conrad23-Sep-07 6:44 
QuestionRichTextBox Pin
mihksoft17-Sep-07 20:22
mihksoft17-Sep-07 20:22 
AnswerRe: RichTextBox Pin
wienzzz17-Sep-07 22:27
wienzzz17-Sep-07 22:27 
QuestionHow Yahoo messenger photo sharing works Pin
Lilupa17-Sep-07 20:20
Lilupa17-Sep-07 20:20 
QuestionGetting a variant containing safe array of Double Values from MFC ActiveX in C#? Pin
ss43117-Sep-07 20:11
ss43117-Sep-07 20:11 
Hi All,

I have a MFC ActiveX control which has a method which returns a variant which
contains a safe array of double values .

void Calculate(double value,VARIANT *Result);

"Result" variable is of "Out" type.
When i'm trying to access this function from C# i'm by passing variable of type "Object" i'm getting RunTime Exception as follows

"An unhandled exception of ype 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))"

Please Anyone help me to solve this problem
I can access this from VB 6 without any issues.


Thanks in Advance

AnswerRe: Getting a variant containing safe array of Double Values from MFC ActiveX in C#? Pin
Nissim Salomon18-Sep-07 1:40
Nissim Salomon18-Sep-07 1:40 
GeneralRe: Getting a variant containing safe array of Double Values from MFC ActiveX in C#? Pin
ss43118-Sep-07 19:30
ss43118-Sep-07 19:30 
GeneralRe: Getting a variant containing safe array of Double Values from MFC ActiveX in C#? Pin
Nissim Salomon20-Sep-07 13:54
Nissim Salomon20-Sep-07 13:54 
GeneralRe: Getting a variant containing safe array of Double Values from MFC ActiveX in C#? Pin
venkyhyd5-Oct-08 20:14
venkyhyd5-Oct-08 20:14 
QuestionWhere can call reports in layers "tier" Pin
Rami Said Abd Alhalim17-Sep-07 19:57
Rami Said Abd Alhalim17-Sep-07 19:57 
Questioncheck to see if a specified file exist in a specified directory Pin
pavya_Cool17-Sep-07 19:19
pavya_Cool17-Sep-07 19:19 
AnswerRe: check to see if a specified file exist in a specified directory Pin
Kuldeep Antil17-Sep-07 19:51
Kuldeep Antil17-Sep-07 19:51 
GeneralRe: check to see if a specified file exist in a specified directory Pin
pavya_Cool17-Sep-07 19:54
pavya_Cool17-Sep-07 19:54 
AnswerRe: check to see if a specified file exist in a specified directory Pin
Nissim Salomon17-Sep-07 20:18
Nissim Salomon17-Sep-07 20:18 
GeneralRe: check to see if a specified file exist in a specified directory Pin
pavya_Cool17-Sep-07 20:21
pavya_Cool17-Sep-07 20:21 
AnswerRe: check to see if a specified file exist in a specified directory Pin
ramdil20-Sep-07 1:10
ramdil20-Sep-07 1:10 
QuestionSQL Joins Pin
iet200017-Sep-07 19:09
iet200017-Sep-07 19:09 
AnswerRe: SQL Joins Pin
Rami Said Abd Alhalim17-Sep-07 19:50
Rami Said Abd Alhalim17-Sep-07 19:50 
GeneralRe: SQL Joins Pin
iet200017-Sep-07 20:33
iet200017-Sep-07 20:33 
QuestionVirtual Function Pin
.NET- India 17-Sep-07 18:57
.NET- India 17-Sep-07 18:57 
AnswerRe: Virtual Function Pin
Nouman Bhatti17-Sep-07 18:59
Nouman Bhatti17-Sep-07 18:59 
GeneralRe: Virtual Function Pin
.NET- India 17-Sep-07 19:02
.NET- India 17-Sep-07 19:02 

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.