Troubles implementing in Qt

122 views
Skip to first unread message

nexon

unread,
Feb 14, 2011, 9:00:27 PM2/14/11
to WinSparkle
Hi, recently i added Winsparkle to my Qt project.

I added
#include <winsparkle.h>

And in the main.cpp added the following code:

QApplication a(argc, argv);
MainWindow w;
w.show();
win_sparkle_set_appcast_url("URL_TO_MY_APPCAST");
win_sparkle_init();
return a.exec();
}

i really don't know if win_sparkle_set_appcast_url and win_sparkle_int
is in the right place.

And when i try to update, the following error pops up:

http://cl.ly/1W1S0t2A3N2m203G2b1B

I hope you can help me!

Thanks a lot!

Václav Slavík

unread,
Feb 15, 2011, 11:58:43 AM2/15/11
to winsp...@googlegroups.com
Hi,

On Feb 15, 2011, at 3:00, nexon wrote:
> i really don't know if win_sparkle_set_appcast_url and win_sparkle_int
> is in the right place.

Sorry, no idea -- you're the one doing Qt programming.

> And when i try to update, the following error pops up:
>
> http://cl.ly/1W1S0t2A3N2m203G2b1B

Run it under the debugger or run dbgview to see more details.

Regards,
Vaclav

nexon

unread,
Feb 15, 2011, 2:48:14 PM2/15/11
to WinSparkle
Ok, now works fine. Only i need to add this line to my .pro. I hope in
the future can help.

DEFINES += BUILDING_WIN_SPARKLE

thanks.

Václav Slavík

unread,
Feb 19, 2011, 3:34:21 AM2/19/11
to winsp...@googlegroups.com

On Feb 15, 2011, at 20:48, nexon wrote:
> Ok, now works fine. Only i need to add this line to my .pro. I hope in
> the future can help.
>
> DEFINES += BUILDING_WIN_SPARKLE

Defining that when building your app, i.e. when you are *not* building WinSparkle, is a bad idea.

Also, it only affects linking, so I don't see how could it possibly explain any runtime problems like what you described.

Vaclav

nexon

unread,
Feb 19, 2011, 12:13:02 PM2/19/11
to WinSparkle
Yeah, you're right. i really don't know what happened that don't let
me connect via internet. I thought that the DEFINES line can be the
responsible but no.

Thanks!.

Aashit Verma

unread,
Aug 22, 2013, 5:52:24 AM8/22/13
to winsp...@googlegroups.com
Hey my program build and all but i get following error :

WinSparkle : Executable dosen't have the required VERSIONINFO resource: The specified resource type cannot be found in the image file.

I am running in debug mode in qt creator.

Please help. I need the project to fly off urgently.
Reply all
Reply to author
Forward
0 new messages