|
In addition to Stephen's reply, you can read about the same problem here[^].
The only sane place to suspend a thread is from the thread itself.
Use may use an event or a volatile declared boolean, or a user message if it's a UI-thread, to instruct the thread to suspend itself.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
you can use AfxEndThread()
or
KillThread()
or you can send a notification to a thread to exit
|
|
|
|
|
Hi guys
Does anybody know what the equivalent of ldexpl() is in C#.Net?
Any pointers would be appreciated.
Thanks.
|
|
|
|
|
You might try asking in the C# forum.
“Cannot find REALITY.SYS...Universe Halted.”
~ God on phone with Microsoft Customer Support
|
|
|
|
|
Hi i have one doubt regarding how to generate XML file output for example;
main()
{
int Array_sample[];
for(int i=0;i<=10;i++)
{
Array_sample[i]=i;
std::cout<<Array_sample[i]<<std::endl;
}
return 0;
}
Thanks and Regards
Nisha
|
|
|
|
|
#include <iostream>
#include <c++/3.4.5/fstream>
using namespace std;
int main()
{
int Array_sample[10];
fstream myOutput;
myOutput.open("test.xml", fstream::out);
myOutput<<"<?xml version=\"1.0\" encoding=\"Windows-1252\"?>"<<endl;
myOutput<<"<numbers>"<<endl;
for(int i=0;i<=10;i++)
{
Array_sample[i]=i;
myOutput<<"\t<item>"<<Array_sample[i]<<"</item>"<<endl;
}
myOutput<<"</numbers>"<<endl;
myOutput.close();
return 0;
}
[EDIT:] screwed-up the quotation marks. They're fixed now.
|
|
|
|
|
you are simply writing in console print XML senerio ...i want to generate one external XML file
|
|
|
|
|
No .. he is actually writing to a "test.xml" file.. not stdout
myOutput.open("test.xml", fstream::out);
regards
Fratelli
|
|
|
|
|
I'd normally be more polite, but you sir nisha0000, are a donkey!
It creates test.xml as it's output. For ****'s sake - try actually compiling it.
|
|
|
|
|
how to check date formate in vc++
how to set date formate in vc++
|
|
|
|
|
ani_ikram wrote: how to check date formate in vc++
GetDateFormat()
ani_ikram wrote: how to set date formate in vc++
Something like this:
CDateTimeCtrl* pCtrl = (CDateTimeCtrl*) GetDlgItem(IDC_DATETIMEPICKER1);
ASSERT(pCtrl != NULL);
pCtrl->SetFormat(_T("MM-dd-yy"));
//Also check COleDateTime::SetFormat
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
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 
|
|
|
|