|
okay
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
My articles[^]
bdiamond
|
|
|
|
|
Hi
Have u done that tyler stuff ? I am alsowondering how I can doit ..studied tayler series in engg papers in college ...
hm.. interesting..
Dharani babu S
|
|
|
|
|
hi mr bdiamond,
i was wondereing what you were becoming...
do you still try to do that job ?
if you have some ideas or some ways of doing such stuff, i'd like to share this knowledge with you... please.
i thank you for your interest...
see you
TOXCCT >>> GEII power
|
|
|
|
|
hello Mr BDiamondBlackDice,
it's been 1 year that you told to try for a Taylor() development function...
i consider you've been stoping any researches on the subject (if you did any), but i'm disapointed you didn't even told me you stopped...
too bad, it would be of a big interrest.
bye
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Yeah, I'm kinda disappointed in myself. However, I did do some reasearch, and came to the conclusion that my math skills weren't up to par for that yet, so I would start teaching myself some more math stuff. I did buy some books to help, but I've been doing this very big FoxPro project since about that time, and it's been changed, re-changed, re-re-changed, etc. It's finally reached completion, and I'm about to change companies in 2 weeks, anyway. Plus, I didn't have a computer at home until a couple of weeks ago.
I haven't actually forgotten, and I think about it every time I see your name on one of the posts. I will still try to do it, otherwise I'll feel like I failed at something, which I hate. So yes, I have paused, but I still intend to complete the task.
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
don't mind man, it's not a big problem... actually, it would be very interresting to know how such mathematics are implemented, but i am far from this too anyway...
moreover, i'd like to add such a function to my VisualCalc, but as i didn't implement formal calculus yet, it's a far point too.
don't care, you didn't failed, i apreciate the help you proposed, and accept the fact that it is a very difficult point to implement, even for mathematicians i believe... (making maths, and implementing them make a big gap...).
thanks,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Can anybody point me to an example or show me how to create a "Window Tiling Function" in an MDI application in MFC. I basically want the same functionality that you get when you do "Tile Windows Horizantally", "Cascade Windows" etc.
thanks
ali
|
|
|
|
|
In your mdi, find out what function that id for the actual menu item is mapped to, then look at the mfc source.
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
bdiamond
|
|
|
|
|
Ali Niaz wrote:
I basically want the same functionality that you get when you do "Tile Windows Horizantally"...
Send a WM_MDITILE message and set wParam equal to MDITILE_HORIZONTAL .
Ali Niaz wrote:
..."Cascade Windows"
Send a WM_MDICASCADE message and set wParam equal to 0.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hello,
Consider the following code:
<br />
class A<br />
{<br />
public:<br />
A() {}<br />
~A() <br />
{ <br />
static int i = 0;<br />
std::cout << "Destructor called " << ++i << " time(s)" <br />
<< std::endl;<br />
}<br />
};<br />
<br />
void main()<br />
{<br />
try<br />
{<br />
throw A;<br />
}<br />
catch(A ex)<br />
{<br />
} <br />
}<br />
When I run the code, the output is the following:
Destructor called 1 time(s)
Destructor called 2 time(s)
Destructor called 3 time(s)
Press any key to continue
I can figure why the destructor is called 2 times, but why is it called the 3d time???
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
It has to do with how many times the object is being copied. If you replace the code with the following it will only call the destructor 2 times:
class A
{
public:
A() {}
~A()
{
static int i = 0;
std::cout << "Destructor called " << ++i << " time(s)"
<< std::endl;
}
};
void main()
{
try
{
throw A();
}
catch(A & ex)
{
}
}
[EDIT]
Here is a version that will only be called once:
class A
{
public:
A() {}
~A()
{
static int i = 0;
std::cout << "Destructor called " << ++i << " time(s)"
<< std::endl;
}
};
void main()
{
try
{
throw new A();
}
catch(A * pEx)
{
delete pEx;
}
}
[/EDIT]
John
|
|
|
|
|
Thanks, this solved my issue with handles getting closed to often
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Please, could someone explain me why there are errors in the following code?
#include <iostream>
#include <string>
using namespace std;
class Log
{
public:
explicit Log(const string& msg) { cout << msg << endl; }
};
int main()
{
string msg = "Hello, World!";
Log(msg.c_str()); // This Works...
Log(msg); // ... but this doesn't; Errors C2371 and C2512!
return 0;
}
I'm using VC++ .NET 2003.
Thanks in advance.
|
|
|
|
|
Hello,
I, once again, am wondering about some C++ thing. This time it is about the cleanup of thrown exceptions.
Consider the following code:
<br />
throw new CSomeException(ErrorNumber);<br />
<br />
catch(CSomeException *pEx)<br />
{<br />
}<br />
I want to know if the destructor is called when the catch-block is left, or does this lead to a memory leak?
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Bob Stanneveld wrote:
I want to know if the destructor is called when the catch-block is left, or does this lead to a memory leak?
It leads to a memory leak. If someone throws a pointer to an exception, it won't automatically be deleted.
Nathan Holt
|
|
|
|
|
Hello,
Thanks for the information.
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
You can know this by yourself debugging. Put a breakpoint in your descructor, for exemple.
|
|
|
|
|
I know, but I'm always looking for an excuse to surf to codeproject.com
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Hello, I'm using VC++ .NET 2003 and I'm fairly new to it and to GUI programming in general. For my current project I need to interact with some legacy C code that uses character arrays for strings.
I was able to convert from a system::string to a character array using the "PtrToStringChars" method but I can't, for the life of me, figure out how to convert an old-school char array back into a system::string.
Oh and the reasoning is that basically I need to parse a textbox in my form, convert the contents to a char array for the c code, then take a char array returned by the c code and convert it back to a managed string to be displayed in another textbox on the form. Make sense?
So... how do I do it!?
|
|
|
|
|
Dear Friends,
I got a CString. What i want to find out is whether the first character in that CString is a Number (i.e 0 to 9). How can i do so ??
|
|
|
|
|
Use isdigit() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Yes, use IsDigit(), and you can reference the first character of a CString like a char array (ie mystring[0] )
[A brave person isn't always necessarily a smart person]
bdiamond
|
|
|
|
|
Yep
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Cool!! Didn't know you could access it like an array.
|
|
|
|
|
Does anyone know how to run a C# procedure that is located in a dll from a C++ .net dll?
Thanks
Max
|
|
|
|