|
Hello friends,
I have been asked to Find out the new manifest method of Visual Studio 2005 and implement the manifest in my project ,and test it on different themes.
any one please suggest me some references that could help me.
Thank u!!!
|
|
|
|
|
Hi guys,
I'm building a simple mail program, and I want to send mail to an address but I am having a few issues with the authentication.
I'll use telnet in my discussion because its easier but I'm doing this in VC++.
Basically the smtp server I am using is:
smtp.gmail.com port 587 (Yes i know its not 25, but google requires this for TLS). Here is what i input into telnet:
220 mx.gmail.com ESMTP e14sm234337qba
ehlo server
250-mx.gmail.com at your service
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
starttls
220 2.0.0 Ready to start TLS
auth login
Connection to host lost.
You can see after I put in AUTH LOGIN, I get disconnected.
My question is, after i enter the command STARTTLS, how do i enter my login information and the corresponding mail commands (MAIL FROM:, RCPT TO: etc.)?
If I have to some how incorporate SSL into sending commands how would I do that using C++?
I looke allllll over google and other places but couldnt find an answer. Any help would be appreciated. Thanks guys!
Robbie
|
|
|
|
|
hi capricious_001
you can check http://www.codeproject.com/internet/csmtpconn.asp[^]
The Program is not through Telnet but it's a simple implementation to send mails using SMTP.
Hope it helps....
"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..!!!"
|
|
|
|
|
Hey quickdeveloper,
Thats a really neat program, and I'm actually looking at using that. What I really like is that its REALLY clean and well documented... meaning it took me only a few seconds to realize whats going on and i'm a newbie programmer.
The only problem is that you need to have access to an SMTP server that has no authentication whatsoever and doesnt use SSL.
lol you wouldnt know of any SMTP Servers that don't have any authentication or use SSL would you? :P
Thanks for the script btw
Robbie
|
|
|
|
|
I debug a program with break points. I checked variable values all O.K.
Suddenly I got error message: Unhandled exception in Data.exe, OXC00000FD, Stack Overflow
WHat is the problem ? how to fix it?
|
|
|
|
|
Most likely you've got recursion that is too deep. i.e.
void Foo()
{
Foo();
}
Steve
|
|
|
|
|
Thanks Steve. It looks like I solved the problem by reduce the size of arrays in the program.
However, now I got "unhandled exception, 0xC0000005 access violation"
Please help thanks
|
|
|
|
|
Can you show the code in question?
Steve
|
|
|
|
|
When I print (using the break points)the array value, e.g. data[1022] I got -1.#INDO and the error message says: Unhandled exception in Data_proc.exe:0xC0000005: Access violation
The function code where the message is generated:
void CBlast_vib_procDlg::complexFFT(float data[],unsigned int &nn,int &isign)
-> {
The data[1022] is within the range of the array defination.
Thanks
|
|
|
|
|
First, I create a bmp control on a Dialog , and set its ID to ID_MYBMP
second, I creat a member variable for the bmp control as m_mybmp ;
third, I import a bmp file into the resource and name it IDB_MYBMP ;
forth, I add following code to the funcion OnInitDialog()
BOOL CMyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CBitmap bmp;
bmp.LoadBitmap(IDB_MYBMP);
m_mybmp.SetBitmap((HBITMAP)bmp);
}
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
I'd check if bmp contains a bitmap, in the debugger. One way is just to call GetWidth and see what you get back. Then you can focus on the bitmap control as a possible source of the problem.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Try the following code as it works in my application for same
CBitmap bmp;
bmp.LoadBitmap(MAKEINTRESOURCE(IDB_SCHEDULE));
m_Schedule.SetBitmap(bmp);
bmp.Detach();
Hope it works for you
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
-- modified at 0:13 Wednesday 12th April, 2006
|
|
|
|
|
Hi ewighell
Do you set Bitmap(false) to true in property window from control?
|
|
|
|
|
The bitmap is destroyed when your CBitmap object goes out of scope. Make the CBitmap a member of your dialog class.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
I made it with your helps.
Thank you all very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
Hello,
I have a simple application where I try to display a dialog with a timer. It builds fine in the debug mode but not in the release mode. This is the error I get:
MainFrm.obj : error LNK2001: unresolved external symbol "protected: long __thiscall CMainFrame::OnNotifyPowerOnTime(unsigned int,long)" (?OnNotifyPowerOnTime@CMainFrame@@IAEJIJ@Z)
Release/NotifyTimer.exe : fatal error LNK1120: 1 unresolved externals
Relevant Code:
////////////////////////////////////////////////
// CMainFrame
#define WM_NOTIFY_POWER_ON_TIME (WM_USER + 1)
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
ON_WM_CREATE()
ON_MESSAGE(WM_NOTIFY_POWER_ON_TIME, OnNotifyPowerOnTime)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////
function definition
/////////////////////////////////
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg LRESULT OnNotifyPowerOnTime(WPARAM,LPARAM);
//////////////////////////////////
//////////////////the function///////////
LRESULT CMainFrame::OnNotifyPowerOnTime(WPARAM, LPARAM lParam)
{
...
...
return (LRESULT) 0;
}
Any suggestions? Help??
Thankyou
Murali
-- modified at 19:54 Tuesday 11th April, 2006
|
|
|
|
|
Make sure that the OnNotifyPowerOnTime function implementation is not enclosed within a #ifdef DEBUG section (there is one around the Dump( ) and AssertValid( ) functions, it may have ended up inside that section).
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Hi dabs,
You were right. The function was enclosed within a #ifdef _DEBUG section. I moved the function outside the #ifdef _DEBUG and recompiled and everything is fine. Thanks for your help.
Murali
|
|
|
|
|
LRESULT CMainFrame::OnNotifyPowerOnTime(WPARAM, LPARAM lParam)
{
...
...
return (LRESULT) 0;
}
where is the parameter of the wparam or is it ok...
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Hi,
Do not need the actual parameter for WPARAM. As long as the defn. matches the decl. My code compiles fine in both the release (after the fix, thanks to dabs) and debug mode.
Murali
|
|
|
|
|
Does it make sense to use the .NET framework to develop a Win32 DLL that will reuse a lot of code from another project that uses MFC classes . I am going to stick to coding language as C++
If so what kind of solution ( project / language) is preferred ?
Engineering is the effort !
|
|
|
|
|
act_x wrote: Does it make sense to use the .NET framework to develop a Win32 DLL that will reuse a lot of code from another project that uses MFC classes
The answer is NO, it doesn't make any sense to me.
act_x wrote: I am going to stick to coding language as C++
Long live the Microsoft Visual C++ good choise!
act_x wrote: If so what kind of solution ( project / language) is preferred ?
I guest you known the answer to that question!
|
|
|
|
|
Sounds like you need to host an instance of the WebBrowser control. It's an ActiveX control so you'll to use MFC or ATL unless you want to implement the hosting code yourself (you almost certainly don't).
Steve
|
|
|
|
|
Stephen Hewitt wrote: It's an ActiveX control so you'll to use MFC or ATL unless you want to implement the hosting code yourself (you almost certainly don't).
Thanks for the tip... I'd like to know if you think I should use (MFC or ATL) as I'm trying to read .html files on disk and display them within a screensaver. What is the easiest way of accomplishing this goal? I have to use the method declaration that follows, and all I have to use is a handle to the screensaver window (hWnd):
LRESULT WINAPI ScreenSaverProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
-- modified at 23:15 Tuesday 11th April, 2006
|
|
|
|
|
I have to send some data as XML format to two different places right now I send all the data to one location through a socket and I need to create another socket to send some other data to second location as follow:
If (data1)
send to LOC1
else
send to LOC2
and this LOC1 connection should always be open
at this point I have the socket and connection to LOC2
Please help me to know how to make the second connection to LOC1 for the first connection to LOC2 the code uses CfgRemoteAddr=127.0.0.1 and some local port: local 1222 and remote 1223.
as follow:
if( hCfg->CfgApiSocket->CfgTCP )
.
.
..
if( !hSocket->sSend( hCfg->CfgApiSocket->CfgRemoteAddr, 0, ( LPSTR )XMLString, XMLSize ))
{
//Socket::sSend( LPSTR Address, INT PortId, LPSTR txBuff, INT txBuffSize )
tmpVar = 0;
memset( Buff, '\0', MAX_LOADSTRING );
tmpVar = hSocket->GetError(( LPSTR )Buff );
LogError( "WEAPIClass", "InSockProcess", "Error sSend Socket: %d, %s", tmpVar, Buff );
LinkStatus( IPC_LINK_DOWN, 0, NULL, 0 );
}
else
{
LogAppDiag( LOGGER_INBOUND_DIAG, XMLString, XMLSize, LOG_FORMAT_ASCII );
}
Thanks for any idea
Nahitan
|
|
|
|