Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gmmastros on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. IonelBurtan

    Productivity & Quality...

    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...
  2. IonelBurtan

    Is statement not working

    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...
  3. IonelBurtan

    Stranger exception at startup

    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...
  4. IonelBurtan

    Struct def TypeLoadException

    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...
  5. IonelBurtan

    Create DLL of a C++ Object

    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...
  6. IonelBurtan

    How to get the max value in ENUM

    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-)...
  7. IonelBurtan

    Accessing protected members

    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...
  8. IonelBurtan

    Copy .exe itself to the system dir c:\windows\system32

    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
  9. IonelBurtan

    How to set color in each item in CCombobox

    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
  10. IonelBurtan

    simple question

    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
  11. IonelBurtan

    simple question

    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...
  12. IonelBurtan

    simple question

    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...
  13. IonelBurtan

    simple question

    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...
  14. IonelBurtan

    simple question

    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
  15. IonelBurtan

    simple question

    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...
  16. IonelBurtan

    Memory leak from type structure created with new

    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...
  17. IonelBurtan

    Map Structure not Recognizing Repeat Keys

    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...
  18. IonelBurtan

    Map Structure not Recognizing Repeat Keys

    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
  19. IonelBurtan

    Memory leak from type structure created with new

    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...
  20. IonelBurtan

    waiting when executing program

    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...

Part and Inventory Search

Back
Top