Click here to Skip to main content
16,005,141 members
Home / Discussions / C#
   

C#

 
GeneralRe: How 2 Run exe from Network ? Pin
Dave Kreskowiak14-Nov-07 10:37
mveDave Kreskowiak14-Nov-07 10:37 
GeneralRe: How 2 Run exe from Network ? Pin
hdv21214-Nov-07 10:26
hdv21214-Nov-07 10:26 
GeneralRe: How 2 Run exe from Network ? Pin
Dave Kreskowiak14-Nov-07 10:31
mveDave Kreskowiak14-Nov-07 10:31 
GeneralRe: How 2 Run exe from Network ? Pin
led mike14-Nov-07 10:40
led mike14-Nov-07 10:40 
GeneralRe: How 2 Run exe from Network ? Pin
Dave Kreskowiak14-Nov-07 10:56
mveDave Kreskowiak14-Nov-07 10:56 
GeneralRe: How 2 Run exe from Network ? Pin
led mike14-Nov-07 11:07
led mike14-Nov-07 11:07 
QuestionProblems at creating a WordDocument (Unwanted formation) Pin
Dirk Mahlcke14-Nov-07 7:22
Dirk Mahlcke14-Nov-07 7:22 
QuestionHow to paint UserControl or Form directly on host HDC ? Pin
gordon2414-Nov-07 6:08
gordon2414-Nov-07 6:08 
Well, after having several troubles getting a C# app working out of a
Firefox plug-in ( see here[^] ), i finally managed to connect my
C# code, compiled as .dll to a C++ Firefox plugin .dll

Right now, i'm able to fire my C# app out of the browser window, calling my
classes within the FF plugin dll. [ It'll open up a separate form. ]

What lacks now is to have my app being painted DIRECTLY onto the plugin space,
the space reserved for the plugin in the website displaying it, that is.

The plugin gives some handles for that:
NPBool nsPluginInstance::init(NPWindow* aWindow)<br />
{<br />
  if(aWindow == NULL)<br />
    return FALSE;<br />
<br />
  mhWnd = (HWND)aWindow->window;<br />
  if(mhWnd == NULL)<br />
    return FALSE;<br />
<br />
  // subclass window so we can intercept window messages and<br />
  // do our drawing to it<br />
  lpOldProc = SubclassWindow(mhWnd, (WNDPROC)PluginWinProc);<br />
<br />
  // associate window with our nsPluginInstance object so we can access <br />
  // it in the window procedure<br />
  SetWindowLong(mhWnd, GWL_USERDATA, (LONG)this);<br />
<br />
(...)<br />


Question now is:
- I do have my app functionality sitting on a UserComponent class, also could
pin it onto some form.
- How to paint that form [ UserComponent ] INTO the plugin space ?
- Also, as it isn't possible to create global instances of managed ( C# )
classes in unmanaged ( C++ ) context, how can i have my app running
simultaneously to the plugin ? [ I wondered, if it would be possible and
appropriate to run the C# in an own thread, then grabbing graphics
whenever needed and displaying / painting it in the plugin space ... ]

Hope you can figure out what i'm trying to do.

Any help is highly appreciated.
AnswerRe: How to paint UserControl or Form directly on host HDC ? Pin
Skippums14-Nov-07 11:58
Skippums14-Nov-07 11:58 
Questionhow to read from idx file Pin
SABhatti14-Nov-07 5:32
SABhatti14-Nov-07 5:32 
AnswerRe: how to read from idx file Pin
led mike14-Nov-07 7:54
led mike14-Nov-07 7:54 
GeneralRe: how to read from idx file Pin
SABhatti14-Nov-07 8:23
SABhatti14-Nov-07 8:23 
GeneralRe: how to read from idx file Pin
led mike14-Nov-07 8:36
led mike14-Nov-07 8:36 
GeneralRe: how to read from idx file Pin
SABhatti14-Nov-07 8:53
SABhatti14-Nov-07 8:53 
GeneralRe: how to read from idx file Pin
led mike14-Nov-07 10:37
led mike14-Nov-07 10:37 
GeneralRe: how to read from idx file Pin
Dave Kreskowiak14-Nov-07 10:58
mveDave Kreskowiak14-Nov-07 10:58 
GeneralRe: how to read from idx file Pin
SABhatti14-Nov-07 11:12
SABhatti14-Nov-07 11:12 
GeneralRe: how to read from idx file Pin
SABhatti14-Nov-07 11:11
SABhatti14-Nov-07 11:11 
QuestionWord Object Model Pin
MarkMokris14-Nov-07 5:23
MarkMokris14-Nov-07 5:23 
AnswerRe: Word Object Model Pin
Slacker00714-Nov-07 5:45
professionalSlacker00714-Nov-07 5:45 
GeneralRe: Word Object Model Pin
Giorgi Dalakishvili14-Nov-07 8:39
mentorGiorgi Dalakishvili14-Nov-07 8:39 
Questiondatagridview - realtime changes Pin
arkiboys14-Nov-07 5:17
arkiboys14-Nov-07 5:17 
AnswerRe: datagridview - realtime changes Pin
il_masacratore14-Nov-07 6:55
il_masacratore14-Nov-07 6:55 
AnswerRe: datagridview - realtime changes Pin
jchalfant14-Nov-07 7:04
jchalfant14-Nov-07 7:04 
Questionopen a save as dialog box Pin
caradri14-Nov-07 5:05
caradri14-Nov-07 5:05 

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.