Thanks once again...Your responses have made it really easy for me to debug
wt apps. I have been doing some programming with MFC internet classes for a
while, but those hide all the details under the hood; so I never knew
anything. As of now, I am going to install a newer version of wt i.e., 2.99.
When I downloaded the earlier version, 2.99 was in its beta, I guess. Now
that u have assured me, I will download it.
Thanks,
Bhushan
On Tue, Oct 13, 2009 at 5:48 PM, Wim Dumon <[email protected]> wrote:
> >>
> >> First of all, which version of Wt are you using,
> >> simplechat + filetostring questions make me think you're using an older
> >> version of wt?
> >
> > Yeah you were right...it is version 2.2.4 ...version 2.99 is the latest
> > isn't it?
> >
>
> Yes, and it is preferred above the 2.2 series
>
> >>
> >> A few of your problems are due to missing Ext,
> >> ./examples/HINTS.txt explains what you need to do.
> >
> > I did find HINTS.txt file in BUILD / examples and it says that if the
> > resource files are not found I might get a 404. But I got it only for one
> > example, bobsmith.
> >
>
> The bobsmith problem is a separate problem... you have to surf to the
> deploy path (/ if not specified, but may be /hello, /bobsmith, or
> whatever you have set the startup option to) to get to your
> application.
> The other 404s (file not found) are the ones mentioned in the output
> of your application; you can't see them as 404 in the browser but
> cause your application to not run correctly or to be displayed
> incorrectly. Some of the requests that you see scroll there have a 404
> status code, but you should not see any (except for the favicon). You
> will notice that applications try to access css files, icons, and
> files from a directory called 'resources'. Make sure that you follow
> the recommendations in the Wt on Windows wiki page that I have
> referred to previously:
> """
> Examples that need extra files to run, should be executed from their
> source directory in order to find their dependency files (icons, css
> files, etc. Watch for 404 errors in Wt's output). To do so, set the
> 'Working directory' for the example to wt-2.x.x/examples/ExampleName.
> Some examples (e.g. the wt home page) need the 'resources' directory
> to work correctly. Copy the wt-2.x.x/resources to the example's source
> directory to solve this problem. Other examples (such as the Charts
> example) may require the installation of ExtJs. See the Wt reference
> manual for more information on how to obtain and install ExtJs.
> """
>
> >>
> >> The git view example is probably missing git,
> >> can you verify this?
> >
> > Yeah ...I checked it up. Is it the GIT source control we are dealing
> with?
> > If yes, then I do not have that...I will get it soon
> >
> I am not even sure that this example runs on windows. I think it is
> built with newer versions of Wt on Windows.
>
> >>
> >> Dragdrop, are you starting the example from the src (where the icons are
> >> located),
> >> this would also explain the ???xyz??? errors (here because the resource
> >> file cannot be found).
> >
> > I do not know what you are saying. Is it the image folder u are talking
> > about? I only got the cannot refresh sign for icons container. Does that
> > mean that I need some third party javascript library from
> > http://yogurtearl.com as HINTS.txt says? Or do I have to copy over the
> image
> > folder to the folder where solution is?
>
> No. Wt uses a system of xml translation bundles for i18n. The file
> contains a mapping from strings in the source code (look for
> tr("blabla")) to their translation in whatever language. If a
> translation is not found in the xml file, the string will be displayed
> as ??blabla??. If you see this in the examples, it means that wt did
> not succeed in loading the resources xml file. As said before, make
> sure that you start Wt with the 'current working directory' set to the
> example's source directory (e.g. c:/mydir/wt/examples/hello) and copy
> the wt/resources directory there too, plus additional 3rd party
> libraries such as ExtJs and TinyMCE if required.
>
> > Well, one more thing I wanted to ask in this regards is, I want to keep
> the
> > framework / library related files separate from the example projects and
> the
> > ones I create. Now, what CMake does is, it puts all the content in one
> > directory BUILD. I do not exactly remember the steps of how I installed
> Wt,
> > but since I am successful in building Wt examples, I would say I was
> right.
> > The BUILD directory contains all the directories like doc, examples, src,
> > etc. and it is located in D: \ My Documents \ My Projects \ BUILD...I
> myself
> > have no clue as to what I have done....
>
> In your MSVC project, right-click on the INSTALL target and select
> 'build'. This installs all required Wt header files and libraries in
> c:/Program Files/WT.
>
> > So, what I want to know is, if I have to separate the Wt lib specific
> files
> > from the project files and keep them in the installation folder, what
> shall
> > I do? Let us say, I want to link dynamically in future, what shall I do?
> I
> > am thinking of going for Wt 2.99 and redo all the process...what do u
> think
> > of that? What are the benefits I get by the way of Wt 2.99 and what are
> req?
> > The Boost version I am currently using is 1.40 Does it include Asio,
> > Spirit2.1/2.2, etc.
>
> Absoluttely go for Wt 2.99. Your boost version is fine.
>
> > I am more keen to build Wt samples without the slightest of error...so
> here
> > are a couple of other important Qs apart from the ones above:
> > - What about the functionality supporting the dragging of the popup
> dialogs
> > by clicking the title bar and holding it down to drag?
>
> Is implemented in the newest versions of Wt.
>
> > - Why do I keep getting runtime error dialogs; mostly owing to
> javascripts
> > for some of the samples mentioned above?
> >
>
> See above: fixing your 'current work direcectory' and copying over the
> required resources will solve these issues.
>
> Regars,
> Wim
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest