Click here to Skip to main content
15,849,768 members
Home / Discussions / C#
   

C#

 
GeneralHBITMAP problem (interop)... Pin
Anonymous15-Oct-02 6:08
Anonymous15-Oct-02 6:08 
Generalras idle timeout Pin
David Le Bas15-Oct-02 4:09
sussDavid Le Bas15-Oct-02 4:09 
QuestionRichTextBox > HTML? MailFormat.RTF? Pin
rendle15-Oct-02 3:53
rendle15-Oct-02 3:53 
AnswerRe: RichTextBox > HTML? MailFormat.RTF? Pin
Stephane Rodriguez.15-Oct-02 3:59
Stephane Rodriguez.15-Oct-02 3:59 
GeneralProblem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 0:14
GriffonRL15-Oct-02 0:14 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 1:36
Stephane Rodriguez.15-Oct-02 1:36 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 2:01
GriffonRL15-Oct-02 2:01 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 3:58
Stephane Rodriguez.15-Oct-02 3:58 
GriffonRL wrote:
What I can't understand, is why e.pDisp exists if we can't cast it ?

the IE namespace you use once you have imported the IE web control ocx (drag&drop, add reference, ...) is actually the result of an automated type-library import which simply creates a thin wrapper around the idl interfaces. Because the IDispatch *pDisp appears in some members of some of the interfaces, it thus appears in the resulting wrapper.
But as I have said already, this is a case where it's not useful : IDispatch* is seen as a raw untyped object. Furthermore, the namespace already provides interfaces from which you can invoke the methods you would with a C++ ptr on the web control. So, you don't lose power by using C# or other .NET languages.
The thing you lose is that the marshaller (at the heart of all the interop stuff) is not able to comply with all kind of variant subtypes (limitation known by MS people). As long as MS doesn't fix it, whevener we import a type-library, we may or may not for any reason be able to call certain methods depending on the parameter types. That's it. We'll have to live with it. And by the way, the article I have suggested bypasses the standard tlbimp.




She's so dirty, she threw a boomerang and it wouldn't even come back.
GeneralRe: Problem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 5:35
GriffonRL15-Oct-02 5:35 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 5:56
Stephane Rodriguez.15-Oct-02 5:56 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Andrew Connell15-Oct-02 6:57
Andrew Connell15-Oct-02 6:57 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 10:36
GriffonRL15-Oct-02 10:36 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 11:06
Stephane Rodriguez.15-Oct-02 11:06 
GeneralIPC Pin
CSharpDavid14-Oct-02 13:22
CSharpDavid14-Oct-02 13:22 
GeneralRe: IPC Pin
Stephane Rodriguez.15-Oct-02 1:45
Stephane Rodriguez.15-Oct-02 1:45 
GeneralSelf describing functions Pin
IanC14-Oct-02 12:38
IanC14-Oct-02 12:38 
GeneralRe: Self describing functions Pin
Marc Clifton14-Oct-02 13:11
mvaMarc Clifton14-Oct-02 13:11 
GeneralRe: Self describing functions Pin
Anonymous14-Oct-02 23:23
Anonymous14-Oct-02 23:23 
GeneralRe: Self describing functions Pin
Marc Clifton15-Oct-02 2:27
mvaMarc Clifton15-Oct-02 2:27 
QuestionGetting Current Date? Pin
afronaut14-Oct-02 10:28
afronaut14-Oct-02 10:28 
AnswerRe: Getting Current Date? Pin
Stephane Rodriguez.14-Oct-02 10:42
Stephane Rodriguez.14-Oct-02 10:42 
GeneralRe: Getting Current Date? Pin
afronaut14-Oct-02 10:58
afronaut14-Oct-02 10:58 
GeneralRe: Getting Current Date? Pin
leppie14-Oct-02 11:45
leppie14-Oct-02 11:45 
GeneralRe: Getting Current Date? Pin
afronaut14-Oct-02 12:10
afronaut14-Oct-02 12:10 
GeneralRe: Getting Current Date? Pin
Daniel Turini15-Oct-02 3:10
Daniel Turini15-Oct-02 3:10 

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.