Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2008, 08:01 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default AutoUpdate error *URGENT!!*

Im in hurry! my deadline on first release of the application is about 5 hours from now (5 pm CET) and my client will be waiting.
Since, he is the owner of the company, he is not available as often as i would need.
Thats, the reason why i need autoUpdate so i dont have to contact him everytime i need him to update the application.


When i run my application i get this error in flash

Syntax error: dllimport autoupdate stdcall void AutoUpdate_UICheck(char*, char*);

Im really not getting it, why isnt it working ?

My code
Code:
var autoupdate = getAdditionalFile("AutoUpdate.dll");
dllimport autoupdate stdcall void AutoUpdate_Check(char*, char*, Boolean);
dllimport autoupdate stdcall void AutoUpdate_UICheck(char*, char*);
ActiveXObject.register(autoupdate);
var ax = new ActiveXObject("AutoUpdate.SWFKitAutoUpdate");
ax.updateINI = "http://mysite.com/updata/update.ini";
ax.appName = "fGuru";
ax.check(true);
ive included
import SWFKit.*
import SWFkit.application.*
import SWFkit.AX.. something :S
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 12:30 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: AutoUpdate error *URGENT!!*

its 1000+ topics in support forum and not even 1 gives a good explonation why i get this error :S
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 01:31 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: AutoUpdate error *URGENT!!*

So, problem allmost solved.
Didnt realize tha above code needs to be in initialize in swfkit

autoupdate works... but when i starts to download it fails... i get error 404
then, i press twice backwards... and re-do update process and then i get worng parameter (handle)...

why ? isnt 404 (File doesnt exist or something lika that ???)
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 05:31 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: AutoUpdate error *URGENT!!*

Please check your ini file to see whether the remote files are in where they should be. The URLs of the items to be downloaded are in the ini file.
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 02:19 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: AutoUpdate error *URGENT!!*

yes, both files are where they should be:
wwwroot/updata

and in ini file i have
LINK:"http://mysite/updata/update.ini/data.0"
LINK:"http://mysite/updata/update.ini/data.1"

another question is, in help files as well in manual you guys talk about silent checking. i think this dosen work here for me... i always get a wizard
ive tested so many times but without any luck... here is my code. would appreciate if you post the real and clean code of what i really need for auto update.

(im using // symbols at the moment cause i belive i have a bug in my code)

Code:
//var autoupdate = getAdditionalFile("AutoUpdate.dll");
//dllimport autoupdate stdcall void AutoUpdate_Check(char*,char*, Boolean);
//dllimport autoupdate stdcall void AutoUpdate_UICheck(char*,char*);
//ActiveXObject.register(autoupdate);
//var ax = new ActiveXObject("AutoUpdate.SWFKitAutoUpdate");
//ax.updateINI = "http://mysite/updata/update.ini";
//ax.appName = "App";
//ax.check(true);

//AutoUpdate_Check("http://mysite/updata/update.ini","My Application", true);
What exactly do i need in this core for my autoupdate function ? im really after update code that updates my application sliently, by that i mean, no popups and wizards. or is it impossible.

and my last question is... i use menu on systray icon... and i would love to add manual update check in systry menu, since the menu itself is created in AS2, how and what do i need to add for update ?

SWFKIT thanx again for your answer!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 02:38 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: AutoUpdate error *URGENT!!*

i think i fixed update, it is checking the remote files and downloading as well.... but i still need silent mode. especially because my remote webserver is not always running and when its shutdown my app tells it couldnt establish any connection with the server... i dont want that popup message.

possible to remove it in silent mode ?

Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 09:35 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: AutoUpdate error *URGENT!!*

Glad to know that you've worked it out. If your web server is down, the autoupdate.dll should be unable to find the ini file and it will stop and say nothing.
Reply With Quote
  #8 (permalink)  
Old 01-20-2008, 01:01 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: AutoUpdate error *URGENT!!*

SWFKIT...
Thank you for your reply!

Yes exactly, it behaves this way. It is just beautiful!!!
No other 3art application can give you this result as SWFKIT does! ( have also tested it with mProjector and no result... big money into nothing
thak god i get more payd than i should




ABSOLUTELY WORTH INVESTING YOUR $399 !!!!!!!!!!
What ever you do... BUY SWFKIT!!!!

(NO OTHER APPLICATION CAN PROVIDE YOU ONLINE SUPPORT LIKE SWFKIT!!!!! Consider that!)
Reply With Quote
  #9 (permalink)  
Old 01-20-2008, 01:08 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: AutoUpdate error *URGENT!!*

I read that the code that shoul go into initialize script in swfkit...
should use Global in AS2.0


like, if i use in initialization getAppDir();
then i AS2 it has to be Global.getAppDir();

but how about this code, that should entirely be in initialize ???

Code:
//Initialize
getAdditionalFile();

var autoupdate = getAdditionalFile("AutoUpdate.dll");
dllimport autoupdate stdcall void AutoUpdate_Check(char*,char*, Boolean);
dllimport autoupdate stdcall void AutoUpdate_UICheck(char*,char*);
ActiveXObject.register(autoupdate);
var ax = new ActiveXObject("AutoUpdate.SWFKitAutoUpdate");
ax.updateINI = "http://mySite/hpm/update.ini";
ax.appName = "HPM";
ax.check(true);
return true;
I just hate to have code in other files than where everything else i programmed!
So i need everything inside my AS 2.0 files!

Than you!
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 04:52 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.