|
Thank you, Prasad. Your method looks more intuitive.
|
|
|
|
|
I had created game using Form, and 2 arrays of pictureboxes. I make everything, but it go very slow, so I asked my theacher how can it make faster, he said what it some function, that make project of game faster, but he didn't know hier names. So I tried search in msdn but fuond nothig. Can anybody help with this functions ?
I using visual studio c++.
|
|
|
|
|
thesad wrote: ...some function, that make project of game faster...
You mean there's a magical function that we can call that will automatically make our code faster? Cool!
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I suspect that would be the undocumented RunFaster( double howMuch ) function.
|
|
|
|
|
thesad wrote: so I asked my theacher how can it make faster, he said what it some function
Time to whack the teacher.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
thesad wrote: anybody help
Get your money back
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
|
|
|
|
|
hi
plz help me
i don't know how i can create a hidden process
thanks alot
|
|
|
|
|
|
You shouldn't want to or be allowed (by the OS) to do so. The user has a right to know what software is running on his computer. Are you trying to write a virus?
Steve
|
|
|
|
|
Can you explain why do you need to hidden proccess ?
|
|
|
|
|
hi
plz help me
i don't know how i can create a hidden process
or show a hidde process in the process list
thanks alot
|
|
|
|
|
Hello All ?
can anyone please tell me what's wrong with following code?
<code>class A
{
public:
A(const string& s)
{ }
string f()
{
return "hello world";
}
};
Class B : public A
{
private:
string s;
public:
B():A(s=f())
{ }
};
void main()
{
B obB;
}</code>
Thank you,
sanket patel
|
|
|
|
|
Is this a quiz? Why don't you first tell us what problem you are having.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
oh I am sorry!
whenever I try to run this code my program crashes.
I dont know what is wrong with it?
sanket patel
|
|
|
|
|
sanket.patel wrote: ...my program crashes.
Where? The term "crash" rarely means anything useful.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am sorry again!!
But I dont know why this code is not executing.
I know there is some problem with my understanding of the code.
so I just want to know that Where I am wrong?
Thank you
sanket patel
|
|
|
|
|
Have you tried:
class A
{
public:
A() {}
A(const string& s) {}
string f()
{
return "hello world";
}
};
class B : public A
{
private:
string s;
public:
B()
{
s = f();
}
};
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thank you David!!
the code you show is working fine!
so can you please explain me where I was wrong ?
sanket patel
|
|
|
|
|
In class A, does it still crash if you make the f() method static? You are using A's method before A is ctor'ed. It looks like it shouldn't matter, but who knows, maybe some static consts are not available until after the first inst of the class is created? Sounds doubtful, doesn't it.
|
|
|
|
|
Thanks NealAB,
Yeah I got your point!
I think that is only happening. I was trying to use A's method before it was created.
Thanks again...
sanket patel
|
|
|
|
|
Hi
Its a simple question of which i am not gettin answer in google.
i.e EditBox->Text.c_str()
What does above code says. I am more confused aboue .c_str part.
Can any one shed some light to it.
Thanks in advance
|
|
|
|
|
Software_Specialist wrote: What does above code says. I am more confused aboue .c_str part.
c_str() is a method of the basic_string class.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Software_Specialist wrote: EditBox->Text.c_str()
This indicate that,Text is member of EditBox(its datatype) and c_str is member of Text(its data type) , and obvioulsly, you could find out that.
Prasad
MS MVP - VC++
|
|
|
|
|
Hi there,
I'm unfamiliar with C++. Onli done VB before.
If I'm trying to create a form that has an embedded media player(any version) in C++, Should i use MFC or MS .NET form for C++? Is there an specific purpose for each usage? i.e MFC/C++?
And do i require media player SDK in the project?
Please advise. Thanks.
Your expertise is appreciated.
Regards,
Brendon
|
|
|
|
|
You should be able to drop the WMP ActiveX control onto the dialog template like any other control.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|