To Disable the multimedia contents in IE
I need to disable the multimedia contents in IE Programatically. Is there any way my programming environment is VC++ ...
I need to disable the multimedia contents in IE Programatically. Is there any way my programming environment is VC++ ...
I was curious why C++ isn't offered as a code-behind language for ASP.NET applications? ...
Hi guys, Can one of you explain why the following piece of code does not compile? #include <iostream> using namespace std; class Foo { public: Foo() { cout << "Foo::Foo()" << endl << endl; } Foo& operator=(const Foo&) { cout << "Foo::operator=(const Foo&)" << endl << endl; } private: Foo(const Foo& b) { *this = b; cout << "Foo:...
I'm having some strange issues building and running a project on another computer. It's a side-by-side error. Usually the cause is that c++ redistributable is not installed on the machine etc. However in this case the project is compiled on that machine. MSVC++ 2005 is installed, the runtimes should be there (I installed the runtime ...
Hi, I'm writing a multithreaded app. I was using the boost::interprocess classes (version 1.36.0) Essentially, I have worker threads that need to be notified when work is available for them to do. I tried both the "semaphore" and "condition" approaches. In both cases, the CSwitch (context switch) for the worker threads seemed very h...
I am following a book to learn C++ (come from a python background). I've written this, which works: class CatalogueItem { public: CatalogueItem(); CatalogueItem(int item_code, const string &name, const string &description); ~CatalogueItem() {}; bool operator< (const CatalogueItem &other) const; ...
There are such code. float b = 1.0f; int i = (int) b; int& j = (int&)b; cout<<i<<endl; cout<<j<<end; Then the output of i was 1, and the output of 1065353216! It's a big surprise to me! So what's the truly meaning of (int&) conversion in C++. Any help or hints are very appreicated! ...
Hello, I'm creating an IStream as follow: IStream* stream; result = CreateStreamOnHGlobal(0, TRUE, &stream); Then I have a CImage object that I save to this stream: image->Save(stream, Gdiplus::ImageFormatBMP); I need to get the size of bytes written to this IStream. How can I do this? There is no Length or something like this in...
Hi, I have a problem with glut, I would like to have a callback to know when the user is moving the window of my application, and I didn't found anything in glut. My goal is to make an application only on windows, is it possible to do this with MFC keeping my glut code? Thanks in advance ...
Hello all, We have a C++ Win32 application which spawns, using Qt's QProcess (undoubtedly a wrapper for CreateProcess()), a secondary 'slave' program. Unfortunately, when debugging the system with Visual Studio 2008, the debugger does not autoamtically attach to the spawned process. I know it's possible to programatically trigger a de...
Okay so i am trying to convert some projects into DLL's. These are all visual studio 2008 projects, and are all written in C++. We have 9 different projects(all under 1 solution in Visual Studio 2008). E.g.: RasterTools\ RasterDataset.h RasterDataset.cpp Point.h Point.cpp <... insert like 50 more cpp files ...> CoreTools\ Image...
I'm trying to compile beej's guide to network programming examples, but Windows XP doesn't have such a function. I'm using mingw, if it makes any difference. ...
I'm obviously not quite getting the 'end-of-file' concept with C++ as the below program just isn't getting past the "while (cin >> x)" step. Whenever I run it from the command line it just sits there mocking me. Searching through SO and other places gives a lot of mention to hitting ctrl-z then hitting enter to put through an end-of-fi...
I'm aware that each process creates it's own memory address space, however I was wondering, If Process A was to have a function like : int DoStuff() { return 1; } and a pointer typedef like : typedef int(DoStuff_f*)(); and a getter function like : DoStuff_f * getDoStuff() { return DoStuff; } and a magical way to communicate wit...
I have a C++ library that generates much larger code that I would really expect for what it is doing. From less than 50K lines of source I get shared objects that are almost 4 MB and static archives pushing 9. This is problematic both because the library binaries are quite large, and, much worse, even simple applications linking against ...
I'm making a template wrapper around std::set. Why do I get error for Begin() function declaration? template <class T> class CSafeSet { public: CSafeSet(); ~CSafeSet(); std::set<T>::iterator Begin(); private: std::set<T> _Set; }; error: type ‘std::set, std::allocator<_CharT> >’ is not derived ...
Hi i have to port some stuff written on c++ from unix bases os to windows visual studio 2008. The following code implements array data type with void ** - pointer to the data. struct array { int id; void **array; // store the actual data of the array // more members } When i compile with g++ on Unix it's ok but when i try...
I need to convert this code (in C++) into Java code : short i; short j; short k; short result; unsigned short m_table[ 256 ] for ( i = 0 ; i < 256 ; i++ ) { k = i << 8; result = 0; for ( j = 0 ; j < 8 ; j++ ) { if ( ( result^ k ) & 0x8000 ) res...
Is there a free library that has the same features of Java's Robot class for C++? http://java.sun.com/javase/6/docs/api/java/awt/Robot.html ...
I'm working on a mobile application for Symbian 5th edition using OpenGLES. This application is a pretty standard 2D app, and I make no use of the DepthBuffer. I need to grab a snapshot of the display and then draw the very same snapshot back to the backbuffer. I'm using glReadPixels((GLint)0, (GLint)0, (GLint)nWidth-1, (GLint)nH...