Click here to Skip to main content
15,928,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reg System Tray application in VC++ Pin
Michael P Butler3-Jan-05 22:58
Michael P Butler3-Jan-05 22:58 
GeneralRe: Reg System Tray application in VC++ Pin
ThatsAlok3-Jan-05 23:14
ThatsAlok3-Jan-05 23:14 
GeneralRe: Reg System Tray application in VC++ Pin
deep_19816-Jan-05 5:07
deep_19816-Jan-05 5:07 
GeneralMDI Doc-View-CWnd instead of Doc-View-FrameWnd Pin
Maverick3-Jan-05 21:34
Maverick3-Jan-05 21:34 
GeneralRe: MDI Doc-View-CWnd instead of Doc-View-FrameWnd Pin
Rajesh match3-Jan-05 22:36
Rajesh match3-Jan-05 22:36 
GeneralAfxInitRichEdit() Problem Pin
Neelesh K J Jain3-Jan-05 21:32
Neelesh K J Jain3-Jan-05 21:32 
Questioncan I export Template class in DLL? Pin
G.Richard3-Jan-05 20:23
G.Richard3-Jan-05 20:23 
GeneralSystem Beep Problem Pin
Neelesh K J Jain3-Jan-05 19:57
Neelesh K J Jain3-Jan-05 19:57 
Hello Friends,
a beep sound is coming whenever my application is started. I don't want to have this beep sound.
BOOL CMMTRansApp::InitInstance()
{
AfxEnableControlContainer();

AfxInitRichEdit();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T("Local AppWizard-Generated Applications"));

LoadStdProfileSettings(); // Load standard INI file options (including MRU)

// Register the application's document templates. Document templates
// serve as the connection between documents, frame windows and views.

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MMTRANS_MENU,
RUNTIME_CLASS(CMMTRansDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CMMTRansView));
AddDocTemplate(pDocTemplate);

// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;

// The one and only window has been initialized, so show and update it.

m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
return TRUE;
}

when I debugged it I had found that When the if condition
if( !ProcessShellCommand(cmdInfo))
is executed the beep sound is coming. The same application is not giving any beep sound for my other application. Please help regarding this matter how to stop this beep sound.

thanks in advance.


Neelesh K J Jain.
Generalabout AVI Pin
Anonymous3-Jan-05 19:53
Anonymous3-Jan-05 19:53 
GeneralDICOM Pin
Amir Ram Shrestha3-Jan-05 19:33
Amir Ram Shrestha3-Jan-05 19:33 
GeneralAny tips on a useful method to display data Pin
Hans-Christian Andersen3-Jan-05 18:49
Hans-Christian Andersen3-Jan-05 18:49 
GeneralRe: Any tips on a useful method to display data Pin
Hans-Christian Andersen3-Jan-05 18:52
Hans-Christian Andersen3-Jan-05 18:52 
GeneralRe: Any tips on a useful method to display data Pin
Michael P Butler3-Jan-05 23:01
Michael P Butler3-Jan-05 23:01 
GeneralHotKeys in MFC Pin
Rajesh_K_Sharma3-Jan-05 18:34
Rajesh_K_Sharma3-Jan-05 18:34 
GeneralRe: HotKeys in MFC Pin
ThatsAlok3-Jan-05 19:02
ThatsAlok3-Jan-05 19:02 
GeneralRe: HotKeys in MFC Pin
ThatsAlok4-Jan-05 1:00
ThatsAlok4-Jan-05 1:00 
GeneralRe: HotKeys in MFC Pin
Master^Tristar4-Jan-05 7:44
Master^Tristar4-Jan-05 7:44 
GeneralRe: HotKeys in MFC Pin
ThatsAlok4-Jan-05 17:04
ThatsAlok4-Jan-05 17:04 
QuestionHow to change the Color of Scroll Bars? Pin
pubududilena3-Jan-05 17:26
pubududilena3-Jan-05 17:26 
QuestionMFC Settings? Pin
pc_dev3-Jan-05 17:24
pc_dev3-Jan-05 17:24 
AnswerRe: MFC Settings? Pin
ThatsAlok3-Jan-05 19:03
ThatsAlok3-Jan-05 19:03 
GeneralRe: MFC Settings? Pin
pc_dev3-Jan-05 19:29
pc_dev3-Jan-05 19:29 
QuestionHow to Set User Defiend Library Path? Pin
ThatsAlok3-Jan-05 17:19
ThatsAlok3-Jan-05 17:19 
AnswerRe: How to Set User Defiend Library Path? Pin
KaЯl4-Jan-05 2:58
KaЯl4-Jan-05 2:58 
GeneralRe: How to Set User Defiend Library Path? Pin
ThatsAlok4-Jan-05 17:03
ThatsAlok4-Jan-05 17:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.