Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: Winforms text box saving and loading Pin
CWIZO13-Apr-06 10:55
CWIZO13-Apr-06 10:55 
GeneralRe: Winforms text box saving and loading Pin
jeweladdict13-Apr-06 11:02
jeweladdict13-Apr-06 11:02 
QuestionEvent Log Viewer without EventLog Pin
AhClem13-Apr-06 9:07
AhClem13-Apr-06 9:07 
QuestionCOM compatibility Pin
Waldermort13-Apr-06 7:54
Waldermort13-Apr-06 7:54 
AnswerRe: COM compatibility Pin
Jakob Farian Krarup13-Apr-06 8:02
Jakob Farian Krarup13-Apr-06 8:02 
GeneralRe: COM compatibility Pin
Waldermort13-Apr-06 8:15
Waldermort13-Apr-06 8:15 
GeneralRe: COM compatibility Pin
Jakob Farian Krarup13-Apr-06 12:25
Jakob Farian Krarup13-Apr-06 12:25 
GeneralRe: COM compatibility Pin
Waldermort13-Apr-06 18:05
Waldermort13-Apr-06 18:05 
Hi, thanks for your help with this matter. I would post more code but to be honest, there is far too much of it to post.
I now understand the meaning of interface thanks to your explanation.

The way this code differs from examples is that there is more than one class. ExelObject is a base class for many others (font, worksheet, cell..). I'm not sure how this works in C# but but in C++ creating an object of a derived class would also create a base class. The other problem is that most of the classes have no default constructor (i.e. constructors take arguments) which cannot be used in com.

So far I have tried creating a default constructor and renaming the previous to be a function. This is allowing me to create an instance of ExcelObject from C++, but I am now unable reference the renamed function. From the producer:
com visibility is not set on any type

Isn't it enough to declare a function as public?

It looks like I am going to have to make many changes to the sources of this project in order for it to be com compatible. I'm starting to think it would be easier to port the functions I need to C++.
GeneralRe: COM compatibility Pin
Jakob Farian Krarup13-Apr-06 18:27
Jakob Farian Krarup13-Apr-06 18:27 
QuestionApplication wide objects Pin
martin_hughes13-Apr-06 7:28
martin_hughes13-Apr-06 7:28 
AnswerRe: Application wide objects Pin
August Sodora III13-Apr-06 10:03
August Sodora III13-Apr-06 10:03 
AnswerRe: Application wide objects Pin
Graham Nimbley13-Apr-06 11:17
Graham Nimbley13-Apr-06 11:17 
Questionhow to get path of application Pin
Shaurya Rastogi13-Apr-06 7:19
Shaurya Rastogi13-Apr-06 7:19 
AnswerRe: how to get path of application Pin
martin_hughes13-Apr-06 7:45
martin_hughes13-Apr-06 7:45 
AnswerRe: how to get path of application Pin
InActive13-Apr-06 7:47
InActive13-Apr-06 7:47 
Questionhow to call doPostback Pin
papa198013-Apr-06 5:40
papa198013-Apr-06 5:40 
AnswerRe: how to call doPostback Pin
CWIZO13-Apr-06 10:50
CWIZO13-Apr-06 10:50 
QuestionDebugging controls used in Designer mode Pin
gsquared13-Apr-06 5:40
gsquared13-Apr-06 5:40 
AnswerRe: Debugging controls used in Designer mode Pin
alexey N13-Apr-06 19:23
alexey N13-Apr-06 19:23 
QuestionAccessing form fields from another class Pin
adol_w13-Apr-06 4:36
adol_w13-Apr-06 4:36 
AnswerRe: Accessing form fields from another class Pin
Judah Gabriel Himango13-Apr-06 5:00
sponsorJudah Gabriel Himango13-Apr-06 5:00 
AnswerRe: Accessing form fields from another class Pin
Stefan Troschuetz13-Apr-06 5:04
Stefan Troschuetz13-Apr-06 5:04 
AnswerRe: Accessing form fields from another class Pin
Alvaro Mendez13-Apr-06 5:19
Alvaro Mendez13-Apr-06 5:19 
AnswerRe: Accessing form fields from another class Pin
Colin Angus Mackay13-Apr-06 6:24
Colin Angus Mackay13-Apr-06 6:24 
GeneralRe: Accessing form fields from another class Pin
adol_w13-Apr-06 6:48
adol_w13-Apr-06 6:48 

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.