|
does anyone know how to send email with attachment using c code?
|
|
|
|
|
|
Thank you verymuch. i need it for c programming not vc++.
|
|
|
|
|
As mail is system dependent, the chapters are perfectly useful. There may be a class or two in use, but you can just dig out the API calls used - and they are C.
You can even do COM from C if you're masochistic. Only a few months ago there was a a series of articles showing COM using C.
Iain.
|
|
|
|
|
hi all,
I have a window that is initially hidden. After some time i need to pop this window after i have completed downloading some contents. After the window is popped, if i click on any otehr window then this should loose its focus. How can this be achieved?
I tried using SetWindowPos(&wndTopMost,....). But this failed as the window is displayed always on top( the focus is never lost) which is not my requirement.
Also i tried SetForegroundWindow() function, but this also displays the window on top always.
SwitchToThisWindow() call is advisable as per MSDN forums.
How can this be overcome?
Sunil
|
|
|
|
|
|
Thanks. What you told is right. But the thing is loosing the focus is not enough, i sould also make the other window clicked by the user visible. Setting SetWindowPos with HWND_TOP doesn't help as the window is shown on the taskbar alone nad not displayed to the user.
Its something like a pop-up window that sould be displayed, when we browse any web.
Requirement is: Pop the main window after some content is downloaded. If the user clicks on any other window, the main app window should go to the background.
Sunil
|
|
|
|
|
sunilpv1982 wrote: Setting SetWindowPos with HWND_TOP doesn't help as the window is shown on the taskbar alone nad not displayed to the user.
Have you used the SWP_SHOWWINDOW flag with SetWindowPos ?
SetWindowPos(HWND_TOP, ......., SWP_SHOWWINDOW);
MSDN Docs on SetWindowPos[^]
If this doesn't work then try
ShowWindow(SW_SHOW);
MSDN Docs on ShowWindow[^]
Hope this helps
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
Yes that is also done. But again in vain....
Sunil
|
|
|
|
|
sunilpv1982 wrote: Yes that is also done. But again in vain....
Well now I am not really sure as to what the problem is. Are you positioning the window in the visible area of the screen? If possible, do post some code so that we can debug what the problem really is.
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
in vain how? What is/isn't happening?
HakunaMatada's example should work, although I would try with the SWP_NOMOVE and SWP_NOSIZE flags
to make sure you're not resizing and/or moving your window to an "invisible" size/location.
Something like this:
::SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
Is the window a child window?
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
its a dialog based application.
Sunil
|
|
|
|
|
For my application I want to have a button inside a CEdit control. Since I am not a MFC expert can somebody tell me if and how this can be done?
Thanks!
|
|
|
|
|
|
|
Meindert2 wrote: For my application I want to have a button inside a CEdit control. Since I am not a MFC expert can somebody tell me if and how this can be done?
Learn[^] how to do this.
|
|
|
|
|
I like this one! But I would like to have a CCustomEdit :public Cedit that does this....
|
|
|
|
|
Meindert2 wrote: I like this one! But I would like to have a CCustomEdit :public Cedit that does this....
Then look at what the other guys have suggested.
|
|
|
|
|
Found it and have it working! thanks!!!!
|
|
|
|
|
I look for a memory leakage detector which will show me lines of leakages in my source code just like
"Runtime checker". Unfortunately its not free.
BEST REGARDS
|
|
|
|
|
|
Also, for simple file/line-number info in the debug window (using the debug CRT) for leaks in
memory allocation, maybe check out this thread[^].
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
Hi all
In my activeX control I have certain texts whose fonts I need to change using CFontDialog.
I cannot change the font using stock font since I need to have different font for different texts.
How can I do this?
This is what i did.
I have a member of CFontHolder m_Font in my control. Then with SetFont and GetFont method am trying to change m_Font. But I dont know how to set a particular font to m_Font object. And then get the font from m_Font and select that to DC so that TextOut will be drawing text with that Font.
Any help would of great help.
Regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|