|
hi for all....
i want to know what is the code to make program to send
message by using protocol " smtp "...
i want to make program can send message to some mails how i can do that????
(what the classes i must use???
.....etc);
thanks
amaal
|
|
|
|
|
;Phi,
see in cp at internet or network and you will see mnay examples on it...
cheers
Himanshu
|
|
|
|
|
Search the net for a program called blat. It usually comes with the source code and is fairly easy to follow. I used it as a guide for our SMTP implementation. Straight Win32 API.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
Hi all,
Does anyone know of any GOOD docs on the Windows Accessibility API (other than that of msdn's)...?
I would like to retrieve the text from any text-based application just by clicking the text or by hovering the text with the mouse pointer. Pretty much like www.atomica.com.
Does anyone know how to accomplish this?
/Tommy
|
|
|
|
|
How do I disable the restore button in the title bar at start ?
|
|
|
|
|
ModifyStyle( SW_MAXIMIZEBOX, 0); for MFC apps, otherwise
SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) &<br />
~WS_MAXIMIZEBOX);
hope this helps
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I don´t get it to work
void CMyView::OnInitialUpdate()
{
m_pSet = &GetDocument()->m_medlemSet;
CRecordView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
ModifyStyle( SW_MAXIMIZEBOX, 0);
...
Error:
error C2065: 'SW_MAXIMIZEBOX' : undeclared identifier
did I do something stupid
- Tom
|
|
|
|
|
Try WS_MAXIMIZEBOX
|
|
|
|
|
Oops
modified 12-Sep-18 21:01pm.
|
|
|
|
|
yes i figure that out, but I won´t get it to work anyway. The button won´t go away. Should I place the code in OnInitalUpdate(...) or in OnCreate(...), and besides I wanted the user of my application not be able to use the restore size button.
- Tom
|
|
|
|
|
I got it to work when i changed the order of the parameters:
//ModifyStyle(1, WS_MINIMIZEBOX);
ModifyStyle(WS_MINIMIZEBOX,0);
Thanks a lot !!
Is it correct that the application should go fullscreen when running the WS_MAXIMIZEBOX?
|
|
|
|
|
So now I got it, the right one should be:
ModifyStyle(0,WS_MAXIMIZEBOX,0);
Thanks for all
|
|
|
|
|
First of all, if you use the document-view-architecture, place ModifyStyle inside your CMainFrame class, not the CView. And then try using OnCreate rather than OnInitial Update (even if that shouldn't matter).
|
|
|
|
|
Dear friends,
I am writing an application i which there is a need to resolve a given domain and get the resultant IP. For this purpose i am using the traditional gethostbyname() technique.
But the problem is that on some LANs the gethostbyname() call fails. On such networks, the ping call on command prompt also fails. But very strange that Internet explorer and MSN messenger works normally. How can i programatically resolve domain on such networks ...
|
|
|
|
|
confused:can anyone point out soem tutorial on telephone to application control..sort of..like I dial a number and the number is recognized by the application running on my server and it responds accordingly..sort of answering machine with some intelligence..
any ideas and any tutorials are welcome..please..
thanks in advance..
cheers..
Himanshu
|
|
|
|
|
TAPI is pretty simple to learn providing your TSPI supports all the necessary functionality.
The platform sdk has some excellent samples for using TAPI. It also used to have something called WebTelephony Engine which provided some great functionality in conjuction with IIS.
The Speech SDK has links into TAPI very nicely and might be worth investigating.
The following link is a good starting point
http://www.sellsbrothers.com/writing/telprog/[^]
Michael
The avalanche has started, it's too late for the pebbles to vote.
|
|
|
|
|
I have a editbox with a date: DDX_FieldDate(pDX, IDC_PAY_DATE, m_pSet->theDate, m_pSet) . If the date was a string then i could check if the editbox was empty with the code if(myVariable=="") , but how do I do in the case with the date? The variable for the date is defined as TIMESTAMP_STRUCT theDate .
|
|
|
|
|
You can make a Control-variable for your Edit-Box (using the Code-wizard) and then call GetWindowText() on it.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Thanks jhwurmbach!
That was a really simple solution, and simple is the keyword for me
jhwurmbach wrote:
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
How can i disable scrollbar in CHtmlView, i use
this->ShowScrollBar(SB_BOTH,false);
i have windows error message
l also try :
Scrollar = this->GetScrollBarCtrl(SB_VERT);
VerBar->EnableScrollBar(ESB_DISABLE_BOTH);
error message again !
if you know how to disable scroll bar...
|
|
|
|
|
The standart functions regarding scrollbars won't work at htmlview. You have to take a look at IDocHostUIHandler and it's method GetHostInfo. (If you're working with VC7, you don't really need to care about that because CHtmlView get's informed when GetHostInfo is called, and the function OnGetHostInfo is called). In VC6, you need to derive a class from COleControlSite, there implementing the IDocHostUIHandler interface. When adding DOCHOSTUIFLAG_SCROLL_NO to the flags member of the DOCHOSTUIINFO struct passed as a parameter in GetHostInfo, scrollbars won't be displayed.
For further information go to MSDN and search for "WebBrowser Customization" or IDocHostUIHandler in general.
|
|
|
|
|
Thank !
it's OK for disable scrollbar, and now i want to scroll the document where i want, is it possible ?
|
|
|
|
|
jeremysay wrote:
i want to scroll the document where i want
Have a look here: http://www.codeproject.com/useritems/scrollbrowser.asp[^].It's usefull if you want to act on your html document directly. If not, you could simulate keyboard input per send_key(...) to let the document scroll.
But unfortunately the standard CScrollView function won't work.
|
|
|
|
|
thx a lot for he link ! but i try this code but i have some problem...
so now i know where found a example.
|
|
|
|
|
I have a Dialog Application and I want to get new data in a timer function and draw a graph of it in a the Dialog window.
In the 'OnPaint' function I am drawing using CPaintDC like this:-
CPaintDC dc(this);<br />
CRect rect (m_pt.x, m_pt.y, m_pt.x+WIDTH, m_pt.y+HEIGHT);<br />
dc.Rectangle(rect);
In the timer routine I am using InvalidateRect to make it redraw my data like this:-
CClientDC dc(this);<br />
CRect thisRect;<br />
GetClientRect(thisRect);<br />
InvalidateRect(&thisRect);
But the buttons keep getting redrawn as well, which looks horrible. So how should I be doing it, any ideas?
Any help appreciated, thanks
Ali
|
|
|
|