Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2008, 08:56 PM
jbs jbs is offline
Junior Member
 
Join Date: Dec 2005
Posts: 4
Default swfgen.dll is not registering properly...

Hi all,

I'm having real problems with the registration of the dll file. After installation the SWFgen.dll is added to the machine (searched for the file and it's there) but not registered. I had to register the file manually then it worked. Please advise how I can get the swfgen.dll to register properly (clearly I'm not doing it correctly). I have packed the created .EXE files inside a .MSI file for network installation.

This is the registration code I'm using:

Code:
//Initialize
ActiveXObject.addObjectInfo(getAdditionalFile("SWFGen.dll"),
"SWFKit.ZGen",
  "{323B0545-B170-4AFC-920C-6D8F195364}",
  "{4A48C49F-7F02-4F52-AFC8-05C208456BCA}");

// other code added here

 
        var swfgen = new ActiveXObject("SWFKit.ZGen");
if (zGen == null)
{
//SWFGen has not been registered yet, register it
//extract the dll, the variable swfgen contains the full path name of it
var swfgen = getAdditionalFile("SWFGen.dll");
//copy it into the system folder
var sysfile = Shell.getSpecialFolder("system") + "\\SWFGen.dll";
(new File(swfgen)).copy(sysfile);
//register it
ActiveXObject.register(sysfile);
//create the object again
var zGen = new ActiveXObject("SWFKit.ZGen");
}
// Initialise SWFGen
swfgen.init("my serial to unlock swfgen.dll");
        
// other code for the program added here

return true;
Any idea what I need to do in order for the dll file to register?
Reply With Quote
  #2 (permalink)  
Old 12-01-2008, 08:50 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: swfgen.dll is not registering properly...

Please just add the following code
Code:
	ActiveXObject.addObjectInfo(getAdditionalFile("SWFGen.dll"),
		"SWFKit.ZGen",
  	"{323B0545-B170-4AFC-920C-6D8F8F195364}",
  	"{4A48C49F-7F02-4F52-AFC8-05C208456BCA}");
It's very strange that in your code, the first uuid is wrong, with one "8F" missing.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.