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

    Testing if a string contains a numeric value?

    Hi, I want to be able to test if a string is numeric. Kind of like the isNumeric() function in VB6. Has anyone got any ideas how to go about this? Ive tried using isdigit() and isalnum() but both require an int as a parameter and i want to test a string. Thanks alot PS It has to be portable...
  2. VBDotNetProgrammer

    Avoiding memory leaks when deleting objects from a vector?

    Thanks guys, most informative as ever! CRule(vRules[i]) is the constructor of the object i am creating and as you can see it is only being called in the vector and as a result I should hopefully not have to do anything about it. Smart pointers? Does anyone have any good links? Thanks
  3. VBDotNetProgrammer

    Avoiding memory leaks when deleting objects from a vector?

    Hi, Im concerened with memory leaks when deleting objects from vectors i.e. I am adding objects to the vector like such <code> for(i = 0; i < vRules.size(); i++) { _vRules.push_back(CRule(vRules[i])); } </code> What would be the correct way to delete the object in that vector? Im...
  4. VBDotNetProgrammer

    Problem with stricmp function..

    Ah thats just what im after thanks! Shall I just abandon caseless comparisons?
  5. VBDotNetProgrammer

    Problem with stricmp function..

    Another quick question, what is the best way to do caseless string comparisons under GCC?
  6. VBDotNetProgrammer

    Probs with GCC and Static class member functions...

    Hmm for some reason I seem to have double posted. ArkM: Believe it or not it was VC++6! lol GCC seems to bring up loads of warnings about things such as comparisons between signed and unsigned int's so on the whole seems a lot strickter (which can only be a good thing) Rgrds
  7. VBDotNetProgrammer

    Problem with stricmp function..

    Hi, Thanks for that. Do any of you know where i can look up only standard C++ libraries etc? Thanks
  8. VBDotNetProgrammer

    Probs with GCC and Static class member functions...

    This problem is fixed, basically I ommitted it from the above example but i preceded the class definition with static i.e. static CXMLParser { and that was the cause. For thos of you who may be interested. Rgrds
  9. VBDotNetProgrammer

    Probs with GCC and Static class member functions...

    This problem is fixed, basically I ommitted it from the above example but i preceded the class definition with static i.e. static CXMLParser { and that was the cause. For thos of you who may be interested. Rgrds
  10. VBDotNetProgrammer

    Problem with stricmp function..

    Hi all, Im having a problem with the stricmp() function. Ive been using it in VC6 and it is recognised, however I am getting this error under GCC. error: `stricmp` undeclared (first use this function) Does this just mean that the stricmp function does not exist in the unix version of the...
  11. VBDotNetProgrammer

    Probs with GCC and Static class member functions...

    Haha no its perfectly fine with the c++ it just doesnt seem to like my use of static. Any thought from someone? Come on guys im desperate and I dont want to revert back to the non-static design as this saves mem because quite a few objects make use of this functionality. Thanks
  12. VBDotNetProgrammer

    Probs with GCC and Static class member functions...

    Hi all, Im having trouble compiling an application which compiles fine under VC6 but not with GCC. The error im getting is: Xml.h:34: error: `static' can only be specified for objects and functions make: *** [main.o] Error 1 The offending piece of code is: class CXMLParser { public: static...
  13. VBDotNetProgrammer

    Monitoring the memory footprint of an application?

    Great, Thanks for that i shall take a look.
  14. VBDotNetProgrammer

    Monitoring the memory footprint of an application?

    Hiya, Im writing an application which is intended for the embedded market and as a result have quite severe memory constraint with which to consider. Does anyone know the best way to monitor the memory usage of the application accurately. Other than looking at the windows task manager which...
  15. VBDotNetProgrammer

    Recursive class definitions?

    Hi guys thanks for the replies. Im busy writing a fuzzy logic based inference engine and needed a way to represent some rules which were recursive in nature as objects within the system. When i say recursive I mean these rules obviously consist of antecedents and consequents. Both of which can...
  16. VBDotNetProgrammer

    Recursive class definitions?

    Hi All, Im trying to write a class which contains itself as a private member, kind of like a recursive class definitions. i.e. class COperator { private: COperator _operator; public: COperator(); ~COperator(); }; Ive tried putting a prototype above it and it doesnt like that. It...
  17. VBDotNetProgrammer

    Performing a group by query on a datatable?

    Ah no sorry, i meant data stored in a vb.net data.datatable object. Rgrds
  18. VBDotNetProgrammer

    Performing a group by query on a datatable?

    Hi, I would like to perform an equivilent to a group by query on a Data Table object. Is this possible and if so could someone please give me a small demo of how it would be done? Thanks
  19. VBDotNetProgrammer

    Extracting Meta Data from a DataSet/Table?

    Thanks a lot, i will try that.
  20. VBDotNetProgrammer

    Extracting Meta Data from a DataSet/Table?

    Hi, Thanks for that. I dont suppose you could give me a bit of code to say look at the size of a column in a datatable could you?

Part and Inventory Search

Back
Top