|
I agree - but if you insist on using DAO and insist on not having the warning appear, that is you only option AFAIK.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
krmed wrote: but if you insist on using DAO and insist on not having the warning appear, that is you only option AFAIK.
depends, all deprecated element have a by-path solution
|
|
|
|
|
I'd be curious to know what the other solutions are?
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
as i said in my previous post, if something is deprecated, it is because something better superseeded it.i have no knowledge on this particular point, buti'mpretty sure the deprecated stuff documentation talks about where to find the replacement solution...
|
|
|
|
|
OK... then what I had indicated is correct.
If he wants to use DAO, he will have to use one of the two solutions I gave. The other option is to rewrite all of his database parts of the code to use ADO which is the replacement for DAO, or use ODBC.
Just curious since I use DAO in some apps, and really didn't want to change them all to ADO at this time. Guess I was hoping you knew another trick.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Hi Friends,
I would like to know is there any otherway to copy a double to string in C.
I see that it can be done by using sprintf(.. , "%f", .. ) but I want to know anyother way to do this.
My problem is:
If i run the sprintf (.., "%f", .. ) on any machine in which has decimal point as , (comma) instead of a . (dot) (like French) it is converting . to , in the string even if the double value is having .(dot) . I don't want it to happen.
Ur help is highly appreciated..
Thanks a lot..
Regards,
Leela
|
|
|
|
|
std::istringstream ?
my mistake, this is C++. use ftoa() as an alternative, but never forget that the number is the number. your problem is a matter of representation (the decimal character - '.' or ',' - is not stored in the number itself)
|
|
|
|
|
this is C we are talking about, not C++.
|
|
|
|
|
He asked to do that in C, not in C++
|
|
|
|
|
toxcct wrote: use ftoa() instead
Such as this implementation?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You have to display the number, HOW the systems wants to show the number.
If you have problems with it, can can also replace the "," with a string replace.
Greetings from Germany
|
|
|
|
|
This is controle by the LOCALE .
I'm not certain that you can force sprintf to a certain representation ( . instead of , ) ?
|
|
|
|
|
Maximilien wrote: I'm not certain that you can force sprintf to a certain representation ( . instead of , ) ?
Not until _sprintf_l() came along. That might not be an option for the OP, however.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
ToughGuy9 wrote: If i run the sprintf (.., "%f", .. ) on any machine in which has decimal point as , (comma) instead of a . (dot) (like French) it is converting . to , in the string even if the double value is having .(dot) . I don't want it to happen.
If I understand you correctly, you want numbers formatted like 123,456.78 regardless of the locale. Is that correct?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
I want the double to be stored into the integer string as with decimal point as dot (.) but NOT as a , comma.
Regards,
Leela
|
|
|
|
|
But why would you want to do this for countries that format numbers differently?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
Thanks to One and all for trying to help me in this regard,,
As of now after copying the double to the string i.e., after sprintf statement Iam checking if string has , using strchr().. If i find a ,(comma) iam replacing it with a . (dot). But if can find some other alternative in which i can copy the value in the double variable as it is to a String..
Btw the double variable has value with .(dot)
- Leela
|
|
|
|
|
Hi, I am working on a remote controlled car that is controlled by a pc. I would like to know how to read from the midi port or gameport. I am using visual studio 2005 c++ and I am not really familiar with reading and writing to ports. I've only found one working code from microsoft but it only works on visual 6. The others don't even compile.
Thank you and good day.
|
|
|
|
|
Hello comunity,
is it posible to change the rowheight in CListCtrl, when i use them in my dialog they have only
standard rowheight, i like to change this!
For example, after every 10 items the 11 row should by not higher as 5px!
------
// row 1
------
// row 2
------
------ // <-- row 11
Is there any way to do this?
with best regards
break;
-- modified at 8:24 Wednesday 17th January, 2007
|
|
|
|
|
You need owner drawn list control for this.
I just reading this article[^] to get an idea.
|
|
|
|
|
Hello Prasad,
thanks very much for answer, i use already this
ON_NOTIFY ( NM_CUSTOMDRAW, IDC_MY_LIST, OnCustomdrawMyList )
to set my own text and background color in CListCtrl.
I seek for member which i have to change row heigth!
regards
break;
-- modified at 9:45 Wednesday 17th January, 2007
|
|
|
|
|
hi every body, salamou alaykom !
how are you ?
I have a question about dateTimePicker, normally this control display the current time of my system but I want that it diplay the time 00:00:00 by defaut and user can insert the time he wants.
is it possible ? thank's a lot and have a nice day
byyyyyyyyyye
zizzzzzzzzzzzzzzz
|
|
|
|
|
zizzzz wrote: ...I want that it diplay the time 00:00:00 by defaut...
So have you called the SetTime() method (with 0 for the time)?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hai,
Please let me know what is the name of the library file needed for wWinmainCRTStartUP in EVC++ And what is the use of wininet.lib and corelibc.lib....Because i am having confusion while using in my coding.
Thanks And Regards
Harshadha
|
|
|
|
|
How do I change the height of the statusbar?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|