|
|
I'm using the class library provided with visual C++ 6.0.
Maybe I should study some WTL.
thanks a lot.
|
|
|
|
|
|
thanks
|
|
|
|
|
Hello I have a small question that maybe you could help solve. I am using a CHtmlview in my application and I want to display a FTP directory on another computer so I just called the Navigate2(ftp://myftp); and this all works great, the only problem is that when the user clicks on a folder it open a new window and no event is thrown, meaning I tried catching this but could not. Have any ideas?
Thanks,
gil
|
|
|
|
|
This[^] is driving me insane
I just want a wofstream to stream out Unicode i.e. the following code to work the way you would expect:
wofstream outputFile( "test.txt" ) ;
outputFile << L"fsck!" << endl ;
instead of converting everything to be narrow first!
I'm thinking maybe I can imbue the wofstream with a locale/facet that doesn't do the narrowing of the data but I'm not having much luck.
Surely someone has hit this problem before. Any ideas...?
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Taka Muraoka wrote:
I just want a wofstream to stream out Unicode
Since the standard knows nothing about Unicode, the standard is not going to help you.
My suggestion would be to try to create a 16-bit-handling streambuf and instantiate an ostream on that one. I'm absolutely NOT sure this will help you, but at least one suggestion is better than banging ones head against the wall.
|
|
|
|
|
Banging my head on the wall? If only I had been doing just that
It's not really a question of being Unicode-aware. If a basic_ofstream is templated using 16-bit characters, then it should write out 16-bit characters, fer crying out loud!!!
Anyway, I've just about got something going[^] although it's taken me *ages* to get it working under Stlport.
Boost has a submission[^] open that looks much more elegant but doesn't compile under VC6
This is one *major* can of worms
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hi, i'm currently learning programming with visual c++. I am using the active X ADO data control in my dialog to link up with my access db. I need help with the commands used to access the features of the the adodc. For example, how can i access the recordsets from the database without the use of active x(textboxes) controls that links to the datasource. If i were to use eof to determine if the pointer is at the last record, how should i go about writing the code?
|
|
|
|
|
Not to insult you or anything but this question cannot be answered with just a few lines of text. Database programming is involving and you should read some texts and check out some examples first. MSDN has some good and simple examples. Check out this link [^] and if you're not satisfied with it, search for ADO tutorials in MSDN.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
|
Thanks, i'll try to look through the links.
|
|
|
|
|
i have a rowset to be update,insert,delete, and i want to known all modify infomation about the rowset,Is ole db or odbc support this?
or any idea else?
thank you!
i am realfly8)
|
|
|
|
|
|
I'm learning about vector STL containers, is this also considered an array?
|
|
|
|
|
No. But it can do many of the same types of things that an array can, and a bit more. Vectors are dynamic arrays, in that they can grow as you add elements to them. They are similar to arrays in that they provide the subscript operator[] (you can use standard array notation).
Use a vector if your code might throw exceptions.
Use a vector if most of your inserts will be at the back, and few near the front (otherwise consider deque or list).
Use a vector to support better initialisation.
Always prefer standard containers, list, vector, deque to arrays. less code, cleaner code, better support for copying - and in the end easier to work with.
[edit]Most vectors are internally implemented as arrays, but that shouldn't matter to the end user.[/edit]
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Andrew Walker wrote:
[edit]Most vectors are internally implemented as arrays, but that shouldn't matter to the end user.[/edit]
IIRC a vector must be implemented as an array, because &(vector[0]) is a legal expression to get a C pointer to the array. (ref. herb sutters Effective STL)
(Strings, OTOH, need not)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
IIRC a vector must be implemented as an array, because &(vector[0]) is a legal expression to get a C pointer to the array.
Yeah, I believe that is correct
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
That was left out of the original standard but has been (or will be) added. William would know for sure.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
yes, it want to be a safe one
i am realfly8)
|
|
|
|
|
Good explanation Andrew,
Thanks everybody.
|
|
|
|
|
please link to :http://www.my1489.ni8.net
please tell me what controls is this ,where could download it?i am very confused!help me
chinese girl
|
|
|
|
|
http://www.codeproject.com/miscctrl/TimeTestMfc.asp?target=mourad
i am realfly8)
|
|
|
|
|
thank you 1谢谢!where are you ?你在那个国家?
|
|
|
|
|