|
Hi y'all I'm new here.
I've searched and searched and can't find an easy and seamless method of keeping my desktop and laptop email in sync that doesn't require an exchange server.
So I guess it looks like I have to write one myself.
Anyone got any comments, interest, warnings?
George
|
|
|
|
|
hi. i have an Empty Document of MFC (Demo). in this Document i design a Dialog box that is open beside the Document Windows. My Dialog have a Simple Edit Box. I Creat a Class From this Dialog (CDlg) and Add a Variable to this Class for that Edit box (m_str)
how can i change this Variable in my DemoView.cpp or for example Control that if a Button is Clicked on that Dialog. (i mean i want to Control that Dialog Remotly on my DemoView.cpp)
thanx
-=Ehsan-de-Burge=-
|
|
|
|
|
I think one method is to send your CDlg a user message from your DemoView.cpp.
|
|
|
|
|
I want to print a filled in triangle
that looks like |> squished together.
I want it to say
Total |>
and that triangle sort of points to
what the actual total is. Any ideas?
I couldn't find anything in ascii.
Please, any response any one can give
me will be greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
according to the chart that MSDN shows, ASCII char #16 (0x10) looks like that (right-pointing arrow head)
-c
I'm not the droid you're looking for.
|
|
|
|
|
I tried lots of different things, but I keep
ketting carriage return!! How can I get the
symbol as a CString?
Please any response you can give me will be
greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
How can i use a dialog from a thread ?
Code below doesn't work.
DWORD WINAPI s(LPVOID params)
{
CDialog d;
d.DoModal(); // ASSERT problem here
}
CreateThread(NULL,0,s,(LPVOID)this,0,&thID)));
|
|
|
|
|
If you are using MFC, then using MFC to create your thread, not WIN32.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
1. What does the ASSERT say?
2. Is the CDialog class really called "CDialog"? It should be a class derived from CDialog, not CDialog itself.
3. Have you thought of using a modeless dialog instead? It simulates a modal dialog box on a separate thread:
static CMyDialog s_dlg;
if (!::IsWindow(s_dlg.m_hWnd))
s_dlg.Create(CMyDialog::IDD);
s_dlg.ShowWindow(SW_SHOWNORMAL);
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
I've overriden WM_TIMER in my ListView class,and put SetTimer in OnInitUpdate(),but my WM_TIMER called only one time.Any idea?
::SetTimer(NULL,NULL,10000,NULL);
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
give ur timer an id
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
No change.It called only once again.
::SetTimer(GetSafeHwnd(),10000,10000,NULL);
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
I find it out.It called whenever the view is focused. Thanks.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
I'll make this as concise as possible.
I have an MDI application which performs some mathematical
calculations. The end result is a double. I would like
to have that double value displayed in the client area of the
MDI window, at the location of the mouse pointer, when a user clicks the right mouse button. As it stands right now, when OnRButtonDown() is called, the calculation is done and I use an AfxMessageBox() call to display the double value. I don't particularly like the effect of this, so I would like to display the value using a call something like:
void ShowText(double Value2Show, CDC* pDC)
{
// Do nifty stuff to show number on DC
}
I suppose the biggest problem I have is changing the double
to a form to be displayed on the DC. Is there an easy way of doing this?
Could someone enlighten me as to what the "Do nifty stuff" part should contain?
|
|
|
|
|
The double needs to be converted to a string so that it can be displayed using an appropriate CDC method, such as TextOut.
CString strValue;
strValue.Format(_T("%lf"), Value2Show);
pDC->TextOut(123, 456, strValue);
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
If you want to display the text at the location of the mouse pointer then put the following in your OnRButtonDown handler
CClientDC dc(this);
OnPrepareDC(&dc);
dc.DPtoLP(&point);
dc.TextOut(point.x, point.y, yourstring);
The DPtoLP function converts the mouse coordinates from device coordinates to logical coordinates
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
How can I get the position of percentage symbol and format a string ?
E.g. 45% or %45
Thanks
Orcun Colak
|
|
|
|
|
char buffer[1024];
int n = 45;
sprintf(buffer, "%%%d", n);
|
|
|
|
|
I was not clear. My mistake sorry.
I wanted to format a percentage according to system settings but I do not know how to get system settings.
For example in US percentage is formatted like 45%
Somewhere else it is %45.
How can I output the correct percentage according to system settings.
Thanks
Orcun Colak
|
|
|
|
|
orcun colak wrote:
For example in US percentage is formatted like 45%
Somewhere else it is %45.
Are you sure about this? Why is there no way to set this in the Control Panel? There's even no mention of a % symbol or position, nothing. The GetLocaleInfo API doesn't mention it either. It seems like the percent sign is universal and I would imagine that so is it's position.
At any rate, if you're sure there's (weird) people out there who prefer to see it on the left, you may have to handle it yourself, which isn't too difficult.
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
Actually I found this link in msdn
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vjref98/html/java.text.NumberFormat001.asp
Scroll to getPercentInstance() method. Explanation of the method is :
"Returns a percentage format for the current default locale."
Therefore I assumed Number % format is not universal.
Thanks for your help
Orcun Colak
|
|
|
|
|
23, woohoo!
todo....
:: insert inpirational text here ::
|
|
|
|
|
tsk - a non-programming question in the programming forums?
What is the world coming to?
Go to the lounge, and say that again, and I'm sure you'll get a few s
(happy birthday, btw. You now get an entire year of the blink 182 "nobody loves you when you're 23" line bouncing around your head or is that just me?...)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
I have a binary file and its got stuff in it that looks like:
10 20 10 30 etc.
What I need to do is replace the first two numbers so that the file looks like:
a b 10 30 ....
Can I trouble you for some sample code that does this? The file extension is something weird....not .txt or anything like that...
Appreciate your help,
ns
|
|
|
|
|
two options
1) Open your file as a binary file - seek to the positions you want to change and write new bytes to it then close the file
2) open your file as a binary file, read in the whole lot to a buffer of bytes, modify the bytes you want to change and write it back and close
Have a look at the CFile docs in MSDN (if you're using mfc, that is)
--
Help me! I'm turning into a grapefruit!
|
|
|
|