|
|
In VC6.0,why I cannot open the project of CDex downloaded from "http://sourceforge.net/" ? Thank you first.
Rap off for you,for me,for our human.
|
|
|
|
|
I hope it may be the version probelm. The project could be developed in vc5. while opening whether it gives any error. if so, wat error its display? Wat the error is appering while the file is open....
convey me the error details fully. Then i try to solve ur problem.
Shanmuga Sundar.V
|
|
|
|
|
While opening it, the VC6.0 is no response as if anything didn't happen.
Rap off for you,for me,for our human.
|
|
|
|
|
Couly you give me a sample of creating an ini file and reading from and writing on it?
|
|
|
|
|
If you mean how to use ini files, you should check out this[^] article!
Hope this helps
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Hi CPians,
I'm facing the following problem : I have a MFC dialog app which automates Excel (using OLE automation). I'd like to change the format of a range of cell from "Standard" to "Text", or "Number". How do I achieve that ? I already have a LPDISPATCH on my range of cells, and I have tried using a Style type, but since OLE is really new to me , I get a little bit lost with functions returning only VARIANT and so ... so please, could anybody provide me a code snippet for changing the format of these cells ?
Thanks a lot ...
~RaGE();
|
|
|
|
|
oRange.SetNumberFormat(CComVariant("0.00"));
oRange.SetNumberFormat(CCOmVariant("@"));
Peter Molnar
|
|
|
|
|
Thank you very much, that helped. I expected it to be so complicated that I did not even think about trying something that simple ... Thanks a lot !
~RaGE();
|
|
|
|
|
i have tried it all ,
i was even able to establish a conversation with netscape
using NETSCAPE,NSShell,Netscape6 (different for different netscape versions)
but netscape never sends me the URL
please help
|
|
|
|
|
Hi,
I have a dialog based appliaction, Which was working fine. All of a sudden it started crashing at DoModal(). When i call DoModal() it send WM_DESTROY message. Could anyone please tell me what is wrong?
Regards
Neha
|
|
|
|
|
Please specify in detail , whether it is a Modal or Modeless dialog ,
and what do u mean by When u DoModal it sends WM_DESTROY message.
Abhishek Srivastava
Software Engg (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
It is a Modal dialog.
What i mean is when i call DoModal(), it comes to OnDestroy() member function of the dialog window.
|
|
|
|
|
Press F9 on destroy, press F5 and then open the callstack and check what's happening
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
It crashes at:
hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
pParentWnd->GetSafeHwnd(), AfxDlgProc);
in DLGCORE.CPP
hInst,lpDialogTemplate has the proper values.
pParentWnd=NULL;
AfxDlgProc has some value.
After this it will go to OnDestroy() instead of OnInitDialog()
|
|
|
|
|
Can you call GetLastError and see the error string?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
case 1
CDialog oCDialog;
if(oCDialog.DoModal()==IDOK)
{
}
case 2
CDialog *pCDialog;
pCDialog = new pCDialog;
|
|
|
|
|
|
Did u change the resource file just before it started crashing?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
You are right. I had fixed the problem...
Thanks ......
|
|
|
|
|
what i meant by enumerting the cases was that if you do not create the dialog box within if condition then the WM_DESTROY will get generated and it will destroy you dialog box.
if you don't wanna use if condition to create a dialog box then you will have to allocate memory to the dialog box pointer with new opeator.
i hope this solves your prob.
|
|
|
|
|
What kind of controls do you have embedded in this dialog?
I seem to remember the need to initialize support for RichEdit Controls prior to their use in a dialog.
Best Regards,
Bill
|
|
|
|
|
Hi, everybody
I meet a problem
First
DWORD WINAPI CA::ThreadFuncSound(LPVOID lpParam)
{
DWORD dwResult=0;
Beep(800, 1000000);
return 0;
}
ThenCreat a thread to sound which is suspended
m_hThreadSound = CreateThread(
NULL, // no security attributes
0, // use default stack size
ThreadFuncSound, // thread function
(PVOID)this, // argument to thread function
CREATE_SUSPENDED|THREAD_ALL_ACCESS, // Start the thread with a suspend count of one
&dwThreadId);
And then Start the sound thread
ResumeThread(m_hThreadSound);
Sleep(100);
Now I want to stop the speaker to sound. I ever used SuspendThread(m_hThreadSound) or TerminateThread(m_hThreadSound,0), but they can't work well.
How can I solve this problem?
Appreciate for any suggestions!
|
|
|
|
|
Hi there
to terminate a thread
first call GetExitCodeThread() method passing the Thread Handle to it and DWORD reference.
DWORD exitcode
GetExitCodeThread(m_hThreadSound, &exitcode) ;
Now call TerminateThread(m_hThreadSound, exitcode);
actually u were commiting mistake by passing 0 as thread exit code in ur TerminateThread line.
Tell me if i solved ur prob
Abhishek Srivastava
Software Engg (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
Thanks
But it does not work well yet.
It seems that this operation can not stop the speaker's sounding.
Have any other way?
|
|
|
|