virtual

Is there a way to flag (at compile time) "overriden" methods whose signatures don't match base signature?

Basically, I want the C# compiler functionality of its override keyword in my C++ code. class Base { virtual int foo(int) const; }; class Derived : public Base { virtual int foo(int); // wanted to override Base, but forgot to declare it const }; As we all know, the above code will compile fine, but yield some strange runtime be...

Running Selenium Tests in Virtual PC

I am creating test scripts in Visual Studio IDE using Selenium RC and executing them thru NUnit. In order to run these tests on Virtual PC, what would I need to do. What all would I need to have on the Virtual machines? Only NUnit or even Selenium? If anybody has any experience setting this up and executing the test I would appreciate ...

Apache on localhost: give virtual hosts specific servers name

Hi, Ok, I ask my question first and below are details of what I have so far trying to solve the thing: On Apache running on localhost, I want to have different virtual hosts that would be accessible through url: http://name-of-the-virtual-host.name-of-the-machine/ Details: So I have Apache running on port 8080 of my laptop. Linux Min...

No "add esp,4" for virtual functions returning std::string

I've been looking at DynObj and decided to do my own experimentation with vftables. I'm working with Visual Studio 2010 and created a console main that instantiates an object with a virtual function that returns an std::string. The test code in main attempts to call the object's public virtual function using a pointer obtained from the...

How is C++ VIRTUAL function not redundant?

Possible Duplicates: Overriding vs Virtual How am i overriding this C++ inherited member function without the virtual keyword being used? I am learning C++ at this moment, but I'm not completely in the dark when it comes to programming languages. Something makes no sense to me. My understanding is that a VIRTUAL function in ...

preconditions for a 64Bit virtual system

I just need to install Windows 2008 64Bit on a virtual machine. How to??? Do I need a special type of processor? Do I need a "special" virtualization tool? Actually installation fails on startup with the message that the CPU is not able to handle a 64Bit system. host system: Windows 7 64Bit CPU: Pentium D (seems to be Smithfield 805) ...

C++ is Virtual destructor still needed if there are no data members in derived?

Suppose I have this code class Base{ public: int getVal(); private: int a, b; }; class Derived::public Base{ public: void printVal(); }; int main(){ Base *b = new Derived(); delete b; } I know a virtual destructor would delete things properly, but is it bad to delete with base pointer (w...

virtual network adapter - accessible from lan

Hello all, I would like to install a virtual NIC (like the Microsoft Loopback Adapter) which is accessible from the lan. Very similar in concept to what vmware player does (in the sense that its virtualised network adapter looks like it's physically plugged into the lan). Thankyou, Fidel p.s. I know it's possible to bind multiple IP ...

How can I run vmware server (or equivalent free vmmachine server) on a cluster of several machines?

I would like to create a cluster of computers in order to run a virtual machine server (preferably vmware) as if the cluster were 1 big machine. What software and OS do I need for this and how do I need to configure it? Is there a way to balance the load of any applications over a cluster or do applications need to be built in a certain...

Installing OpenX on Virtual Machine

I am a web developer working with a server admin to install OpenX Source on one of our virtual machines (Windows). We have tried several methods including the following: Creating a virtual directory called "openx" and installing the files exactly as they came from the OpenX ZIP file. We are still unable to pull up the index.php file in...

Allocate Virtual memory before running out of RAM

is it possible, in a C/C++ program, to allocate virtual memory (Swap Space) for an specific array, so that the program keeps using RAM for the rest of variables, and maybe getting some benefit at some type of problems?? ...

how to move ball vibrate device?

who explain this show with programming theory?. i want to learn this show. Also how to move ball if you vibrate phone or computer? http://apps.facebook.com/sanalvideo/izle.php?id=6776 ...

"Virtual" and Header Files

I have Foo.hpp and Foo.cpp, i'd like to define a virtual function virtual void setValue(int val){ } Would the following implementation be correct: Foo.hpp #ifndef _FOO #define _FOO class Foo{ public: Foo(); virtual void setValue(int val); }; #endif Foo.cpp Foo::setValue(){ } I realise it would be easier if i kept it...

Should methods that implement pure virtual methods of an interface class be declared virtual as well?

I read different opinions about this question. Let's say I have an interface class with a bunch of pure virtual methods. I implement those methods in a class that implements the interface and I do not expect to derive from the implementation. Is there a need for declaring the methods in the implementation as virtual as well? If yes, why...

Determine Page Table size for Virtual Memory

Consider a virtual memory system with a 38-bit virtual byte address, 1KB pages and 512 MB of physical memory. What is the total size of the page table for each process on this machine, assuming that the valid, protection, dirty and use bits take a total of 4 bits, and that all the virtual pages are in use? (assume that disk addresses are...

Update an href on an IHTMLLinkElement

I need to update the contents of an href on an IHTMLLinkElement. What I've come up compiles but causes an error as soon as it's execute static const CComBSTR href(L"http://www.google.com"); spLinkElement->put_href(href); // IHTMLLinkElement The error I get is Program: C:\Program Files\Internet Explorer\IEXPORER.EXE File: c:\program ...