zafersavas wrote:
str.GetBuffer(str.GetLength());
Memory Leak here ! Why the hell do people use that dangerous GetBuffer() function when it's absolutely useless ? :doh:
zafersavas wrote:
str.GetBuffer(str.GetLength());
Memory Leak here ! Why the hell do people use that dangerous GetBuffer() function when it's absolutely useless ? :doh:
yes ! it's open source if you mind looking at it.
It should do. So, what's wrong ? Do you get an error ? CString has an inner cast Operator (LPCTSTR
) which converts the CString object to a const char*
(if compiling ANSI) of const wchar_t*
(if building unicode), so you should not have to do any much stuff. And please (if you get this advice from anywhere), don't use the CString::GetBuffer()
) method at all for such a thing !!! So, to come back to you problem, what is your problem ?
Ctrl+F5
...
no such thing happen, except if it was abusive, or at the wrong place (wrong forum)...
Member 2023561 wrote:
sorry, I thought if you still need any help in Data Structure
are you on crack ? i'm still not the one who asked the question ! what makes you think I need explanation about such things ?
are you on crack ? when you ask a question, the topic has to be specific, and not talk about the TOOL you're compiling your code with ! :doh:
susanne1 wrote:
Subject:Visual C++6
susanne1 wrote:
iam trying to prevent the user from resizing, maximizing and minimizing a FormView window
So your question is not about Visual C++ 6, is it ?
Member 2023561 wrote:
do you still need any help ?
:confused::confused::confused: why did you say this to me ?
use std::sort()
algorithm:
std::vector<int> v;
v.push_back(4);
v.push_back(2);
v.push_back(7);
std::sort(v.begin(), v.end());
sort()
works the same with std::list
and any kind of container...
I believe toxcct meant "what do you want to do that for ?"
KMAROIS wrote:
It it was so much trouble for you, why bother responding at all?
if it's too much for you to 1) search the web, 2) read the docs, and 3) try to understand a wise answer you got, why bothering asking ? bitwise operators are operators operating directly on the bits rather than full bytes. so, as the other guy was saying, the ^ operator is the XOR (exclusive OR) bitwise operator.
^ 1000 -> 8
quite. never forget to use parenthesis everywhere within the macro definition...
what you want is called a SplashScreen.
you must use a std::map instead if you want to identify a record with a unique key.
<table>
is deprecated when used to format a page layout. When you have to display tabular data, you can logically use a table though. But if it's just for page layout, you have div and css table commands for that. You have to keep in mind that a table will not display when the page is loading until its whole content is downloaded. Unlike tables, div display immediately, even though they are not on their right place yet, because the entiere page is not fully loaded.
toxcct wrote:
42 ?!
:laugh: :laugh: it looks like someone didn't understand your joke :cool:
you're missing a ; after the closing } of the class definition. a class definition is like this :
class C {
//...
}**;**
you certainly didn't want to say that to our great toxcct, did you ? ;)
ptr_Electron wrote:
I tried placing in threaed but failed
how did you do that ?