User Tag List

Results 1 to 2 of 2

Thread: .net Script + Question about Embedding ThirdParty objects

  1. #1
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy .net Script + Question about Embedding ThirdParty objects

    Ok, so. Today I'm was coming with some challenging ideas.

    Before make the test within MMF2 (via .net Script object), I make the code in Visual C# 2010 and it worked flawlessly !

    So..
    Therefore, in MMF2, my Code just don't work.
    And I know (perhaps I know) where is it buggy.

    It is in the Call of XULRunner engine.

    Let's try, look at my code in .net Script object (C# mode) (his name in MMF2 is: ".netExtensionFramework", without the quotes marks):

    I have also included a new reference (to : "C:\Composants CSharp\geckofx-11.dll") in reference tab -- Ah.. And it is the correct path, don't worry.

    Code:
       using System;
       using System.IO;
       using System.Collections.Generic;
       using System.ComponentModel;
       using System.Data;
       using System.Drawing;
       using System.Windows.Forms;
       using System.Text;
      // Gecko assembly (API GeckoFX 2) (Bitbucket Gecko)
       using Gecko;
    
    
       public class CSharpOverride
       {
          public static void InitializeGecko2(string ApplicationPath)
            {
              Gecko.Xpcom.Initialize(ApplicationPath + "_res\\BitbucketGeckoFX2\\xulrunner\\");
            }
       }
    So, the VOID method called InitializeGecko2 is formed by an ApplicationPath string variable, passed by MMF2 at the CallEvent below:

    At Frame start:
    + .netExtensionFramework : Call function: "CSharpOverride.InitializeGecko2" with parameters(Apppath$)

    It simply no work, it is simply NOT called.



    So, now, If I try this code:

    Code:
       using System;
       using System.IO;
       using System.Collections.Generic;
       using System.ComponentModel;
       using System.Data;
       using System.Drawing;
       using System.Windows.Forms;
       using System.Text;
      // Gecko assembly (API GeckoFX 2) (Bitbucket Gecko)
       using Gecko;
    
    
       public class CSharpOverride
       {
          public static void InitializeGecko2(string ApplicationPath)
            {
              MessageBox.Show("func_test: " + ApplicationPath + "_res\\BitbucketGeckoFX2\\xulrunner\\");
            }
       }
    And then call by Event (at frame start):

    At Frame start:
    + .netExtensionFramework : Call function: "CSharpOverride.InitializeGecko2" with parameters(Apppath$)

    It is well called, and display to me a message box, which show: "func_test: C:\SpecialAppDevelopper\Multimedia Fusion 2\PersonalProjects\xultest\_res\BitbucketGeckoFX2\ xulrunner"
    (Hum.. It seems this forum add a space between '\' and 'xulrunner', keep in mind there is no space in my code, even echoed.)

    (Which is the folder where xulrunner is located).





    So now, In my Visual C# 2010 test-project I made the thing working as it (reference to geckofx-11.dll added aswell):

    Code:
      using System;
      using System.IO;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Data;
      using System.Drawing;
      using System.Linq;
      using System.Text;
      using System.Windows.Forms;
      using Gecko;
    
      namespace xultest
      {
         public partial class Form1 : Form
          {
             public Form1()
             {
                 InitializeComponent();
                 MessageBox.Show("Browser Launched");
                 string appPath = Path.GetDirectoryName(Application.ExecutablePath);
                 Gecko.Xpcom.Initialize(appPath + "\\xulrunner\\");
             }
    
          }
      }
    And then run the solution, I can see my XulRunner object loaded.


    Now my ideas:

    Quote Originally Posted by My ideas
    Since the XulRunner engine must be initialized in a Form method...
    How I can make the same initialization in that such location under .net Script object in MMF2 ?

    This is certainly why it's no work, then How I can initialize the engine in such location...?

    It's impossible? Even by simulate ???


    For your information: Gecko is a wrapper of XulRunner which is an Engine of the Firefox browser.

    Since I haven't MMF2Dev (and I don't want it, I just want make the things working, and if it is impossible, just gave up), I cannot have any other solution to get a Decent webbrowser embedded in MMF2's Applications.


    So... Can you help (or trying) to help me? Thanks...

    (I can submit the Visual C# 2010 full project if requested, It will be uploaded at rghost).

  2. #2
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well no answers ?

    Then I think I can imagine just give up?

    If someone can help me with my ideas, please come on and answer me!
    Thanks.

Similar Threads

  1. MMF2 versus LUA Script Speed Question
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th July 2011, 01:49 AM
  2. embedding on facebook
    By life2searching in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 27th October 2010, 10:43 AM
  3. Embedding a SWF
    By Digitalic in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 26th August 2010, 09:00 PM
  4. Please Help with embedding
    By Game_Master in forum Vitalize
    Replies: 6
    Last Post: 1st January 2008, 11:38 AM
  5. Embedding an mp3?
    By UltimateWalrus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st July 2006, 02:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •