is there is any indexer other than lucene
Possible Duplicate: Which are the best alternatives to Lucene? hello, is there is any other indexer other than lucene compartable with java /c++ ...
Possible Duplicate: Which are the best alternatives to Lucene? hello, is there is any other indexer other than lucene compartable with java /c++ ...
Hi everyone, I have developed my first COM component (yes, a newbie in the realm of COM development), initialization is done with COINIT_MULTITHREADED. Also, this COM component is a local server executable. But, I did not add any synchronization code to this component. What do you think: do I have to add CRITICAL_SECTIONs to code or MS C...
Hi, I am looking some info about reentrancy, then I encountered about signal and thread. What is the difference between the two? Please advice. Many thanks. ...
In C there're c89 and c99,what about c++? Is there any upgrade since it comes out? ...
Hi I have a method in my process that should be run only if the process is not in background. How can I dynamically test if the current process is in background ? Thanks ...
In C++, how can I get the receiver address of the UDP packet which I have received using recvfrom. I know that it should be the same host on which I am receiving the packet, but I need to extract it from the received packet, in order to verify something. How can I do this? I found that one way of doing this is: int r = getsockopt(r...
I hear that spirit is really fast at converting string to int. I am however unable to create a simple function that can do so. Something like int string_to_int(string& s) { /*?????*/ } Can anybody use boost spirit to fill in this function. By the way I am working on boost 1.34 and not the latest version. ...
Seems all compilers can deal with both c and c++,like gcc ,msvc... Is it because these 2 languages are exactly very much alike? ...
When implementing singletons in c++, I see two ways to store implementation data : (A) put all implementation data in the private section and implement class as usual (B) "pimpl idiom for singletons" : hide implementation data by placing it to the 'Impl' structure, which can be defined in the implementation file. Private section conta...
I wrote this interface: //The idea is to use EHPrint to construct the error msg and then raise an error or //a warning, etc. This removes the need to implement all 3 'Raise' functions //as taking variable param list reducing code. class ErrorHandler ...
I am trying to use Glut in C++, but I am having issues when I try to put my display function within the Renderer class. The error i have is: error C2227: left of '->display' must point to class/struct/union/generic type So far I have the following : class Renderer { public: Renderer *gRenderer; ... } int Renderer::start(Rendere...
I solved the N- Queen problem with the condition that there can only be one queen per column. So I place a queen in a square in first column, then move onto the next column and place a queen in a square not attacked by the queen on board. I am able to find all solutions with this approach but it starts taking a long time after n=13. Also...
Hi, I am using a Mac OS X 10.6 machine. I have OpenCV 2.1 x64 compiled from source using Xcode and its GCC compiler. I am having trouble using the C++ video reading features of OpenCV. Here is the simple test code I am using (came straight from OpenCV documentation): #include "cv.h" #include "highgui.h" using namespace cv; int main(...
the following code throws an exception in C++ and catch in C# C++ throw std::exception ("a C++ exception"); When i catch in C#, it gives me the following: [SEHException (0x80004005): External component has thrown an exception.] here is how i call the C++ code using Foo.Bar.Sample; //C++ library .... Class1 class1 = new Class1()...
For example: int main() { { // I want this array to be part of the inner scope string s[] = {"Ben","Joe","Bob","Matt"}; // And I want to use it to initialize this vector, but I want this // vector to be visible in the outer scope vector<string> names(s,s+4); } } Is there any way to do t...
I'm using WinFax.dll to send and recieve faxes in my application and it works rather well for now. The problem is that I want to Save the image information in a FaxJob but the output is not any recognizable format. I have tried with Tiff, Gif, Bmp, Png and Jpg but it is not working so I thought maybe there is a problem in how I do it. ...
I have a thread which creates COM objects that use the STA model. This thread's Run function puts it in an infinite WaitForMultipleObjects. Is it possible that the infinite WaitForMultipleObjects could prevent other threads from marshaling calls to the COM objects owned by this thread? Basically, I'm asking if WaitForMultipleObjects ...
I am using the same UDP socket for sending and receiving data. I am wondering if packet queuing for DGRAM sockets is already present, or do we have to handle it separately. If the user code has to handle queueing, how is it done? Do we have separate threads to recvfrom for the socket and put the packet in the reciver_queue and to sen...
Is there a trick to get the safe bool idiom completely working without having to derive from a class that does the actual implementation? With 'completely working', I mean the class having an operator allowing it to be tested as if it were a boolean but in a safe way: MyTestableClass a; MyOtherTestableClass b; //this has to work if( ...
I'm trying to make a tree of maps (or just have values of a map point to another map), but I'm not too sure how to approach this. I found a discussion about this: http://bytes.com/topic/c/answers/131310-how-build-recursive-map but I'm a little confused on what's going on there. For example, my key is a char, and my value is the next ma...