|
write a mail to any of your account with the file attached and recieve the mail at windows system.
Just kidding
You start ftp server at Linux and use windows as a client to transfer file.
Or setup samba server on Linux.
Regards
Anil
-- modified at 3:36 Thursday 25th May, 2006
|
|
|
|
|
Hello everybody I am very sorry to post this type of questions on this forum but
believe me its only your help that will clarify all my doubts.
After reading some articles on the forum
I concluded life-cycle of a typical MFC program as below in sequence.
1. WinMainCRTStartup
2. WinMain
3. AfxWinMain
4. AfxWinInit
5. InitApplication
6. InitInstance
Global RUN function is embeded in theApp (Global Object of my Application) which
handels all the default windows messages.
If I am wrong please correct me or give me a link where I can find more info about this.
Anger Is Only One Letter Short Of Danger
|
|
|
|
|
Scorpio wrote: Hello everybody I am very sorry to post this type of questions on this forum but
believe me its only your help that will clarify all my doubts.
After reading some articles on the forum
I concluded life-cycle of a typical MFC program as below in sequence.
1. WinMainCRTStartup
2. WinMain
3. AfxWinMain
4. AfxWinInit
5. InitApplication
6. InitInstance
Global RUN function is embeded in theApp (Global Object of my Application) which
handels all the default windows messages.
If I am wrong please correct me or give me a link where I can find more info about this.
This article by Nishant Sivakumar[^] should help you.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
|
Hi Guys,
Can anyone tell me howto tell, when you move a vertical slider control up or down, whether the thumb is goin up or down.
Thanks in advance.
Tony.
|
|
|
|
|
void MySliderTest::OnCustomDrawMySlider(NMHDR* pNMHDR, LRESULT* pResult) <br />
{<br />
if(i<m_sliding.GetPos())<br />
{<br />
i=m_sliding.GetPos();<br />
CString str;<br />
str.Format("%d",i);<br />
m_str.SetWindowText (str);<br />
}<br />
else<br />
{<br />
<br />
i=m_sliding.GetPos();<br />
CString str;<br />
str.Format("%d",i);<br />
m_str.SetWindowText (str);<br />
}<br />
*pResult = 0;<br />
}
***where i is a global variable m_str is a control variable for a label, m_sliding is a control variable for the slider.
NOTE: I have initialized the value of i in the initDialog class of my test application. You can also do it in the same way.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ thank you for your quick response.
Maybe I just don't see it but what exactly tells you from this code what direction the slider is moving?
|
|
|
|
|
i just didn't get what you want to say?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
<br />
void MySliderTest::OnCustomDrawMySlider(NMHDR* pNMHDR, LRESULT* pResult)<br />
{<br />
if(i<br />
{<br />
i=m_sliding.GetPos();<br />
CString str;<br />
str.Format("%d",i);<br />
m_str.SetWindowText (str);<br />
}<br />
else<br />
{<br />
<br />
i=m_sliding.GetPos();<br />
CString str;<br />
str.Format("%d",i);<br />
m_str.SetWindowText (str);<br />
}<br />
*pResult = 0;<br />
}<br />
<br />
void MySliderTest::OnReleasedcaptureMySlider(NMHDR* pNMHDR, LRESULT* pResult) <br />
{<br />
if(i<m_sliding.GetPos())<br />
{<br />
AfxMessageBox ("Down");<br />
i=m_sliding.GetPos();<br />
}<br />
else<br />
{<br />
AfxMessageBox ("Up");<br />
i=m_sliding.GetPos();<br />
}<br />
*pResult = 0;<br />
}<br />
<try removing="" the="" lines="" that="" i="" just="" striked="">
and add the slider release function>
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 3:58 Thursday 25th May, 2006
|
|
|
|
|
Aha! That's great thank you!
|
|
|
|
|
Anytime Dear. Need not mention . It's ok
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hope I understood your question Here[^]
whitesky
|
|
|
|
|
hi,
Whether C++ templates and generic programmings concepts are same?.
Any differences
thanks
Vivek.s
You only have to do a very few things right in your life so long as you don't do too many things wrong.
Vivek.S
|
|
|
|
|
vivek.s.vivek wrote: Whether C++ templates and generic programmings concepts are same?.
We do generic programming using templates . Templates helps us to generalize a concept.
For example a simple sum function which calculates the sum of two int s can be redesigned to calculate sum of any number and return the same type of number. This can be done through templates . It's a compile time mechanism hence no runtime overhead too.
An example:
int Sum(int nNum1, int nNum2)
{
return (nNum1 + nNum2);
}
int nSum = Sum(2, 4);
float fSum = (float)Sum((int)2.0f, (int)3.5f);
template<class T> T Sum(T num1, T num2)
{
return (num1 + num2);
}
float fSum = Sum<float> (2.0f, 56.34f);
int nSum = Sum<int> (2, 56);
double dSum = Sum<double> (2.002, 56.809);
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Nice presentation!
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
|
I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging.
"Every thing can be done Better,
Then it is being done"
|
|
|
|
|
Scorpio wrote: I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging.
Read this short discussion[^].
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
WPARAM and LPARAM are message parameters which is defined as
typedef UINT_PTR WPARAM;
u can use this parameters when u ::SendMessage or ::PostMessage to a window.
this value can be anything casted to WPARAM or LPARAM.
The message processing is the function which decides which parameter to use. u can pass pointers integer values etc... but the final processing is doing in the message processing function.
you can define your on message by using ON_MESSAGE macro inside the Message map
eg:
// example for ON_MESSAGE
#define WM_MYMESSAGE (WM_USER + 1)
BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass )
ON_MESSAGE( WM_MYMESSAGE, OnMyMessage )
// ... Possibly more entries to handle additional messages
END_MESSAGE_MAP( )
refer MSDN for more information
SaRath
|
|
|
|
|
Is it correct that all the messages are getting processed by function RUN which is embeded in my global object theApp
|
|
|
|
|
Pls refer Message Handling and Mapping section in MSDN
|
|
|
|
|
Hi!
I am trying to develope an application in C++ that can communicate with other programms via a self made com port.
For example. If my application runs, a new com port (com7 or another) will be created or activated on which i have full control.
Other programms shall connect to com7 to send or get data from my application.
Is that possible ? how can I do that ?
Many thanks
|
|
|
|
|
The Serial Communication is done with CreateFile , ReadFile and WriteFile APIs.
MyOwnShadow wrote: If my application runs, a new com port (com7 or another) will be created or activated on which i have full control.
As per u r requirement, u want to create a new Com Port.So While creating the File ,The flag for dwCreationDisposition paramter should be CREATE_NEW instead of OPEN_EXISTING .
Try this way.
For more Info, Chk this Link http://www.codeproject.com/system/serial_com.asp[^]
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
can we inherit singleton class ?
|
|
|
|
|
Krishnatv wrote: can we inherit singleton class ?
Why not! Except the constructor should be protected and not private .
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|