|
Hi,
Previously, while running in debug, i was able to edit my code and select "Apply code changes" from the context menu in VC++.
For some reason this ability has stopped and all i seem to get is the option "Apply code Changes" greyed out!
Can explain this?
|
|
|
|
|
Check Project->Settings->C/C++->General->Debug info. It should be set to "Program database for edit and continue".
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
That option was set, Any other ideas?
|
|
|
|
|
Hello,
I have developed an application in Visual C++.
It is working on my machine but not on other machines. I am missing the DLL: MFC42D.DLL
So probably the Microsoft Foundation Classes
are not available on that machine. A find for that particular file showed it was not available.
On a laptop where I tried the program the DLL was
available but a particular entry not. The DLL version was older that the one on my machine.
My questions are:
Where can I get a full installation pack for all
MFC files that I am using (but didn't know
about it)?
Is it somehow possible not to use MFC for GUI components?
Regards,
J hn
|
|
|
|
|
MFC42D.DLL is the debug version of MFC42.DLL. MFC42.DLL should be on Windows machines. Compile and link your application for release first.
Ralph Krausse
www.consiliumsoft.com
Home of FastRun, the only application launcher that integrates itself into the taskbar!
|
|
|
|
|
Yes you can build a fully featured application without the need of MFC. There are plenty of articles here on using WTL.
You can use Installshield Express that comes with Visual Studio to build a simple install for the dll you are building. The MFC redistributables can be included in that.
|
|
|
|
|
As I see it, you have four choices for making GUI app's.
MFC
WTL
ATL (yes, it's possible)
Plain Win32 API (Personal favorite )
If you have problems with MFC dll's, just use InstallShield to make the installer as Mark suggested, or link MFC static, then your app don't need the dll's...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Thanks for the reactions. You where a great help for me to finish my project.
Thanks
John
J HN
|
|
|
|
|
The real answer to your question:
1) You have compiled your program in such a way that it needs the MFC DLL file.
2) You have also apparently shipped the *debug* version of your application. The very *first* thing you should do is recompile for the release version, like so:
A) Click "Build", and then "Set Active Configuration..." in the VC6 menu.
B) In the dialog box that pops up, select the configuration that ends with
the words "Win32 Release".
3) You can re-compile your app so that it DOES NOT need MFC42.DLL by changing a compiler setting. Your app will be a little larger as a result, but you won't have to worry about providing the DLL with your app.
A) Click "Project" and then "Settings..." in the VC6 menu.
B) In the dialog box that pops up, you'll see a combo box on the "General"
tab that will probably say something like "Use MFC in a Shared DLL".
Change this to the "Use MFC in a Static Library".
|
|
|
|
|
ive got 2 dialogs:
CTestDlg an CAboutDlg...
i would like to click on a test Dialog button and then change the "aboutdlg" titlebar caption...
i tried this but it didnt works:
void CTestDlg::OnButton1()
{
CAboutDlg AboutDlg;
AboutDlg.DoModal();
AboutDlg.SetWindowText("test!!!!!!");
}
anyone can help?
|
|
|
|
|
You need to do the SetWindowText() in the OnInitDialog() handler in the about class. The way you are doing it, the dialog has already been displayed and dismissed...
BOOL CAboutDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetWindowText("test!!!!!!");
return TRUE;
}
|
|
|
|
|
I know what you mean but it does not do what i would like because i have 2 windows: one with buttons and another with the title that change depending on the button the mouse is over...
so i cannot put it in OnInit because i would have to init the dialog each time i do a mouseover...
|
|
|
|
|
I am not understand what you want to do...
|
|
|
|
|
Its very simple:
i have two windows (dialog):
one with 3 buttons, for example: "apple", "banana" and "grapes"...
when i click on the "banana" button, the titlebar of the OTHER window changes for "banana"...understand?
|
|
|
|
|
Then you need to make the dialogs modeless. Then you could do what you wanted to do in the first place.
|
|
|
|
|
ok... how do i do that?
|
|
|
|
|
If you still want your dialogs to be modal (ie all input is directed to the About Box), you can add a member variable (and accessors if you want to be purist about it) in the AboutBox class, set that from your other dialog, THEN call DoModal():
class CMyAboutDlg
{
public:
SetTitle(LPCTSTR apszTitle)
{
m_cstrTitle = apszTitle;
}
protected:
CString m_cstrTitle;
}
Then, in your CMyAboutDlg::OnInitDialog:
SetWindowText(m_cstrTitle);
So, when you call your dialog:
CMyAboutDlg vdlgAbout;
if (type == 1)
vdlgAbout.SetTitle("apple");
else if (type == 2)
vdlgAbout.SetTitle("banana");
else
vdlgAbout.SetTitle("grapes");
vdlgAbout.DoModal();
Hope this helps.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
Your Question is Very Clever....
You need to find the handle of the other Dialog and change the text of that Dialog using SetWindowText whit that Handle
Cheers!!!
Carlos Antollini.
|
|
|
|
|
I need some help and where better to go than to the the discussion boards! I need to create a very sime version of FrontPage or something similar. I need create some sort of editor that will allow me to place text with attributes (only bold and underlined right now) and images (bitmaps that I have defined). I would think I need a rich text edit control. True? If so, what are some good ones. I would be willing to buy a 3rd party if I don't have to give my first born for the control. If this is not they way to go or someone else has a better idea, please let me know. After the user enters the information, I will take that and write out my own version of HTML. I want to use VC++.
TIA!!!
Ralph Krausse
www.consiliumsoft.com
Home of FastRun, the only application launcher that integrates itself into the taskbar!
|
|
|
|
|
Hi All.
I'm an italian programmer, so excuse me if I can't speak correctly the english language.
My problem is following : For an application I'm developing with MSVC++ 5.0 and Borland C++ Builder (for the interface), I need to remove the Start Bar (who's that having the 'Start' Button) substituting it with another implemented by me.
How Can I do with?
Thanx All...
Alex
|
|
|
|
|
What do you mean by removing it? Disabling it? Hiding it? You are going to replace the start button with your own?
|
|
|
|
|
Well... I'm developing an app. in which an user couldn't (shouldn't...) run any program disk-resident. So I've solved this sayin' "I modify the register to remove the icons on the desktop... Now I must only find a method to remove the Start Bar also"...
So, Anyway I do that, is OK )
Thanx
Alex
|
|
|
|
|
Using Spy++ you can identify the window name and class, so you can use FindWindow() to get a HWND and hide that window. But replacing it, is another thing.
The "Start Bar" should be an AppBar (see "Application Desktop Toolbars" on MSDN), handled by the Shell with special functions and messages.
Hope this helps,
Paolo
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
|
Hi Paolo!
(Are you italian as me?)
Thanx for your help! May you post me here the MSDN address on which they talk about App desktop toolbars? I can't find it...
Alex
|
|
|
|
|
You want to replace windows explorer with your own shell? Easy.
On Win9x look in win.ini for
shell=explorer.exe
On WinNT look in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
there is a value called shell
Just replace these with the filename of your replacement shell
|
|
|
|