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

    Validate date/time

    a little more info... the date/time string should be in the following format... yyyy/mm/dd hh:mm:ss If the value in my string is not in that format, then it is not valid for my purposes. How can I verify that the value in the string is in the format "yyyy/mm/dd hh:mm:ss"?
  2. mangocinn

    Validate date/time

    Not sure I understand completely...
  3. mangocinn

    Validate date/time

    I have a string (std::string) that needs to be checked to see if the value in the string is a valid date/time. What is the best way to validate a date/time in C++.
  4. mangocinn

    ADO recordset created using arrays?

    Can an ADO recordset be created using arrays? If so, how. I have only created ADO recordsets with data from a database...and this was in VB. I am trying to avoid creating a temporary table. More details: const std::vector< std::vector< std::string > > &myData. I want to get myData into a...
  5. mangocinn

    split std::string into vector of std::string

    Thank you very very much uolj. It works beautifully. I had been trying '\r\n' and that was not working. THANK YOU!!!
  6. mangocinn

    split std::string into vector of std::string

    Ok, the code the uolj posted above works... however I am running int another problem related to this. It appears that the lines of a CRichEditCtrl are not separated by the newline character (\n). I assumed they were....but found out that is not the case. So, what is the character that...
  7. mangocinn

    split std::string into vector of std::string

    Thanks everyone!!
  8. mangocinn

    split std::string into vector of std::string

    Kevin, There is no split function to my knowledge. Visual Basic had one and that is what I did when I coded with VB. I am new to the C++ world. No, I am not reading it from a file. It is coming from an edit box on a dialog. However, this could be very large.
  9. mangocinn

    split std::string into vector of std::string

    How is this done in C++? I have std::string that has newline characters in it. I want to split the string into a vector of strings. I want to split everytime I see the newline character. How can this be done? Thanks.
  10. mangocinn

    idl/odl

    A little more info... I am creating a dll (not an exe). Does this make a difference?
  11. mangocinn

    idl/odl

    What is the difference between an idl file odl file? Btw, I am working with Visual C++ using MFC. I have a odl file in my project...but the type library is not being created. How does it know to create the tlb file? Do I specify it in my mak file or something? Please help... Thanks.
  12. mangocinn

    un include

    jstreich, Thank you. I know, it is kindaa overkill. In the same breath, the creation of this object is important and nothing else will work w/out it so it must be handled appropriately in a error situation. I have to do it... it is not really my decision.
  13. mangocinn

    un include

    Ok... Let me tell you what I am trying to accomplish so that it is more clear. I have a test driver that tests the software (a dll with 3 classes) that I had written. In my test driver, I need to simulate the occurence of a null pointer (a private member attribute that gets set when a...
  14. mangocinn

    edit control in different class

    Yes, timmay thanks.... that is what I ended up doing.
  15. mangocinn

    un include

    This may be a strange question... From a client application, is there a way to uninclude a file that was included in the header file of a class that is being used by the client?
  16. mangocinn

    edit control in different class

    timmay, Yes I am using the GetDlgItemText on the class B object. Here is the code that I use within my class A function. classB dlg; INT_PTR dlgResponse = dlg.doModal(); if (dlgResponse == IDOK) { char localDir[128]; dlg.GetDlgItemText(IDC_MY_EDIT, localDir, 128); } I think I know...
  17. mangocinn

    edit control in different class

    Hi. I want to retrieve the value of an edit control from a class that is different from the one that is controlling the dialog. Class A displays dialogB controlled by Class B. EditControl is in dialog B. When I use GetDlgItemText from Class B OnButtonClick event I can retrieve the value of...
  18. mangocinn

    optional parameters

    Thank you very much uolj!
  19. mangocinn

    optional parameters

    In C++, how do I declare a function that has an optional parameter? I searched the knowledge base and was not able to find anything about optional parameters. Does setting the default value of the parameter in the function declaration automatically make it optional? void MyFunction(const...
  20. mangocinn

    memory allocation

    Thanks timmay!

Part and Inventory Search

Back
Top