|
If your application is already coded in MFC, too bad, you will need to restructurize everything, extract all GUI stuff from the core code.
The 2 models are quite different, and the UI toolkit work differently; not just the UI, but also the file system.
Depending on the size of the application, it can be a huge task; once you start doing it, you can't really stop, it's like a one way tunnel, you cannot back away without loosing a ton of money and time.
I used to work for a company that had an MFC application (graphical application, lots of UI )that needed to run on Mac OS X, and we figured it would take about 1 year with 6/7 programmers to do it, part of it was that we decided to use Apple's Objective-C language instead of straight C++ for the UI (Cocoa).
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
with wxWindows this is not entirely true. I have ported several of my MFC apps to wxWindows with realitive ease. I would say at least a little over half of my code was as simple as changing "C"xxx to "wx"xxx. Most of the wxWindows library is structured after MFC; so most of the syntax is the same. The only problem you have, is if your code contains lot of OS specefic code or API calls.
-----
IMHO: C# a poor attempt at bringing C++ to the VB masses
-----
|
|
|
|
|
I had tried the WxWindows.
But I have this little problem here.
LINK : fatal error LNK1104: cannot open file "wxxrcd.lib"
This was shown during compilation. I do not know where to get this lib. Other png.lib and etc are ok except this one.
Any idea?
|
|
|
|
|
I think i found it already.
thank you. quite cool.
|
|
|
|
|
I don't know if you have solved this problem, but make sure that you compile all of the wxWindows library.
I have never had that problem.
-----
IMHO: C# a poor attempt at bringing C++ to the VB masses
-----
|
|
|
|
|
i have information that i would like to email from my program (just a basic console app) is this possible? if so what do i need to do, all suggestions are welcome, thanks a lot
|
|
|
|
|
there are a couple of articles here on how to do that - search for "smtp". there's also a public-domain library called blat.
Software is everything. It also sucks. Charles Fishman [^]
Awasu 1.0.2 (beta)[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
is it possible to embed CSplitterWnd object in the CView class as opposed to embedding it (as commonly) in CMDIChildWnd class? if so, what are the steps to do it? Thanks.
krle
|
|
|
|
|
It is possible. Make the splitter window a member of the view, and in the OnCreate() message handler, create the splitter via CreateStatic() or CreateDynamic(), and then add the child views.
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
It goes the other way, the splitter window contains a view in each pane.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
Hi all
void Dump( ON_TextLog& ) const;
const int sss;
what is the difference that a "Const" is at front and rare?
Can someone give me a example?
Thanks
|
|
|
|
|
When used in a class, a const at the end of a method says that the method will not modify the object. This is important for a few reasons.
1. The compiler can verify that the method doesn't actually modify the object.
2. The compiler can verify that the method doesn't call another method that might modify the object.
3. If you have a "const" pointer to an object, you can only invoke const methods on that object. (oh, mutate I think too).
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
hi,
Here is my code under development.
------------------
HWND hToolTip;
TOOLINFO ti;
char buf[1024]
// hListView is a HWND of my listview
hToolTip = (HWND)SendMessage(hListView, LVM_GETTOOLTIPS, NULL, NULL);
// initialize the ti parameters
ti.cbSize = sizeof(TOOLINFO);
ti.hwnd = hToolTip;
ti.lpszText = buf;
ti.uId = (UINT)0;
// test 1
SendMessage(hToolTip, TTM_SETDELAYTIME, (WPARAM)TTDT_INITIAL, (LPARAM)(INT)MAKELONG(0,0));
// test 2
SendMessage(hToolTip, TTM_SETTIPBKCOLOR, (WPARAM)0x0000ffff, NULL);
// test 3
SendMessage(hToolTip, TTM_GETTEXT, NULL, (LPARAM)&ti);
AfxMessageBox(ti.lpszText);
------------------
In my code, the test 1 and 2 work correctly.
I can change the delaytime and the background color of the tooltip text.
I think that the hListView and hToolTip were well defined.
But I don't know why test 3 doesn't work. The contents of ti.lpszText is null even
when the tooltip text is not null.
Actually, I don't know how to set the ti parameters to retrieve the tooltip text
of N-th item of a ListView.
Any comments about this problem will be appreciated.
Thanks.
|
|
|
|
|
Hi, there.
What kind of compression libraries are there?
Can you draw the outline, relationship between them or history.
For example, gzip and zlib, gzip and pkzip, and so on.
It's me, nine. nine for you.
|
|
|
|
|
I will take a stab at this.
ARC -> PKZIP
PKZIP -> ZLIB
PKZIP -> WINZIP
ZLIB -> GZIP
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hi, is there a way to set a status bar invisible? Or a way to make a status bar that is not in the OnCreate() function?
Also, what's the easiest way to grey out a menu option? The menu is already set on the CFrameWnd. Thanks.
Daniel R
|
|
|
|
|
I haven' tried this, but can you hide the status bar by simplying changing the style bits - i.e. m_wndStatusBar.ModifyStyle( WS_VISIBLE, 0 );
Menu commands can have update handlers which allow them to be enabled/disabled. The easiest way to add them is to use Class Wizard to select a command id, and then add a handler for COMMAND_UPDATE_UI. These handler methods take a single parameter which is a CCmdUI object.
You can do something like this:
void CMainFrame::OnMyCommandUpdateUI(CCmdUI* pCmdUI)
{
pCmdUI->Enable( FALSE );
}
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
Thanks so much! I have gotten these things to work. One more question, once I have hidden the status bar, how can I show it again? Thanks.
Daniel R
|
|
|
|
|
To hide:
m_wndStatusBar.ShowWindow(SW_HIDE);
CFrameWnd::RecalcLayout();
To show:
m_wndStatusBar.ShowWindow(SW_SHOW);
CFrameWnd::RecalcLayout();
Art
|
|
|
|
|
I'm working on a kind of off-the-wall idea with a guy to setup a homegrown game finder for my software (http://www.settlers3d.net). What I'd like to do is be able to get to an .ASP page, which will have only text on it, from within the program and then parse the text.
Basically, the way we're doing this is that the host player's version of the game will hit a separate.ASP page that will add the game to an Access database on the site. Then the client's game will hit the .ASP page I'm mentioning, the page will query the database and return all open games in text format so that it can be read by the client game and displayed to select from.
Does anyone have any ideas where to start looking on how to parse an .ASP file from within the program?
|
|
|
|
|
If you are using MFC, then you could use the CHttpConnection and CHttpFile classes to retrieve the results of the ASP page. In terms of parsing it, you are then just parsing a text stream, so i can't really help without knowing what it looks like, but it would probably be easier if the ASP page generated an XML document - you could then use an existing parser rather than having to write your own, making the whole process fairly trivial.
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
Great, thanks. That's exactly what I was looking for. I should have dug around in MFC a little more before posting.
|
|
|
|
|
Is it possible to adjust the height of an edit box so that it is only as tall as the text?
It's taking up valuable real-estate!
|
|
|
|
|
One solution is SetWindowPos(). Use GetTextExtent() to get the text height and width.
Kuphryn
|
|
|
|
|
I'm not really sure how to tackle this problem with this functions.
Can someone walk me through this?
Thanks,
Jim
Background: Dialog app using Edit box controls to display dynamic text.
|
|
|
|