|
im very new to c++ and i cant find anything on adding just the date to a statusbar i dont want a datetimepicker i want just the date like sun may 23 2004i have
CTime t1;
t1=CTime::GetCurrentTime();
m_bar.SetPaneText(1,t1.Format("%H:%M:%S"));
for the time can someone help?
|
|
|
|
|
i want just the date like sun may 23 2004
>
CTime Tm;
Tm = Tm.GetCurrentTime();
CString strDate = Tm.Format( "%A, %B %d, %Y" );
|
|
|
|
|
thanks *Dreamz
|
|
|
|
|
Try using
   t1.Format("%c")
for the date and time with local formatting or
   t1.Format("%a %b %d %Y)
for "Sun May 23 2004"
For other options see documentation for the strftime function
|
|
|
|
|
thanks Martin Turnidge
|
|
|
|
|
Hi,
I want to apply Bitmap::ConvertFormat () method for my project. But above method is not in the GDI+ version 1.0 .So I have to download GDI+ version 1.1. From where can I download it? ,I search it .But I didn't get suitable URL for that. please help
or Is there other way to apply the ConvertFormat() Method?
|
|
|
|
|
You need to install latest version of platform SDK.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
ya ,Accually I installed the Latest Version of SDK(updated 2003 October). But I get the Same error Message in My Program .
error C2039: 'ConvertFormat' : is not a member of 'Bitmap'
E:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusHeaders.h(488) : see declaration of 'Bitmap'
What to do now?.
|
|
|
|
|
This is what i got when i read the doc.
This is preliminary documentation and is subject to change.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
GDI+ 1.1 is not available despite the preliminary documentation in MSDN which apparently was a mistake. There is no word on when it will actually ship.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
How exactly can I create a zip file programmaticaly in C++. I know that I have to use a CRC table. A link to a website that contains source code for a program that takes a file and creates a zip file out of it would be great!
|
|
|
|
|
Check out sawzip here in codeproject
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
In addition to the other link, info-zip has a lot of source code, and other information. (They claim that winZip is based on their code)
|
|
|
|
|
I'm not sure what I did there...
Anyway, info-zip at http://www.info-zip.org/pub/infozip/ has some more source.
|
|
|
|
|
Help me!!
Now I should be develop dialog box to change network environment that is consist of IP,
SUBNET,GETWAY, the First DNS, the Second DNS.
how to do this work base on win32 api??
|
|
|
|
|
I'm not for sure if there is an API for it (surely there is but I've not had the need for it), but you can make changes to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces registry key.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Does anyone have a pointer to understandable source that shows how to read in an avi
with directshow and create a new avi with the processed bits from the first avi.
Im just looking for how to write the new avi.
Thanks,
|
|
|
|
|
Hi!
i want to create a multi-form-based application with mfc. I've read this tutorial:
<url=http: www.functionx.com="" visualc="" controls="" forms.htm="">http://www.functionx.com/visualc/controls/forms.htm
but i can't understand the one of the last steps, number 38 to be exact.
Is there another tutorial on the subject? there are many ones for adding dialogs, but that's not what i'd like to do
thanks!!
|
|
|
|
|
Hi,
kfaday wrote:
want to create a multi-form-based application with mfc. I've read this tutorial:
http://www.functionx.com/visualc/controls/forms.htm
but i can't understand the one of the last steps, number 38 to be exact.
What is it (exactly) that you don't understand about step 38?
The step talks about adding UI handlers. Rather than add handlers for each and every command, MFC has MACRO's that help with a range of command ID's.
So for the OnUpdate UI handler, you are handling command ID's from ID_VIEW_EMPLAPP to ID_VIEW_REQTIMEOFF, e.g. if ID_VIEW_EMPLAPP has an ID of 34000 and ID_VIEW_REQTIMEOFF of 34004, then we would be handling ID's 34000,34001,34002,34003, and 34004.
The function itself is simply saying "set the UI as checked (ticked) if the ID of the command (34000 - 34004) is equal to the value of m_CurrentView.
Also, note that the ON_*_RANGE macros are outside the AFX_MSG_MAP macro's. This is because Class Wizard does not support these macro's and if you had put them inside, the next time you use class wizard to handle another message, the RANGE macro's would have gone!
Hope this helps,
Andy
|
|
|
|
|
i was able to complete that project. What it does, is to change the view in the same window, (it switches through different CFormView objects.. each one with a dialog, )
What i want to do, is a messanging (like icq, or msn) program. So when you double click on an user in the list, a new chat window opens. I was able to acomplish that with modeless dialogs, but that's not what i want. I'd like resizable windows.
any ideas?
thanks!!
|
|
|
|
|
Hey all. I'm wondering if someone could point me to the correct method to use for getting user input through a messagebox? (IE, I want to display a box that says "Enter Password", and gives the user a field to type in a password and it returns that value). I thought that this could be done by doing something to the effect of sPassword = MessageBox(...);, but it isn't working. I've been through the list of methods for CWnd but still can't seem to find it.
Thanks!
|
|
|
|
|
You can't find it because AFAIK it does not exist. You need to create your own input dialog. Dialog boxes return a code to show which button was pressed.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Just curious Christian, what does AFAIK mean?
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
|
Thanx.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|