|
i have stored dates in MS ACCESS file
field name is DATE and formate is mm/dd/yyyy
now i want to retirve date from database using vc++
and want to convert date in any other formate
plzzz helppp
|
|
|
|
|
CTime tmObj = pCQScanData->GetTime();
sprintf_s(szTime, "%02d:%02d:%02d",
tmObj.GetHour(), tmObj.GetMinute(), tmObj.GetSecond() );
|
|
|
|
|
See this article. Date fields are extracted from an Access database and then formatted for display.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
why is this voted down?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
just to say thanks to ur respons
but problem is to get date from database (ms access)
i know how to get text data from database using vc++
|
|
|
|
|
And to say thanks you vote down??? (1 is a "bad answer" and 5 a "good one")
Then I don't want to imagine what you will give when you get mad because of an answer like mine now :P
(I am prepared for the worst )
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
how get date from ms access database
get date from database and convert its formate is problem for me in vc++
|
|
|
|
|
Nelek wrote: Then I don't want to imagine what you will give when you get mad...
You'd get a 5. Let the insults commence!
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I just wonder,
Is there a Law or Habit in your country or culture which makes a request more urgent by adding more 'z' 's to plz instead of writing an Un- Needed please. I intend to ignore in future all requests headed that way.
All participants (More than 5 million) will scroll through the postings. If we know a helpfull comment, we will give it. A plzzzzzzzzzzzzzz heading does not mean that 5 million people start rolling up their sleeves to sort your problem.
Regards
Bram van Kampen
|
|
|
|
|
how set the formates of date in vc++
|
|
|
|
|
What type is the 30/12/2008 value in (e.g., int , time_t , CTime , tm )? Until you provide is with that minimal amount of information, why would you expect an answer?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Anyone has any idea on how to do this?
Design the necessary classes and member functions to achieve the above tasks.
To write a menu driven program that repeatedly allows the user to select
one of the following two options:
Option 1 : Allow a user to enter the date and time of United States and the City for time conversion. The program will output United States time and the equivalent time of the city.
Option 2 : Allow user to enter the date and time of United States, the City to travel to, and the flight time between United States and the City. The program will output the time of arrival at the city.
Assume that time difference between United States and the city is a positive value if time of the city is ahead of United States. It is a negative value if time of the city is behind United States. Time differences of the various cities are stored in a text file.
Your program will read in the cities and the time differences from the text file.
Example of time differences :
City Time difference
London -7
Sydney +2
Cairo -7
New Delhi -2:30
Tokyo +1
Beijing 0
New York -12
|
|
|
|
|
|
Pretty straight forward answer by enhzflep
|
|
|
|
|
did u just type out the course project question word for word and expect someone to do it for you?
|
|
|
|
|
Good point...
|
|
|
|
|
This is my favourite part:
Anyone has any idea on how to do this?
Design the necessary classes and member functions to achieve the above tasks.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
is that possible to connect Ms ACCESs 2003 to conncet with vc++ 6
plz help me how it will connect
plz send me code how to connect
|
|
|
|
|
U can use MS ACCESS with vc++ using msado15.dll.
ritz1234
|
|
|
|
|
i have include this dll into my project directory
but error msg when i excute my program
error unrecognized formate
while this code is working with ms access 97
but for ms access 2003 show error
|
|
|
|
|
Hello, I need some help and I'm a MFC newbie, please be patient with me.
I simply tried to draw text in the client area, at first I thought OnPaint message was not caught, but when I was trying to resize the Window multiple times, the text appears. It appears for only only a very brief time, not even long enough for the eyes to see. Is there something I forgot to do?
The text should not disappear even if the OnPaint returns right?
CPaintDC dc (this);
CString str = _T("String");
CRect rect;
GetClientRect(&rect);
dc.DrawText(str,-1,&rect, DT_VCENTER | DT_CENTER | DT_SINGLELINE);
|
|
|
|
|
Only thing I can think of, is that if you handle WM_PAINT, you're expected to return a non-zero value, otherwise windows will also handle the message
|
|
|
|
|
Thanks for the help, that is a good point I'll look into it.
Thats what I also know for WIN32 API... but does MFC classes does that implicitly or explicitly?
|
|
|
|
|
Closer examination seems to indicate that it's handled implicitly. I guess painting in the non-client area would have a similar effect to the one you describe, unless onNcPaint was being used..
|
|
|
|