virtual

wilcard DNS and Virtual subdomains?

I just don't get it.. I'm planning to get scenario like this: username.mydomain.com = mydomain.com/user.php?user=username Well, let's not go that far yet because this wildcard DNS is making me insane!! :/ I have DNS record * A my-ip-address And I have in my vhost file ServerAlias *.mydomain.com But it just doesn't work at all.....

C++ call virtual method in child class

hi guys, i have the following classes: class A { protected: A *inner; public: .... virtual void doSomething() = 0; .... } class B: public A { ... void doSomething() { if(inner != NULL) inner->doSomething(); } ... } When I use inner->doSomething() I get a segmentation fault. What should I...

Import3DModel replaces the shape below

Hi, I am trying to place an image using Import3DModel. The object is getting placed but if let'z say I am giving the Latitude and logitude of the building, it replaces the building and place the 3-D object imported. Can any one please let me know how can I protect the shape below or in the orginal layer/tile and add the new shape on t...

Performance problem Loading Dataset inside a virtual.

Host Configuration: HP EliteBook 8530w 4G Ram Win7 Ultimate 64Bit RC SQL Server 2005 64bit Developer Edition Virtual: Windows Virtual PC 1G Ram allocated Integration Services installed Windows XP 64bit Up to date service packs and .Net framework through 3.5 SP1 Sharing the Gigabit network adapter of the Host I have a simple .Net ...

How to hack Virtual Table ?

Hi, I wanted to know how to change the address of Test() which is in Virtual table with that of HackedVTable(), void HackedVtable() { cout << "Hacked V-Table" << endl; } class Base { public: virtual Test() { cout <<"base"; } virtual Test1() { cout << "Test 1"; } void *prt; Base(){} }; class Derived...

How to compare two pointers to object by their most derived type?

I have a following class hierarchy: class Base{ .... virtual bool equal(Base *); } class Derived1: public Base{ .... virtual bool equal(Base *); } class Derived2: public Derived1{ } class Derived3: public Derived1{ } class Derived4: public Base{ } How I should write Base::equal(Base *) function such that compares Derived4 and similar...

how to programatically edit the cell value of a datagridview in virtual mode?

I have a DataGridView in virtual mode. I only implemented the CellValueNeeded eventhandler as described in http://msdn.microsoft.com/en-us/library/15a31akc.aspx. Implementing the rest of the events only seems needed when you want to be able to edit the cells manually. I would like to programatically edit a DataGridView cell value. I ...

Fine-grained sandboxing

Scenario: a program running in a byte code virtual machine like Java or Python, wants to evaluate (by compiling on the fly to byte code and then running) a function whose code was automatically generated or supplied from outside. The tricky bit is that the function's code is not trusted -- it may have been generated by a stochastic meth...

Alternatives to VMBed for rental of virtual XP machines?

VMBed.com allows you to rent Microsoft Windows machines by the hour and access them remotely using remote desktop (RDP) or VNC. This service is available for approx $1.20/hr and you must sign up for a minimum of $20/month subscription plan. What other on-demand, cloud-based desktops are available for rental, preferably without a subscr...

Accessing a method from a templated derived class without using virtual functions in c++?

How do I get around this? I clearly cannot make the value() method virtual as I won't know what type it is beforehand, and may not know this when accessing the method from b: class Base { public: Base() { } virtual ~Base() { } private: int m_anotherVariable; }; template <typename T> class Derived : public Base { public: ...

Virtual non-method members

Is something similar to this possible? This way it produces an error. class A { public: virtual std::string key; }; class B : public A { public: std::string key; }; int main() { A a; a.key = "Foo"; return 1; } ...

Using an abstract class to implement a stack of elements of the derived class

I have to do this for a basic C++ lecture at my university, so just to be clear: i would have used the STL if i was allowed to. The Problem: I have a class named "shape3d" from which i derived the classes "cube" and "sphere". Now i have to implement "shape3d_stack", which is meant be able of holding objects of the types "cube" and "sphe...

How to create a virtual network for an application

I'm creating a simple p2p application. To test this I'd like to be able to simulate a simple network of about 2-3 computers, such that each instance of the application thinks its on a different computer and talking with others over the network. I considered qemu, but haven't managed to get networking working using VDE or TUN/TAP. is thei...

httphandler filetype mapping requires virtual directory (or does it?)

I am using an httpHandler to pass all requests for *.gif files to an ashx handler. i only want to do this for requests to a sub-folder within the website. The website root is called 'demo' and the subfolder is called et. So, I add a web.config file to the et folder with an entry as follows: This is not enough to pass all *.gif reque...

FileUpload .net control and saving files to virtual folder on remote file server

I have a .net website that resides on a webserver running IIS 6.0 on win2k3 server. This includes a virtual directory that points via a UNC name to a file server. The "connect as" is set to use a service account in our AD domain that has access to the web application as well as write and modify to the file server folder. I am currentl...

C++ - "Member function not declared" in derived class

I have a problem in MSVC++ 2008 where VS2008 is throwing this compile error: error C2509: 'render' : member function not declared in 'PlayerSpriteKasua' Now, what's confusing me is that render() is defined, but in an inherited class. The class definition works like this: SpriteBase -Inherited By-> PlayerSpriteBase -Inherited By-> Pl...

Calculating % memory used on Linux

Linux noob question: If I have 500MB of RAM, and 500MB of swap space, can the OS and processes then use 1GB of memory? In other words, is the total amount of memory available to programs and the OS the total of the physical memory size and swap size? I'm trying to figure out which SNMP counters to query, but need to understand how L...

Non Blocking Keyboard on WinCE accessing the virtual keyboard

Hello Guys, I am desperately looking for a solution that enables me to read keyboard events in a non blocking way. These Keyboard events are generated by a VIRTUAL KEYBOARD that comes with the WinCE device. I have a console application running in C++, where the user is asked to navigate via 'ESC', 'U' and other characters through the me...

C++ virtual function table memory cost

Hi all, Consider: class A { public: virtual void update() = 0; } class B : public A { public: void update() { /* stuff goes in here... */ } private: double a, b, c; } class C { /* Same kind of thing as B, but with different update function/data members */ I'm now doing: A * array = new A[1000];...

How do I build a virtual USB simulator?

We are looking for a virtual USB link simulator; this program or service should link a virtual COM port to an application which accepts only USB as data link. The virtual COM port is VSPE from Eterlogic. The purpose is to make a serial data link between this virtual port and an application that expects data from a USB stick. Instead o...