Note that there are some explanatory texts on larger screens.

plurals
  1. POC# application works on Win 7 But not on XP
    primarykey
    data
    text
    <p>I have built an application in C# and also built a setup for this application. The application on setup works on all Windows 7 machines but doesnt seem to work on any XP machine.</p> <p>I shall briefly describe what my application does.</p> <p>The application plays a swf file on startup. The swf file has 3 buttons with separate functions. Basically on clicking these buttons it has to show certain images which are loaded from sqlite.</p> <p>The problem is that the application loads the swf correctly, the swf plays completely till the end, then at the end where i have placed 3 buttons the click event does not respond to any button. <strong>i am guessing</strong> this is a problem with FSCommand and the dlls not getting registered correctly</p> <p>The dlls that i have added to my setup are</p> <ul> <li>AxInterop.ShockwaveFlashObjects.dll</li> <li>Interop.shockwaveFlashObjects.dll</li> <li>System.Data.SQLite.dll</li> <li>KP-ImageViewerV2.dll (from codeproject.com)</li> </ul> <p>Also the files present are my manifest file and .config file</p> <p>I tried registering my Dlls manually using RegSrv32 C:\Interop.ShockwaveFlashObject.dll and also C:\AxInterop.ShockwaveFlashObject.dll The error i get is </p> <pre><code>The (DllPath and Name Here) was loaded but DllRegisterServer entry point was not found. </code></pre> <p>The code that i am using to display my swf file is as below</p> <pre><code>private void axShockwaveFlash1_FSCommand(object sender,AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent e) { string btn = e.command.ToString(); if (btn == "play") { try { frmMain Main = new frmMain(); Main.Show(); this.Hide(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } } if (btn == "syllabus") { SQLiteConnectionStringBuilder strbldr = new SQLiteConnectionStringBuilder(); strbldr.DataSource = @Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\TVC E-Excust Customs\\E-ExcustCustoms.s3db"; SQLiteConnection con = new SQLiteConnection(strbldr.ConnectionString); con.Open(); Syllabus_usageInformation syl = new Syllabus_usageInformation(this); SQLiteCommand cmd = new SQLiteCommand("SELECT ImageFiles FROM misc WHERE Name='Syllabus new'", con); SQLiteDataReader reader = cmd.ExecuteReader(); byte[] imageBytes = null; while (reader.Read()) { imageBytes = (System.Byte[])reader["ImageFiles"]; } MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length); con.Close(); syl.kpImageViewer1.OpenButton = false; syl.kpImageViewer1.Image = (Bitmap)Image.FromStream(ms,true); syl.kpImageViewer1.Zoom = 85; syl.Show(); this.Hide(); } if (btn == "usageInformation") { SQLiteConnectionStringBuilder strbldr = new SQLiteConnectionStringBuilder(); strbldr.DataSource = @Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\TVC E-Excust Customs\\E-ExcustCustoms.s3db"; SQLiteConnection con = new SQLiteConnection(strbldr.ConnectionString); con.Open(); Syllabus_usageInformation syl = new Syllabus_usageInformation(this); SQLiteCommand cmd = new SQLiteCommand("SELECT ImageFiles FROM misc WHERE Name='UsageInformation'", con); SQLiteDataReader reader = cmd.ExecuteReader(); byte[] imageBytes = null; while (reader.Read()) { imageBytes = (System.Byte[])reader["ImageFiles"]; } MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length); con.Close(); syl.kpImageViewer1.OpenButton = false; syl.kpImageViewer1.Image = (Bitmap)Image.FromStream(ms, true); syl.kpImageViewer1.Zoom = 82; syl.Show(); this.Hide(); } } </code></pre> <p>My swf file has three buttons as mentioned above. those buttons are in a movie clip i shall paste the AS code as well Here is what happens in one of the buttons. The remaining 2 are same as this one with just the values changed. I am pretty new to flash but could this problem be because of the AS version used / or the minimum version of flash being required to run this swf. Just a mention again the video plays but the buttons are non responsive on XP but works on 7?</p> <pre><code>on (rollOver) { if (_root.link != page) { this.gotoAndPlay("s1"); } } on (releaseOutside, rollOut) { if (_root.link != page) { this.gotoAndPlay("s2"); } } on (press) { fscommand("syllabus","syll"); } </code></pre> <p>If some one needs more explanation or more code or just the entire project let me know will send the project. I am out of solutions here so any help would be highly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload