reasons for choosing com
hey, i was wondering why one would choose Com as his software development "technology" my first though is machine/programming _language independence what's yours ? ...
hey, i was wondering why one would choose Com as his software development "technology" my first though is machine/programming _language independence what's yours ? ...
What books can you recommend for learning Java for a C++ programmer? Also what do you recommend to read for learning JVM features for using JVM-based languages effectively? ...
Hi, I'm playing at the moment with bits and was looking at microsoft code for io states and discovered something like this: enum _Iostate { // constants for stream states _Statmask = 0x17};//What is this mask for??? static const _Iostate goodbit = (_Iostate)0x0; static const _Iostate eofbit = (_Iostate)0x1; static const _Iostate fail...
Hi, I need to make a message concating various parts. So I used ostringstream. Now I have a std::string or a const * char to send by mailslot. I have tryed many ways to do it but every time I receive wrong messages. I would like to know a solution to send messages by mailslot and receive it and show it by console. My code to generate an...
It seems to me Google's alternatives to exceptions are GO: multi-value return "return val, err;" GO, C++: nil checks (early return) GO, C++: "handle the damn error" (my term) C++: assert(expression) Is multi-value return useful enough to act as an alternative? Why are "asserts" considered alternatives? Does Google think it O.K. if a...
Hi, I'm writing Qt client for ASP.NET web service with FORMS based authenitcation. The service consists of 3 methods: Login(user,pass) Helloworld() - this method returns info oabout athenticated user. Logout() Every thing working fine on the dot.net client with CookieContainer. The problem begins with HelloWorld() methods. it return...
Lately as part of my day job I've been learning IBM Rhapsody and using it to generate code in C++ from the UML. Yesterday it struck me that it might be cool to think about adding state machine support to my C++ compiler, so I jotted a few notes here: http://ellcc.org/wiki/index.php/State%5Fmachines%5Fand%5FActive%5FClasses My motivatio...
In a .cpp file, is there any difference/preference either way? // file scope outside any namespace using X::SomeClass; typedef SomeClass::Buffer MyBuf; v/s namespace { // anonymous using X::SomeClass; typedef SomeClass::Buffer MyBuf; } ...
Hi I'm developing a game and I need to find a way of getting the value of a certain 'map block' in the game (in char format). I have a class DisplayableObject which takes care of all sprites, and a sub-class ThreeDCubePlayer which takes care of the player object. For ease of rendering/updating everything, all DisplayableObjects are stor...
I want to create a Qt widget that can play incoming RTP streams where the video is encoded as H264 and contains no audio. My basic plan for implementation is this: Create a Phonon MediaSource object (Stream type). Connect it with a QIODevice subclass that provides the data Obtain the video data using either: The JRTPLIB client librar...
On a cross-platform project, I want to #include a header file whose name contains the name of the platform. I have a #define macro for the platform. So for example, for #define PLATFORM win32 I want #include "engine\win32\devices_win32.h" while for #define PLATFORM linux I want #include "engine\linux\devices_linux.h" I'm g...
Hi, I've seached around how to create a pop up menu in a SDL window application using c++ ? I haven't found any clues ! I would like to have something that looks like this : http://www.youtube.com/watch?v=Mc%5FCE9OiHvA I've tried to use glutMenu, but it doesn't work ... Thanks ...
I am writing code that opens an istream object on a file specified by the user. I want to be able to run the program in the debugger and just type the filename (eg data.txt) at the prompt, not the whole path. I haven't worked out how to do this inside the IDE so I have been saving my .txt file to the debug folder and running the .exe fil...
I am building a string of int values, stored in a wchar_t*. If I have an integer, how can I append it onto the end of a wchar_t*? Windows only solutions are fine for this and I'd rather not include boost :) ...
Hello, I am writing a software that grabs a password using std::cin However unlikely, i am trying to avoid the possibility that the password get paged to the disk from memory so I want to modify the buffer of std::cin to overwrite the password as soon as I'm done with it. right now i have this: std::cin.clear(); std::stringstream ss;...
I have a template based class [Allotter.h & Allotter.cpp]: template <typename allotType> class Allotter { public: Allotter(); quint32 getAllotment(allotType*); bool removeAllotment(quint32, int auto_destruct = 0); private: QVector<QPair<quint32, allotType*>> indexReg; int init_topIndex; }; and it's usage is shown as [ActiveListe...
I'm trying to find out how to do this, I'm currently using CreateToolHelp32SnapShot to get a list of the running processes and I've got the FilePaths of the executables which are currently running, but I need to be able to find out what command line options were used to start the process. I know its possible since you can see it on Proc...
Hi, I am currently starting to look into operator overloading in c++ for a simple 2D vertex class where the position should be available with the [] operator. That generally works, but I dont really know how to deal with errors for instance if the operator is out of bounds (in the case of a 2D vertex class which only has x and y values,...
Hi,this is also a continuation from my linked list questions I did not get the answer regarding delete. When delete is called is the actual value deleted or is it just the pointer to it? For my question this time is about the clone() and list_copy() functions. What I want to do with those function is to; first call the list _copy() t...
I am trying to find a name within a key. I think it is retrieving it fine. however, its coming up as not found. maybe my code is wrong somewhere? if (database.retrieve(name, aData)) // both contain the match in main() static void retrieveItem(char *name, data& aData) { cout << ">>> retrieve " << name << endl << endl; if (database.re...