|
Of course I need a computer to test those things. Right now what I've done is read them and write my test code a paper and later test them when I found a machine
I appreciate your help all the time...
Eranga
|
|
|
|
|
|
Thanks pal, I'll try my best to learn those stuff really well.
I appreciate your help all the time...
Eranga
|
|
|
|
|
|
Thanks pal,
I use Visual Studio .Net 2003 and really looking for tutorials with GUI base explanations. Do you have such links with you.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Codeproject is good place for you it has a lot articles that are helpfuls for you.
|
|
|
|
|
OF course. That's why I'm registered here and use them. But actually I've limited access to the internet. That's why I'm looking such materials. May be a nicely explain book.
I appreciate your help all the time...
Eranga
|
|
|
|
|
check http://www.flazx.com/category73.php[^]
hope it would be of use to you..
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
Thanks pal,
Do have something on .Net
I appreciate your help all the time...
Eranga
|
|
|
|
|
mmm, I am not sure if it is secure or not. But I have taken a look in these web and when I tried to download MFC Profesional clases[^] my antivirus gave an alarm and closed the internet explorer.
Just for info
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Nelek wrote: I am not sure if it is secure or not
i think it's secure since i have downloaded more than couple of books..and even read them , though this was sometime back.
Nelek wrote: when I tried to download MFC Profesional clases[^]
of course i didn't download this one...i was into ATL,COM..so maybe this particular book has some problem
Nelek wrote: my antivirus gave an alarm and closed the internet explorer.
hmmm..maybe some settings were too strict..
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
for this,
i used the book
"14 essential skills to learn visual C++"
by steven holzner.
its a wonderful book for the beginners.
iam not sure if it is available as softcopy.
but it is there in most of the popular book stores.
gud luck.
|
|
|
|
|
Yes, i couldn't found a soft copy of that. If it is well structured and if you have a e-book can you send a copy to me. I'm really appreciate it.
I appreciate your help all the time...
Eranga
|
|
|
|
|
mention your ID , i'll send some of the MFC book i have.
Ashish
|
|
|
|
|
Really appreciate it.
Here is my yahoo mail,
eranga262154@yahoo.com.au
I appreciate your help all the time...
Eranga
|
|
|
|
|
plz fwd to my mail pavan1146@gmail.com
|
|
|
|
|
Hi all,
Does anybody know or have a code to get the unicode properties of an attachment file?
here is my code:
string MapiAttachment::GetPropUNICODE(LONG PropertyID, UINT codePage = 0)
{
string pRetVal;
if ((PROP_TYPE_MASK & PropertyID) != PT_UNICODE)
{
return 0;
}
wstring pTemp;
HRESULT hrProperty;
LPSPropValue lpPropValue = NULL;
hrProperty = HrGetOneProp((LPMAPIPROP)m_Attachment, PropertyID, &lpPropValue);
if (hrProperty == S_OK)
{
int len = WideCharToMultiByte(codePage , 0, (const wchar_t *)lpPropValue[0].Value.lpszW, -1,0, 0, NULL, NULL );
LPSTR pTemp;
MAPIAllocateBuffer(len,(LPVOID *)&pTemp);
WideCharToMultiByte(codePage , 0, (const wchar_t *)lpPropValue[0].Value.lpszW, -1,pTemp, len, NULL, NULL );
pRetVal = pTemp;
MAPIFreeBuffer(pTemp);
return (pRetVal);
}
else
{
pRetVal = ("");
return (pRetVal);
}
}
I need to change something at the HrGetOneProp part because it fails there? I hope someone can help me or give me an idea where to get the unicode properties.
Thanks,
Jj
|
|
|
|
|
Hello and good day. I have an application which runs threads and waits for all of them to be terminated before closing the application. I used a timer to check the number of threads that are still active, which successfully checked when there was no more threads. However, when I called OnClose() from the OnTimer function, the application fails to close. I needed to close the application one more time for it to successfully close. I checked and the application reads the CDialog::OnClose() in the OnClose function but it does not close when called from the OnTimer. Does anyone have an idea about this situation? Thank you very much for your help.
-- modified at 1:52 Monday 22nd October, 2007
|
|
|
|
|
|
Thank you very much! PostMessage(WM_CLOSE) did the job. Thank you!
|
|
|
|
|
Llasus wrote: Thank you very much! PostMessage(WM_CLOSE) did the job. Thank you!
You should not call OnClose directly. It's an event handler which is invoked by the MFC messaging framework in response to the WM_CLOSE message. That's why your call didn't work.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
Actually I placed a TRACE in the OnClose function to see if it works before. Since the timer is the one which calls the OnClose function, it printed out in the Output window the message I set inside the OnClose function using TRACE . What I was wondering about was that I had the CDialog::OnClose() inside the function but it did not work. I needed to click on the close button once again to close the application. I made a breakpoint inside the function to double-check and it actually passes the CDialog::OnClose() but it won't close when called directly by the OnTimer function. I also tried DestroyWindow but it really does not work ( though it passes through that line) when called by OnTimer and needed for the close button to be pressed once again to close it.
|
|
|
|
|
Try using calling AfxPostQuitMessage instead of calling OnClose .
Steve
|
|
|
|
|
Thank you for your time and help. Though when using AfxPostQuitMessage caused the application to immediately close without calling the OnClose() which caused some leaks since I have some objects released at that function. Thanks again for your help!
|
|
|
|
|
In that case try PostMessage(WM_CLOSE); instead.
Steve
|
|
|
|