|
i m sending a mail using SMTP...
But i want to authenticate my smtp server
can anybody just tell me how to use AUTH LOGIN command in vc++
i m sending HELO Command like this.....
TCHAR local_host[ 80 ];
gethostname( local_host, 80 );
sHello.Format( "HELO %s\r\n", local_host );
m_wsSMTPServer.Send( (LPCTSTR)sHello, sHello.GetLength() );
if( !get_response( GENERIC_SUCCESS ) )
{
m_wsSMTPServer.Close();
return FALSE;
}
after these lines of code i want to authenticate my server
do we paas username n password with AUTH LOGIN command only
Can somebody send me the line of code
aur just explain me the method of doing so
thanxs in advance...
|
|
|
|
|
Hi,
If I remember well when you trying to connect with authenticated server you should use EHLO keyword instead HELO.
Perhaps this helps you: rfc2554[^]
-----------
Mila
|
|
|
|
|
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction:
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request,HttpResponse response, Boolean& abortProcessing)
this code is written in VC++6.0 using the ATL COM
i am using the saop toolkit 2.0 and also have installed MS XML 4.0 and soap 3.0. soanyone can help me in this matter
thanks
|
|
|
|
|
An appl was created in VC++ 6.0 with MFC Wizard and Database with no file support.
On initializin the appl the following error message pops up.
Too few parameters.Expected 1.
On tracing the error i found in the overriden method OnInitialUpdate() the boldfaced line
void CLibManView::OnInitialUpdate()
{
CEdit *temp = (CEdit *)GetDlgItem(IDC_TYPE);
temp->SetReadOnly();
temp = (CEdit *)GetDlgItem(IDC_PRICE);
temp->SetReadOnly();
temp = (CEdit *)GetDlgItem(IDC_STAT);
temp->SetReadOnly();
m_pSet = &GetDocument()->m_libManSet;
CRecordView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}
was returnin CDBException. How to solve the error. Otherwise Appl responds ok.
Shouvik
|
|
|
|
|
Have you gone through these[^] possible reasons?
|
|
|
|
|
Yup,
I checked with the number of fields its 13 only as per the manual count and as well as in the variable
m_nFields = 13;
plz help,
Shouvik
|
|
|
|
|
Thanks prob solved;
mismatch in field names;
thanks a lot
Shouvik
Shouvik
|
|
|
|
|
Congrats !
|
|
|
|
|
Hi all,
I embedded webbrowser within my application acting as an HTML viewer.
However, when an HTML page contains invalid scripts , the viewer throws several 'Internet Explorer Script Error' prompt pages, and ask user to click 'Yes', or 'No' in order to continue.
How can i block these dialogs from my application
Please help me
Thanks
vinod
|
|
|
|
|
plz kindly help me in my project
sudhir
|
|
|
|
|
sudhir.marni wrote:
plz kindly help me in my project
you have manually have to check that!
<div class='ForumSig'>"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you </div>
|
|
|
|
|
Iam very thankful to u r reply
here in my project is runing on port no 5060 we have to check whether the my application running or not if it is there required to notify that
|
|
|
|
|
Open a socket on that port and send a hello signal. If the application is running, it should reply to caller with a standard string.
AKA protocol. Figure out one for your internal use, just as HELO on port 25 is the SMTP greeting.
|
|
|
|
|
Dear All,
I need to find frequently that whether remote host is on or off.
How can i do this ?
Thanks.
|
|
|
|
|
Sakthiu wrote: I need to find frequently that whether remote host is on or off.
try to connect to the remote host and look for returned Header!, i.e. if it is Websever it will return some webpage, header etc
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
|
amitmistry_petlad wrote: Re: File sie in win32
WIN32_FIND_DATA wfd;
HANDLE hFile = FindFirstFile("C:\\MyFile.txt",&wfd);
int fileSize=0;
fileSize=(wfd.nFileSizeHigh*(MAXDWORD+1))+wfd.nFileSizeLow;
// fileSize contains the size of the file in bytes.
I haven't tested the code, so it may have some limitations
I hope this helps you...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
A file size is a 64-bit unsigned integer, so your calculation for fileSize will overflow if nFileSizeHigh > 0.
|
|
|
|
|
Try this
WIN32_FILE_ATTRIBUTE_DATA m_lpFindData;
GetFileAttributesEx("C:\\123.pdf",GetFileExInfoStandard,&m_lpFindData);
DWORD dwSize =(m_lpFindData.nFileSizeHigh*(MAXDWORD+1)) +m_lpFindData.nFileSizeLow;
</code>
|
|
|
|
|
Borrowing from WhiteSky's response, but without overflow ...
WIN32_FILE_ATTRIBUTE_DATA m_lpFindData;
GetFileAttributesEx(_T("C:\\123.pdf"),GetFileExInfoStandard,&m_lpFindData);
DWORD64 qwSize = ((DWORD64)m_lpFindData.nFileSizeHigh << 32) + m_lpFindData.nFileSizeLow;
|
|
|
|
|
Hello, I have downloaded this LLMozLib (it allows easy embedding of the Mozilla Gecko HTML layout engine)
but when I tried to compile one of the test apps I got these linker errors:
llmozlib.lib(llmozlib.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)<br />
llmozlib.lib(llembeddedbrowser.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)<br />
llmozlib.lib(llembeddedbrowserwindow.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)<br />
llmozlib.lib(llmozlib.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)<br />
llmozlib.lib(llembeddedbrowser.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)<br />
llmozlib.lib(llembeddedbrowserwindow.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)<br />
llmozlib.lib(llmozlib.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)
The _String_base is defined in the following way:
class _CRTIMP2_PURE _String_base
: public _Container_base
{
public:
_MRTIMP2_NPURE_NCEEPURE static void __CLRCALL_PURE_OR_CDECL _Xlen();
****
Now I found this thread that shows the identical problem and it is suggested that the calling conventions
of the definition and the lib don't match, but the solution (to change __CLRCALL_PURE_OR_CDECL to __cdecl) doesn't work.
I have tried everything to resolve them, but it's no good (god, how I hate linker errors).
I hope one of you guys can shed some light on this.
Thank you.
#edit-> Oh, and I'm using vs8.
|
|
|
|
|
hello,
the aim of my program is to move a 50x50 pixel (pic_a) immage over a 500x500 pixel (pic_b) image by moving the mouse over the big image.
also, i have to copy a part of pic_b to produce pic_a and change to rgb color into a grayscale for pic_a. In the end the grayscaled pic_a
has to move over pic_b while exactly matching in content. i know it is hard to explain but i just hope that anybody can give me an idea how to
make a copy, save this and put it into the front. i am using c++ and opengl and think i need several buffers and switch them while moving???
thanks in advance,
patrick
|
|
|
|
|
Hi,
I am new at directshow, I am coding in Visual C++ .NET but with MFC. I need to take images which are being stored in memory on the fly and put them into a movie file. The images are being streamed into memory and their is no source filter that allows me to take DIB's stored in memory and put into directshow, unless I missed something.
Do I have to write a source filter that takes images from memory and put it into the directshow pipeline? I am a little lost here, if anyone knows how this can be done it would be greatly appreciated. Also some sample code of doing this would be greatly appreciated.
Thanks
|
|
|
|
|
If you want to write your own source filter then the Push Source Filters Sample[^] in the DirectShow
SDK is a good place to start. Very little code needs to be modified.
|
|
|
|
|
Hi,
Thanks for the quick response, so do I create a Win32 Static Library Project and then inherit the CSourceStream class, like CPushSource has.
once again thanks for the response.
|
|
|
|