|
Didn't read the question very carefully - The name of the app is in the resource string table - look there for a string with lots of \n's in it and change that whereever you see the old name. To change the exe, go into the Project Settings for the compiler and change the output file name for Debug and Link. Make sure that it is selected for both Debug and Release versions.
|
|
|
|
|
To change the name of the generated .exe goto Project > Settings > Link, and change the name in the Output file name edit box. I believe the string table can be used to change the internal name of the application so that it compiles a different app title (but if wanted to do this in code you can use CDocument SetTitle).
|
|
|
|
|
Hi,
I wanted to change the VC++ generated small MFC icon on the top left hand corner of my application. I changed the icon in IDR_MAINFRAME, but that only changed the icon in the About Box. Please tell me how to change that Icon?
|
|
|
|
|
When you open the icon in the resource editor, click on the "Device" combo box. Select the "Small (16x16)" option and modify that.
Regards,
Alvaro
Hey! It compiles! Ship it.
|
|
|
|
|
|
Hi
I've Installed Platform SDK (Nov 00) in order to use some new win abilities in win 2k, like transparent windows and etc.
I Installed the SDK, and added it's directories to the 'direcories' tab in the options dlg of VC6. After that I still can't use the new functions (like SetLayeredWindowAttributes())... what can be the reason?
I'm using VC 6 and Win XP.
thanks.
|
|
|
|
|
What error message are you getting?
|
|
|
|
|
define _WIN32_WINNT as a value bigger or equal than 0x0500!
read definition of SetLayeredWindowAttributes in WinUser.h!
Don't try it, just do it!
|
|
|
|
|
|
In my SDI application, I have 2 tree controls in a formview, which can be selected by tab control. On tabchange(), I select the root of the tree in which I switched. But, in that case whole tree becomes grayed. I can click on the grayed tree to see the items.
Following is the code, Please Help!!
if (m_TabCtrl.GetCurSel( ) ==1 )
{
m_TreeCtrl2.SelectItem (m_TreeCtrl2.GetRootItem());
}
if (m_TabCtrl.GetCurSel( ) ==0 )
{
m_TreeCtrl1.SelectItem (m_TreeCtrl1.GetRootItem());
}
|
|
|
|
|
Hi
Folks i am here with a problem
I did the followin things in my SDI VC application(MFC exe with default App wizrad options)
1.Created a Dialog Resource with a ComboBox(Attached a Control Variable to that m_ctrlCombo)
,attached a new class to it ( CTestDlg ).
2.Created object of CTestDlg in view class in OnLButtonDown()
[code]
void CTestView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CTestDlg dlg;
dlg.m_ctrlCombo.AddString("Alpha");
dlg.m_ctrlCombo.AddString("Beta");
dlg.DoModal();
CView::OnLButtonDown(nFlags, point);
}
[/code]
The Problem is that when i run the application and OnLButtonDown() Function is invoked
.I get a debug assetion failure
* "File: afxwin2.inl
Line 735 "
when i ignore it two times the Dialog is shown but no string attached to the comboBox
Plz help me out Folks to solve this.
Thanx in advance.
|
|
|
|
|
jinbabaj wrote:
dlg.m_ctrlCombo.AddString("Alpha");
dlg.m_ctrlCombo.AddString("Beta");
This should be in the InitDialog method of the dialog.
The assert pops because the dialog is not CREATED, only constructed, and will be created in the DoModal method.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
|
Hey..
I wanted to configure Modem settings like
modem speed,parity,data bits,stop bits,"wait for dial tone before dialing" etc. programmtically.
I would also like to set some DUN settings like "Log on to network" and "Allow unsecured password" etc.
Advanced Thanks for any code, suggestions, clues or referrences...
|
|
|
|
|
Well I am not sure but in windows I think there is a file which keeps these settings... Try to look for a file like that!
Well... I am a beginner ...
|
|
|
|
|
|
Take a look at the various RAS functions, including:
RasCreatePhonebookEntry()<br />
RasEditPhonebookEntry()<br />
RasSetEntryProperties()<br />
RasSetEntryDialParams()
etc
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
It was really helpful and i can look at it the DUN related settings.
Now how can we change the Modem Settings do u have/know the some code snippets? Something i found here http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q163/2/36.asp&NoWebContent=1
But i ddidn't get more details to set the "Wait for dial tone before dialing",Call Preferences, "Cancel the call if not connected within"
etc.
Thankx a lot in advance
|
|
|
|
|
hi,
i want to hide a dialog when it start.
but, why it can't hide a dialog in OnInitDialog() with following code?
this->ShowWindow(SW_MINIMIZE); // work in OnInitDialog()
this->ShowWindow(SW_HIDE); // failure in OnInitDialog()
minimize is ok... but, can't hide a window.
even i added following in OnSize() also can't hide a window when i start.
if ( nType == SIZE_MINIMIZED )
{
this->ShowWindow(SW_HIDE);
}
any help?
thanks,
jim
|
|
|
|
|
Instead of calling dlg.DoModal(), use dlg->ShowWindow( SW_HIDE )
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
what u do for dialod based app will lead to assertion!
|
|
|
|
|
|
In my MFC MDI app, when I call GetRichEditCtrl().SetWordCharFormat or GetRichEditCtrl().SetSelectionCharFormat to color a piece of text, and then press Ctrl+Z (or Edit->Undo), the formatting gets undone!
Is there any way to tell the rich edit control not to allow this character formatting to be able to be undoable?
|
|
|
|
|
Use EmptyUndoBuffer() .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I know of that, but what if before I call SetWordCharFormat the user has an operation that is undoable. If I called EmptyUndoBuffer, they would be unable to undo that operation they had "done" before I called SetWordCharFormat. There's got to be a solution
|
|
|
|