Win32 API to do wildcard string match
Hello, I am looking for a wildcard string match API (not regex match). I cannot use anything other than Win32 APIs. ...
Hello, I am looking for a wildcard string match API (not regex match). I cannot use anything other than Win32 APIs. ...
When I compile this code in Visual Studio 2005: template <class T> class CFooVector : public std::vector<CFoo<T>> { public: void SetToFirst( typename std::vector<CFoo<T>>::iterator & iter ); }; template <class T> void CFooVector<T>::SetToFirst( typename std::vector<CFoo<T>>::iterator & iter ) { iter = begin(); ...
Hi guys, I'm looking to use the "Microsoft Web Browser" ActiveX control in an MFC app, but we need it to be IE6 in order to support legacy stuff and all that not-so-fun stuff. The systems that it will be deployed upon, however, may have IE7 or IE8 installed. I'm not much of a COM/ActiveX guy, although I know my way around C++ and MFC. ...
I'm profiling some APIs to see which one is suitable for this project. I want my Qt app to connect to a database over an internet connection. Can Qt do this with the client application alone or do I need to write a server app to sit on the database server and transact the queries? ...
I have a C++ struct struct UnmanagedStruct { char* s; }; and a C# struct struct ManagedStruct { [MarshalAs(UnmanagedType.LPStr)] string s; } the C++ library exposes extern "C" UnmanagedStruct __declspec(dllexport) foo( char* input ); And it is imported like [DllImport("SomeDLL.dll", CharSet = CharSet.Ansi)] static ex...
I had this problem happen to me in the past http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.19 My question is, when writing Foo x(Bar()); Why is it "declaring a non-member function that returns a Bar object" ? i can understand it if i wrote Foo x(Bar); But what does it think the () means in Bar()? ...
What is the difference between event objects and condition variables? I am asking in context of WIN32 API. ...
Hi, I want to build an app that does the following: 1) Take a user-supplied PHP script and pass it to the PHP interpreter to execute it. 2) Take the output, whether it be from memory or a temp file, and pass it to a Web Browser hosted in the app, to show the HTML 3) Handle the http requests I.E. the user's clicks, so instead of making...
Is there a C library version of the C++ std::map in a standard library? ...
Hello, I'm building a simple interpreter of a language that i'm developing, but how i can do a cout of something that is after a word and in rounded by "", like this: #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main( int argc, char* argv[] ) { if(argc != 2) { cout << "Err...
Hello, I want to take an interest in writing my own simple emulator for the z80 processor. I have no experience with this type of programming. I am mostly fine with using c-based languages as they are the ones I know best. If anyone could please tell me what I need to accomplish this and give me some good tutorials/references that could ...
Hi all, I have my templated container class that looks like this: template< class KeyType, class ValueType, class KeyCompareFunctor = AnObnoxiouslyLongSequenceOfCharacters<KeyType>, class ValueCompareFunctor = AnObnoxiouslyLongSequenceOfCharacters<ValueType> > class MyClass { [...] } Which means that ...
I am currently attempting programming for a serial connection (RS232) through the COM1 port, using hardware handshaking. The OS is Windows XP 32, and I was planning on using C++ to program this (using the .NET serialport class). However, the only way I can currently conceive of doing it is by having a minor program running on start-up, w...
Hello, I am am new to mobile app development. But i would like to know if this is possible to intercept incoming calls on my N73 using code like Java or C++? My second question is if this is possible then can we prevent the phone from ringing with a specified phone number from a black listed contact??? I've seen a lot of apps doing thi...
Hi, I'd like to do some network socket programming in C++ and have found the C++ Sockets library. First, is this a good way to go in C++? Normally in C, I'd use some of the stuff beej describes in his tutorial. Second, how do I compile the examples given on the site? I can't figure it out from their installation/configuration guide. ...
I hardly find a good resource about the subject. Almost all books and websites I know give a simple introduction about streams in C++ and that's it! Would you recommend a good book or tutorial to learn more about standard streams in C++ ? ...
In my application there's the main thread and a worker thread (QThread). From the main thread I'd like to invoke a method of my worker thread and have it run in the thread's context. I've tried using QMetaObject::invokeMethod and give it the QueuedConnection option but it's not working, I've also tried emitting signals from the main thre...
As you may know C/C++ does not specified expression evaluation order. What are the reasons to left them undefined. ...
Since C++ lacks the interface feature of Java/C#, what is the preferred way to simulate interfaces in C++ classes? My guess would be multiple inheritance of abstract classes. What are the implications in terms of memory overhead/performance? Are there any naming conventions for such simulated interfaces, such as SerializableInterface? ...
I've written a small program that utilizes the Fast Light Toolkit and for some reason a compiler error is generated when trying to access the functions in the cmath header. Such as error ::acos has not been declared. This goes on for pretty much every function it tries to use in the header. What could I be missing? The header files I ...