Click here to Skip to main content
15,922,574 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to make excel compatibile in different machine? Pin
Giorgi Dalakishvili9-Oct-08 5:42
mentorGiorgi Dalakishvili9-Oct-08 5:42 
QuestionHow to work with Shortcut & Keyboard Pin
Laji599-Oct-08 4:35
Laji599-Oct-08 4:35 
QuestionRe: How to work with Shortcut & Keyboard Pin
led mike9-Oct-08 4:40
led mike9-Oct-08 4:40 
AnswerRe: How to work with Shortcut & Keyboard Pin
Pedram Behroozi9-Oct-08 4:43
Pedram Behroozi9-Oct-08 4:43 
GeneralRe: How to work with Shortcut & Keyboard Pin
Laji599-Oct-08 5:38
Laji599-Oct-08 5:38 
GeneralRe: How to work with Shortcut & Keyboard Pin
DaveyM699-Oct-08 8:53
professionalDaveyM699-Oct-08 8:53 
GeneralRe: How to work with Shortcut & Keyboard Pin
Pedram Behroozi9-Oct-08 22:38
Pedram Behroozi9-Oct-08 22:38 
QuestionCOM Interface Question Pin
MSBassSinger9-Oct-08 4:30
professionalMSBassSinger9-Oct-08 4:30 
I have a VB6 DLL that has a class, ICommonEnv, that is used as an interface definition for another VB6 class, clsCommonEnv, that implements ICommonEnv. When I build the VB6 DLL, in the VS2005 Object viewer I see clsCommonEnv, _clsCommonEnv, __clsCommonEnv, clsCommonEnvClass, ICommonEnv,
_ICommonEnv, and __ICommonEnv. I understand that the "_" is VB6's class interface and "__" is VB6's events inerface.

I want to use an instance of clsCommonEnv in my C# app, and, of course, I referenced the COM DLL and added the "using" statement in my .cs file.

I have not found any documentation that tells me when and where to use which of the interfaces and classes. For example, I also pass this object to C# and other VB6 objects that expect the ICommonEnv interface. I have tried this code by trial and error, but I would like to find some documentation that really explains what to use and why.

For example...
//C# Usage
private _ICommonEnv m_oCommonEnvCOM;

m_oCommonEnvCOM = new clsCommonEnvClass();

// Later I pass this to a VB6 object method that expects the ICommonEnv interface
// VB6 method signature:
// Public Function Init(ByRef oCommonEnv As ICommonEnv) As Long

Int32 lRet = someVB6COMObject.Init(ref m_oCommonEnvCOM)


Thanks in advance for those who can help point me to useful documentation.
AnswerRe: COM Interface Question Pin
led mike9-Oct-08 4:38
led mike9-Oct-08 4:38 
QuestionRe: VB6 COM Interface Question Pin
MSBassSinger9-Oct-08 6:17
professionalMSBassSinger9-Oct-08 6:17 
RantRe: VB6 COM Interface Question Pin
Paul Conrad9-Oct-08 7:08
professionalPaul Conrad9-Oct-08 7:08 
AnswerRe: VB6 COM Interface Question Pin
MSBassSinger9-Oct-08 7:54
professionalMSBassSinger9-Oct-08 7:54 
QuestionAll these event handlers Pin
Dewald9-Oct-08 3:56
Dewald9-Oct-08 3:56 
AnswerRe: All these event handlers Pin
DaveyM699-Oct-08 4:43
professionalDaveyM699-Oct-08 4:43 
GeneralRe: All these event handlers Pin
Dewald9-Oct-08 5:11
Dewald9-Oct-08 5:11 
AnswerRe: All these event handlers Pin
led mike9-Oct-08 4:47
led mike9-Oct-08 4:47 
AnswerRe: All these event handlers Pin
S. Senthil Kumar9-Oct-08 5:00
S. Senthil Kumar9-Oct-08 5:00 
GeneralRe: All these event handlers Pin
Dewald9-Oct-08 5:20
Dewald9-Oct-08 5:20 
GeneralRe: All these event handlers Pin
S. Senthil Kumar9-Oct-08 5:34
S. Senthil Kumar9-Oct-08 5:34 
GeneralRe: All these event handlers Pin
Dewald9-Oct-08 23:02
Dewald9-Oct-08 23:02 
QuestionIncluding c# v2.0 library in a c# v1.1 library. [modified] Pin
Spoon659-Oct-08 2:40
Spoon659-Oct-08 2:40 
AnswerRe: Including c# v2.0 library in a c# v1.3 library. Pin
Pete O'Hanlon9-Oct-08 3:00
mvePete O'Hanlon9-Oct-08 3:00 
GeneralRe: Including c# v2.0 library in a c# v1.1 library. Pin
Spoon659-Oct-08 3:08
Spoon659-Oct-08 3:08 
AnswerRe: Including c# v2.0 library in a c# v1.1 library. Pin
Guffa9-Oct-08 3:12
Guffa9-Oct-08 3:12 
GeneralRe: Including c# v2.0 library in a c# v1.1 library. Pin
Spoon659-Oct-08 3:52
Spoon659-Oct-08 3:52 

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.