qt-interest@trolltech.com
[Top] [All Lists]

Re: default browser

Subject: Re: default browser
From: "Frank L. Parks"
Date: Thu, 04 Aug 2005 18:57:30 -0500
Steve,

I went to the thread that you pointed to and copied it into my code. It appears that I may have missed something related to the includes. "It needs some Windows specific #includes wrapped in #ifdef Q_OS_WIN32 too."

I added this:

#if defined(Q_OS_WIN32)
#include <windows.h>
#endif

But then I got the following messages when I attempted to compile the code:

C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinCrypt.h(3658) : error C2143: syntax error : missing ';' before '->' C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinCrypt.h(3658) : error C2238: unexpected token(s) preceding ';' C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinCrypt.h(3707) : error C2143: syntax error : missing ';' before '->' C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinCrypt.h(3707) : error C2238: unexpected token(s) preceding ';'

Can you please point me in the right direction?

Thank you in advance,

Frank

Steve Atkins wrote:

On Mon, Jun 20, 2005 at 07:46:59PM +0200, Tomasz Grobelny wrote:

Is it possible to open URL in a default browser in a platform independent way?

Not without a little effort - there's no built-in Qt support for doing so.

Take a look at this thread
http://lists.trolltech.com/qt-interest/2005-03/thread01357-0.html for the
code I use to open a browser.

Cheers,
 Steve




<Prev in Thread] Current Thread [Next in Thread>