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

C#

 
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 
AnswerRe: date format converter? Pin
Heath Stewart3-Feb-04 20:07
protectorHeath Stewart3-Feb-04 20:07 
GeneralHide Start Button Pin
johnstacey3-Feb-04 11:53
johnstacey3-Feb-04 11:53 
GeneralRe: Hide Start Button Pin
Heath Stewart3-Feb-04 19:58
protectorHeath Stewart3-Feb-04 19:58 
GeneralRe: Hide Start Button Pin
johnstacey4-Feb-04 4:59
johnstacey4-Feb-04 4:59 
GeneralRe: Hide Start Button Pin
Heath Stewart4-Feb-04 5:04
protectorHeath Stewart4-Feb-04 5:04 
Questionstatus bar from child forms? Pin
visiontec3-Feb-04 11:44
visiontec3-Feb-04 11:44 
AnswerRe: status bar from child forms? Pin
Heath Stewart3-Feb-04 20:02
protectorHeath Stewart3-Feb-04 20:02 
GeneralC# Pipes Pin
Anonymous3-Feb-04 9:42
Anonymous3-Feb-04 9:42 
GeneralRe: C# Pipes Pin
occcy4-Feb-04 0:18
occcy4-Feb-04 0:18 
GeneralRe: C# Pipes Pin
ronboy4-Feb-04 3:32
ronboy4-Feb-04 3:32 
GeneralRe: C# Pipes Pin
ronboy5-Feb-04 2:27
ronboy5-Feb-04 2:27 
GeneralEncrypting data not files... Pin
Manster3-Feb-04 6:07
Manster3-Feb-04 6:07 

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.