Click here to Skip to main content
15,891,745 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataSet View Pin
Luis Alonso Ramos20-May-05 12:50
Luis Alonso Ramos20-May-05 12:50 
GeneralRe: DataSet View Pin
samoore21-May-05 11:21
samoore21-May-05 11:21 
GeneralUser Application folder Pin
JMichael246820-May-05 8:44
JMichael246820-May-05 8:44 
GeneralRe: User Application folder Pin
rudy.net20-May-05 9:00
rudy.net20-May-05 9:00 
GeneralRe: User Application folder Pin
John Fisher20-May-05 9:01
John Fisher20-May-05 9:01 
GeneralRe: User Application folder Pin
JMichael246820-May-05 9:19
JMichael246820-May-05 9:19 
GeneralRe: User Application folder Pin
Rob Graham20-May-05 9:02
Rob Graham20-May-05 9:02 
GeneralCalling C# class library in VC++6.0....... Pin
DasdaDAS20-May-05 7:58
DasdaDAS20-May-05 7:58 
I built a class library in C#. It consists of one public method as shown below.
public int calculate(int x,int y)
{
return x+y;
}
And I built the .tlb file using Regasm.exe for using it in VC++ 6.0.
I created the object for the interface also.
but, I can't call the methods in the class. I instatiated in the the interface as follows.

void CDialogDlg::OnButton4()
{
MYSampleLib::_SampleClassPtr ptr;//(__uuidof(MYSampleLib::_SampleClass));
ptr.CreateInstance(__uuidof(MYSampleLib::_SampleClass));
int i = ptr.calculate(90,80);
}

I got the following error.
error C2039: 'calculate' : is not a member of '_com_ptr_t<class _com_IIID<struct MYSampleLib::_SampleClass,&struct __s_GUID _GUID_3ec86308_ba43_3a5e_936f_5fd96c29c651> >'


what's the Chaos here???????


I'm not sure, this is the correct question in this thread or not ........



Thanks,


Zxczc
GeneralRe: Calling C# class library in VC++6.0....... Pin
John Fisher20-May-05 9:15
John Fisher20-May-05 9:15 
GeneralRe: Calling C# class library in VC++6.0....... Pin
Nick Parker20-May-05 11:01
protectorNick Parker20-May-05 11:01 
QuestionHow do i make a program run at startup Pin
Anthony Mushrow20-May-05 7:33
professionalAnthony Mushrow20-May-05 7:33 
AnswerRe: How do i make a program run at startup Pin
Anonymous20-May-05 7:58
Anonymous20-May-05 7:58 
GeneralRe: How do i make a program run at startup Pin
Anthony Mushrow20-May-05 8:07
professionalAnthony Mushrow20-May-05 8:07 
GeneralRe: How do i make a program run at startup Pin
John Fisher20-May-05 9:23
John Fisher20-May-05 9:23 
AnswerRe: How do i make a program run at startup Pin
Anonymous20-May-05 12:01
Anonymous20-May-05 12:01 
AnswerRe: How do i make a program run at startup Pin
malharone20-May-05 12:05
malharone20-May-05 12:05 
GeneralSockets problem Pin
AnonymousTwo20-May-05 7:29
AnonymousTwo20-May-05 7:29 
GeneralRe: Sockets problem Pin
John Fisher20-May-05 9:11
John Fisher20-May-05 9:11 
GeneralRe: Sockets problem Pin
AnonymousTwo20-May-05 10:11
AnonymousTwo20-May-05 10:11 
GeneralRe: Sockets problem Pin
John Fisher20-May-05 10:55
John Fisher20-May-05 10:55 
GeneralRe: Sockets problem Pin
AnonymousTwo20-May-05 11:24
AnonymousTwo20-May-05 11:24 
GeneralRe: Sockets problem Pin
John Fisher20-May-05 19:19
John Fisher20-May-05 19:19 
Generalprob with activex Pin
amalatsliit20-May-05 7:10
amalatsliit20-May-05 7:10 
GeneralDataBinding Format/Parse Event, can't raise the Parse Event Pin
Kaneda7920-May-05 5:48
Kaneda7920-May-05 5:48 
QuestionHow to register Hotkey for TextBox? Pin
oohungoo20-May-05 5:47
oohungoo20-May-05 5:47 

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.