Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
AnswerRe: Record types in C# ? Pin
Heath Stewart3-Feb-04 20:32
protectorHeath Stewart3-Feb-04 20:32 
GeneralRe: Record types in C# ? Pin
Andres Coder3-Feb-04 20:48
Andres Coder3-Feb-04 20:48 
Generalkernel process on c# Pin
laurentz_wei3-Feb-04 18:36
laurentz_wei3-Feb-04 18:36 
GeneralRe: kernel process on c# Pin
Heath Stewart3-Feb-04 20:21
protectorHeath Stewart3-Feb-04 20:21 
GeneralRe: kernel process on c# Pin
Mazdak3-Feb-04 20:24
Mazdak3-Feb-04 20:24 
GeneralOn Virtual And Override Pin
GetOn&GetGoing3-Feb-04 17:13
GetOn&GetGoing3-Feb-04 17:13 
GeneralRe: On Virtual And Override Pin
TigerNinja_3-Feb-04 17:38
TigerNinja_3-Feb-04 17:38 
GeneralRe: On Virtual And Override Pin
Heath Stewart3-Feb-04 20:18
protectorHeath Stewart3-Feb-04 20:18 
QuestionScrollBar bug? Pin
Meysam Mahfouzi3-Feb-04 16:58
Meysam Mahfouzi3-Feb-04 16:58 
Generalsome clarification on GDI+ vs. DIrectDraw Pin
SIDDHARTH_JAIN3-Feb-04 16:11
SIDDHARTH_JAIN3-Feb-04 16:11 
GeneralRe: some clarification on GDI+ vs. DIrectDraw Pin
Christian Graus3-Feb-04 17:44
protectorChristian Graus3-Feb-04 17:44 
GeneralRe: some clarification on GDI+ vs. DIrectDraw Pin
Michael Blome3-Feb-04 18:55
Michael Blome3-Feb-04 18:55 
GeneralRe: some clarification on GDI+ vs. DIrectDraw Pin
SIDDHARTH_JAIN4-Feb-04 11:36
SIDDHARTH_JAIN4-Feb-04 11:36 
GeneralPrepend to a file in C# Pin
pankajdaga3-Feb-04 13:27
pankajdaga3-Feb-04 13:27 
GeneralRe: Prepend to a file in C# Pin
John Kuhn3-Feb-04 17:29
John Kuhn3-Feb-04 17:29 
Generalsend an image in picturebox Pin
abido3-Feb-04 12:34
abido3-Feb-04 12:34 
GeneralRe: send an image in picturebox Pin
Heath Stewart3-Feb-04 20:13
protectorHeath Stewart3-Feb-04 20:13 
GeneralRe: send an image in picturebox Pin
John Kuhn3-Feb-04 21:02
John Kuhn3-Feb-04 21:02 
QuestionHow to add a new method that has both external and internal name into a ActiveX? Pin
lchuang3-Feb-04 12:28
susslchuang3-Feb-04 12:28 
AnswerRe: How to add a new method that has both external and internal name into a ActiveX? Pin
Heath Stewart3-Feb-04 20:11
protectorHeath Stewart3-Feb-04 20:11 
First of all, this is the C# forum, not the C++ forum. These are two completely different languages.

If you want to call the method both externally and internally, you should declare the method as public (which any COM method must be anyway). If you're using Managed C++, declaring a public method is not merely enough. You should define a class interface (.NET can automatically generate one for you, but this is not recommended for many reasons), attribute your interface and class with different GuidAttributes, and several more attributes. You can call this public method internally with no problems.

For more information about exposing .NET Controls as COM components, see http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp[^]. There's also a pretty good article here on CodeProject, but it's in C# (though if you truly understand the .NET Framework and not just a language, translating this should be no problem): http://www.codeproject.com/dotnet/nettocom.asp[^].

 

Microsoft MVP, Visual C#
My Articles
QuestionFlash swfs in c#? Pin
visiontec3-Feb-04 12:03
visiontec3-Feb-04 12:03 
AnswerRe: Flash swfs in c#? Pin
Meysam Mahfouzi3-Feb-04 17:07
Meysam Mahfouzi3-Feb-04 17:07 
GeneralRe: Flash swfs in c#? Pin
krishna_goluguri8-Jul-10 0:16
krishna_goluguri8-Jul-10 0:16 
Questiondate format converter? Pin
visiontec3-Feb-04 11:58
visiontec3-Feb-04 11:58 
AnswerRe: date format converter? Pin
Dmitriy Kostovetskiy3-Feb-04 15:59
Dmitriy Kostovetskiy3-Feb-04 15:59 

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.