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"?
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++.
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...
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...
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.
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.
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.
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.
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...
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?
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...
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...
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...
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.