|
Wt is a C++ library, so you link it in your executable as a DLL. It consists of a convenient set of building blocks (text, buttons, trees, charts, graphics, ...) that you can combine to create a web UI in an object oriented way. You use the building blocks to build a tree which represents your interface (e.g. a Dialog containing a text and two buttons). It works much like traditional C++ GUI toolkits, such as Qt. But instead of rendering on a desktop screen, Wt uses the browser to render. Event handling is transparent: if a user clicks a button in the browser, a function is automatically invoked at the server. The programmer specifies which functions need to be invoked by means of a signal/slot mechanism. From those functions, you can easily interact with your existing application.
If you run a Wt application, it will behave like a web server and listen on a TCP port. When a user surfs to a Wt application, Wt investigates the browser capabilities and renders your widget tree in the most optimal way to your browser (JavaScript, AJAX, browser-specific dialects, ...).
But why don't you take a look at Wt's hello world example?
http://www.webtoolkit.eu/wt/examples/
Or an interactive demonstration of the available widgets:
http://www.webtoolkit.eu/widgets/basics/wpanel
|
|
|
|
|
the standard process is this:
1. form a committee to investigate the migration: is it possible, is it worth the trouble?
2. assign two developers to come up with a prototype. when they deliver an ugly app that does nothing...
3. hire a consultant to tell you that it will cost $X,000,000 and will take 2 years.
4. fire all your developers.
5. hire an outsourcing company who claims they can do it in six months.
6. pout, when they deliver something ugly and broken.
|
|
|
|
|
|
Is it possible to run a macro as a post build step? I've had a good look round but can't see any way to do it...
|
|
|
|
|
Can you write the macro as a .vbs file? If so you should be able to launch a cmd process to run that. Or are you referring to an IDE macro? Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|
|
|
What is it that the macro is supposed to do or accomplish? Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|
|
I was going to save some project specific data at the end of every successful build but I already figured a different way round it thanks.
|
|
|
|
|
Hi everybody,
I am student of Phd and preparing doctorate thesis.
I have this equation y=x-2.438e-4*sqrt((14.17+3163.8*x^(0.655))*Z). how can I solve this equation for three Z values (for example 0.015, 0.025, 0.035).
Thank you.
|
|
|
|
|
What has it to do with this forum?
BTW, what do you want to solve?
I see just a function, namely y(x) there.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Riiiight. And I suppose basic algebra is a post-doctoral topic.
L u n a t i c F r i n g e
|
|
|
|
|
LunaticFringe wrote: And I suppose basic algebra is a post-doctoral topic.
Doctorate of Basket Weaving. You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
L u n a t i c F r i n g e
|
|
|
|
|
Have you tried a calculator? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
astatinn wrote: I am student of Phd...
Obviously not a science or maths PhD though.
I suggest you ask for help in the maths or physics departments, or maybe your supervisor?Days spent at sea are not deducted from one's alloted span - Phoenician proverb
|
|
|
|
|
Given an x and a Z, you want to find the value of y using the following equation:
y=x-2.438e-4*sqrt((14.17+3163.8*x^(0.655))*Z)
This is just a simple expression in C/C++. I don't know where the difficulty lies. Please explain the question more clearly.
|
|
|
|
|
I already have a PhD -- Permanent Head Damage. I feel dizzy now.
I also believe this can be solved by a simple expression.
|
|
|
|
|
Plug in numbers into each variable and see what happens. This may take you O(n^3) amt of time though.
|
|
|
|
|
I have two menu items under the File menu - Call My Dialog & Call MessageBox. Call MessageBox will invoke a message box. I am trying to do the same thing when the user hits Call My Dialog menu item.
void CMainFrame::OnFileCallmessagebox()
{
MessageBox(_T("hello world!!"), _T("Sample message box"));
}
void CMainFrame::OnFileCallmydialog()
{
HWND hwnd = AfxGetMainWnd()->GetSafeHwnd();
::SendMessage(hwnd, WM_COMMAND,
HIBYTE(ID_APP_CALL_MESSAGEBOX),
LOBYTE(ID_APP_CALL_MESSAGEBOX));
}
Whatever I do I keep getting some failure assertion
|
|
|
|
|
deostroll wrote: Whatever I do I keep getting some failure assertion
First thing to do is look at the assertion message and figure out what is going wrong; or post it here so we can help you.
Secondly your ::SendMessage[^] syntax is not correct.
Thirdly, why not just tie both menu items to the OnFileCallmessagebox() function?txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
suppose I had a modal dialog box. I click a button on it, I'd want to call the same routine (i.e. the Call Message Box click event) via SendMessage(). Is this not possible?
I've rewritten and debugged my code...and found out that the values I am sending for wParam and lParam are wrong
this->SendMessage(WM_COMMAND,
HIWORD(ID_APP_CALL_MESSAGEBOX),
LOWORD(ID_APP_CALL_MESSAGEBOX));
what are the correct values?
|
|
|
|
|
deostroll wrote: suppose I had a modal dialog box. I click a button on it, I'd want to call the same routine (i.e. the Call Message Box click event) via SendMessage().
I have no idea why you would want to do this. A modal dialog provides a break in an application where the user is asked for some information, or to make a decision, before returning to the main application. If your dialog needs to call another dialog or (terrible idea) itself, then your design is flawed.
deostroll wrote: what are the correct values(for SendMessage() )?
I cannot be certain, but I suspect it is something along the lines of
this->SendMessage(WM_COMMAND, ID_APP_CALL_MESSAGEBOX, 0L);
I suggest you take a look at the MSDN Documentation[^] for further information.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
What if the dialog was non-modal? Wouldn't this be a valid scenario? Btw how do u do a modeless dialog box?
|
|
|
|
|
deostroll wrote: What if the dialog was non-modal?
The same considerations apply; it's a question of design and usability. If I am running an app on my PC and select a menu item which pops up a dialog box, and then press a button on that dialog which pops another dialog, I tend not to feel too kindly towards the designer. As I said before you need to understand what dialogs are for and use them sparingly. Programs that just throw dialogs and other clutter at users tend to be consigned fairly quickly to the dustbin of history.
deostroll wrote: Btw how do u do a modeless dialog box?
You read the MSDN documentation[^] to start with.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hey, I don't mean to call another dialog from another dialog. I just put a messagebox in one of my menu item's event handler. It is just to test if the code executes...which it apparently does not?
k, on the topic on non-modal dialogs I don't understand the difference between the following 2 snippets:
CMyDialog* dlg = new CMyDialog();
dlg->Create(IDD_MY_DIALOG);
dlg->ShowWindow(SW_SHOW);
CMyDialog dlg = new CMyDialog();
dlg.Create(IDD_MY_DIALOG);
dlg.ShowWindow(SW_SHOW);
Snippet 2 doesn't work! Why is that so?
|
|
|
|