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

C#

 
GeneralFrames in axWebBrowser control Pin
Andrlage9-Sep-03 1:52
Andrlage9-Sep-03 1:52 
GeneralRe: Frames in axWebBrowser control Pin
Jagadeesh VN9-Sep-03 3:38
Jagadeesh VN9-Sep-03 3:38 
GeneralRe: Frames in axWebBrowser control Pin
Andrlage9-Sep-03 11:54
Andrlage9-Sep-03 11:54 
GeneralRe: Frames in axWebBrowser control Pin
Arun Chembilath30-Apr-11 7:10
Arun Chembilath30-Apr-11 7:10 
GeneralDLL import and parameters Pin
gmar9-Sep-03 0:56
gmar9-Sep-03 0:56 
GeneralRe: DLL import and parameters Pin
Jagadeesh VN9-Sep-03 3:49
Jagadeesh VN9-Sep-03 3:49 
GeneralDragDrop registration failed Pin
Nick Seng8-Sep-03 18:24
Nick Seng8-Sep-03 18:24 
Generalusing activex/com listeners (callbacks) Pin
olivier.fillon@csiro.au8-Sep-03 15:47
olivier.fillon@csiro.au8-Sep-03 15:47 
Hi,
I am new in c# [coming from the java world] and am hitting a problem.
how to you pass callbacks to the com world. I have seen plenty of example using dll (for example using windows api from c#, etc) but not using com

I use an active x control into my UI.
everything goes well, included in project, displaying ok, etc...
now, this ocx graphic component allows me to register some callback so that my gui can be aware of some components events
for example, it implements:

public abstract new void addBrowserListener ( System.Object pListener )

and defines the interface

X3DBrowserListener

if I do
ocxComponent.addBrowserListener(new X3DBrowserListener());compiles and runs ok but not really useful Sigh | :sigh:

the X3DBrowserListener interface defines:
public abstract new void browserChanged ( ANIMALib.X3DBrowserEvent @event )

Sadly I got a run time:

System.InvalidCastException: No such interface supported
at xxx.X3DBrowser.addBrowserListener(Object pListener)
at xxx..ctor() in b.addBrowserListener((X3DBrowserListener)bl);
if calling
ocxComponent.addBrowserListener(new MyX3DBrowserListener());

if I define my own class as
<br />
using System;<br />
<br />
namespace xxxxxxx<br />
{<br />
	/// <summary><br />
	/// Summary description for 	/// </summary><br />
	/// <br />
	[CLSCompliantAttribute(false)]<br />
	public class MyX3DBrowserListener:X3DBrowserListener<br />
           {<br />
           public void browserChanged(ANIMALib.X3DBrowserEvent ev){<br />
               //whatever I need to do<br />
		System.Console.Out.WriteLine("I am here");<br />
		}<br />
           }<br />
	<br />
	}<br />
}

help very welcome!!! or any pointer to com/c# callbacks codes or samples
Cheers


Olivier down under
GeneralRe: I have problem to drop image files to PictureBox control... Pin
Nick Parker8-Sep-03 15:38
protectorNick Parker8-Sep-03 15:38 
GeneralRe: I have problem to drop image files to PictureBox control... Pin
Donald_a9-Sep-03 3:36
Donald_a9-Sep-03 3:36 
GeneralStatus Bar with Custom Panels Pin
Clarke768-Sep-03 14:12
Clarke768-Sep-03 14:12 
GeneralGet window content as bitmap Pin
sumeat8-Sep-03 14:10
sumeat8-Sep-03 14:10 
GeneralRe: Get window content as bitmap Pin
azusakt8-Sep-03 15:36
azusakt8-Sep-03 15:36 
Generaltcpclient stream read Pin
mikemilano8-Sep-03 13:12
mikemilano8-Sep-03 13:12 
GeneralRe: tcpclient stream read Pin
leppie8-Sep-03 16:05
leppie8-Sep-03 16:05 
GeneralRe: tcpclient stream read Pin
leppie8-Sep-03 16:05
leppie8-Sep-03 16:05 
GeneralRe: tcpclient stream read Pin
Nick Parker8-Sep-03 16:25
protectorNick Parker8-Sep-03 16:25 
GeneralRe: tcpclient stream read Pin
TimK8-Sep-03 16:19
TimK8-Sep-03 16:19 
GeneralExtand and access the internat Microsoft Office object structure Pin
gicio8-Sep-03 9:47
gicio8-Sep-03 9:47 
GeneralJust a detailed question Pin
jphuphilly8-Sep-03 9:28
jphuphilly8-Sep-03 9:28 
GeneralRe: Just a detailed question Pin
leppie8-Sep-03 10:50
leppie8-Sep-03 10:50 
Questionwhat is the difference between [,] &amp; [][]? Pin
yyf8-Sep-03 8:32
yyf8-Sep-03 8:32 
AnswerRe: what is the difference between [,] &amp; [][]? Pin
David Stone8-Sep-03 9:06
sitebuilderDavid Stone8-Sep-03 9:06 
GeneralRe: what is the difference between [,] &amp; [][]? Pin
Anonymous12-Sep-03 6:09
Anonymous12-Sep-03 6:09 
QuestionHow to realloc? Pin
yyf8-Sep-03 8:30
yyf8-Sep-03 8:30 

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.