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

C#

 
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 
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 
Hi nissims

Thanks for your reply,
Below is the IDL for my MFC ActiveX Control


library MyActiveXLib
{
importlib(STDOLE_TLB);

// Primary dispatch interface for CMyActiveXCtrl

[ uuid(9117C567-1EAD-48B3-BA9E-C4D44852D181),
helpstring("Dispatch interface for MyActiveX Control")]
dispinterface _DMyActiveX
{
properties:

methods:

[id(1), helpstring("method AddDataPoint")] void AddDataPoint(LONG lngIdx, DOUBLE dblXVal, DOUBLE dblYVal);
[id(2), helpstring("method AddDataPoints")] void AddDataPoints( LONG lngNoOfPoints, VARIANT varXVals, VARIANT varYVals);

[id(3), helpstring("method GetData")] LONG Calculate( DOUBLE dblXVal, VARIANT* varResult);

};

// Event dispatch interface for CMyActiveXCtrl

[ uuid(07A82910-34BC-43C2-ADAE-A462286D4E10),
helpstring("Event interface for MyActiveX Control") ]

dispinterface _DMyActiveXEvents
{
properties:
// Event interface has no properties

methods:

};

// Class information for CMyActiveXCtrl

[ uuid(E98E4ED3-C038-4705-8EAB-43AD8A1B75AB),
helpstring("MyActiveX Control"), control ]

coclass MyActiveX
{
[default] dispinterface _DMyActiveX;
[default, source] dispinterface _DMyActiveXEvents;
};
};
"varResult" variable of "Calculate" method will return the SafeArray of Double values.
Please suggest me the solution to solve this problem

Thanks again
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 
GeneralRe: Virtual Function Pin
lmoelleb17-Sep-07 20:38
lmoelleb17-Sep-07 20:38 
AnswerRe: Virtual Function Pin
Scott Dorman20-Sep-07 5:10
professionalScott Dorman20-Sep-07 5:10 

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.