My oppinion about this is a little different.
Quality is esential for multiple reasons:
- the impression on the client when he gets a delivery
- the easiness to add enw features and to debug problems when they appear in a high-quality product
- the re-use concept of a well written...
Your condition "What I want is, if either of the fields is "ALL" do not execute the try/catch block"
converts itself into the followinfg logic:
if ((MinLives.ToUpper() == "ALL") || (MaxLives.ToUpper() == "ALL"))
{
; //do nothing
}
else
{
try
{
....
}
}
So, I do not get...
One more idea...
If your file is created in anoter process as a temporary file and passed along to your program DO NOT forget that the temporary file is deleted on close, so the part of the path that the system wont find may be the file itself.
GUESS: Is this some kind of setup programm...
There are three problems with your struct (or better name it union):
1. StructInUShortArray is a "object" on 4 bytes which points to an array of ushorts so it cannot overlap a value type. If you put two of this kind in a same union you will see that it works, but if you put one value type with...
If you need to export something from a DLL look for the __declspec(dllexport) in MSDN. I am sure you'll find something.
Anyway you cannot export a function from a class without exporting the class itself.
But exported classes are just for use in another C++ program because the name of...
There is no dedicated support for this in C++.
One tricky thing would be to make an array of them and then get the size by casting the sizeof array to the sizeof the first element in the palce you need. Then if the numbers are consecuve, this may help, if nto the approach is useless.
HTH,
s-)...
My guess is that through the cast I think the MS compiler loses the vfptr table with the real address of you function that is why it does not allow this maneuver.
I do not know if this is the expected behaviour but I am sure that you can find some workaround
s-)
Blessed is he who in the name...
I bet it is for some kind of spyware or spider or program... :)
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
http://www20.brinkster.com/ionelb
Just override the DrawItem function in a class derived from CComboBox (CColoredComboBox) then make all your coloured combos of this class.
HTH,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
http://www20.brinkster.com/ionelb
Thanks for this valueable link. It is the closesest think I have now to the actual problem.
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
http://www20.brinkster.com/ionelb
Ok, I will explain my reasons fully:
Once again, I do not care about the size of other collateral created objects.
The reason that I want to know comes form another "breach" in MS structure for NET arhitecture. They say in MSDN:
The .NET memory manager places all allocations of 85,000 bytes or...
Thanks guys.
Yes NeilTrain, I did remember about Reflection that could help me to loop to the members of a class. It may be a solution but is quite tedius though as there are other things in a class besides simple types members. (events, delegates etc)
So, at this moment it seems to me that...
Yeah, I know the size of a reference is just 4 bytes. It has some pointer behind it.
Summing all members size is bad programming style, I want to apply this to all kind of objects, nut just one.
But what I am interested in is the size of the actual object. And I really need to know that, it is...
Yes. The actual memory ocupied by the object in bytes.
Like the sizeof operator from C++.
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
http://www20.brinkster.com/ionelb
Is there a way to determine the size of a reference type object? I saw that sizeof in .NET can only be applied to value types. But how can I find out the size of an instance of a class object?
Thanks,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the...
Normally, the CString array should distroy itself if you do not add members with new or malloc. (e.g. it is on the stack)
But in order to avoid all this mess, I suggest you use the CStringArray class instead of an array of CStrings. You will find it more conveninent and you do not have to know...
sorry about the above post. I forgot that the compiler does not allow operator overloading for simple types.
For example the MS VC++ compiler will complain with this error:
error C2803: 'operator ==' must have at least one formal parameter of class type
therefore you must wraap everything in...
or you can overload the == and != operators for const char*(u_char*) comparison and use the existing code.
HTH
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
http://www20.brinkster.com/ionelb
1. The above signatures function should be:
void DestroyAttribs(Attrib_node** np) or
void DestroyAttribs(Attrib_node*& np)
You are passing the np pointer by-value. Then when the function exits, the np pointer WILL NOT be NULL even though you make np=NULL. (rememeber the passing by-value...
The feature you want to use is called "splash screen".
Look for the below topic in MSDN and study the supplied splash screen
SUPERPAD: Demonstrates a Visual Editing Server That Edits Text Using CEditView
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.