I think what you want to do is define the conversion from a Regex to a string, instead of overloading the assignment operator.
It must be a member function of the Regex class with a signiture...
Type: Posts; User: skiingwiz
I think what you want to do is define the conversion from a Regex to a string, instead of overloading the assignment operator.
It must be a member function of the Regex class with a signiture...
I believe that's an XNOR gate.
How about "true || true && false"
(true || true) && false => false
true || (true && false) => true
That example evaluates to true regardless of which operator has precedence.
( (true && false) || true ) == true
( true && (false || true) ) == true
For the curious, tilex is correct, the implementation must go in the same file. I think that this is a Visual Studio problem and I believe that this is why: MSDN Knowledge Base
I would like to do something like the following:
template<class T>
class BaseClass
{
public:
BaseClass(void);
//....
}
Thanks
That is what I am trying now, it doesn't seem to be working, no matter how far back I seek, it just starts to write at the end of the file. I believe the problem is that I was opening the file in...
That is a pretty good temperary solution major_small. Thanks. I am still holding out hope that there is a way to do it without going through the entire file.
Sorry, I should have been more specific. I need to remove the last line and then continue to add output to the file.
Basically, I am writing an XML file and I have to write the closing tag...
I need to remove the last line of a text file. The last line is always the same, but the files could be very large so copying the file to a container and writing out all lines but the last is not an...
Yes, I am, that is why it is so puzzling to me.
#define IDD_PREFS_DIALOG 101
(of course MSVC did this for me, but still, it is there)
I am trying to show a dialog that I have created in reasource editor (without using MFC). I call CreateDialog like this.
det.hwnd = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_PREFS_DIALOG),...
groan... Thanks for the suggestion of the 5 minute break... this one was embarrassingly obvoius. In my OnInitDialog I was calling the function to fill the CListCtrl before I was creating the...
hmm... That didn't do it. And oddly enough, in the other CListCtrl I have (that does work), I didn't need to specify that subitem index when I created the columns. Thanks anyway :)
<edit> In...
I have a CListCtrl in report view. When I try
int index = prefsD->m_CcontactList.InsertItem(0,entry->name);
prefsD->m_CcontactList.SetItem(index, 1, LVIF_TEXT, entry->real_name, 0, 0, 0,...
WinXP
MS Visual C++ 6
I would like to turn off the screensaver, if it is currently running. I have found these two functions, but neither of them seem to work.
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE,...
Is there a way to register a new caption button so that it shows up on all windows?
I want to add a caption button to all windows that will cause the window to "maximize" to either the left or...
Thank you VERY much, that was an extremely quick reply. :)
I am relatively new to windows programming and this is my first attempt at using winsock, but this error has me baffeled.
Using MSVC++ 6.0
I #include "winsock2.h" but I get unresolved external...
You are absolutely correct... That is completely illogical. I realized that last night about a half an hour after I posted.
Thanks for the replies though.
I am making a templated class for a linked list in Visual C++ 6.0. Everything works fine until I put the static keyword in front of "int length;" I get the following error "error LNK2001:...