virtual

Virtual Earth won't render properly in ASP.NET MVC view.

The following code: <body onload="GetMap()"> <script type="text/javascript" src="https://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6&amp;s=1"&gt;&lt;/script&gt; <script type="text/javascript"> var map = null; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); }...

Controlling application running on a virtual desktop (linux)

Hi guys, I need to run an application on a virtual Xorg desktop (let say desktop #2) and control it via another app running on the root desktop (desktop #1). That would include screen capture and mouse movements. So basically I capture the application window from desktop #2, scrape it and then click on buttons via my app on desktop #1. ...

COM-like interfaces warn about non virtual destructor

Is there a way to tell gcc that the abstract class it's compiling does not need a virtual destructor (like COM-objects never have)? For example nsISupports always complains about the missing virtual destructor. Turning off the warning would not help as I may have non-COM-like classes, where I want this warning. So __attribute__((com_int...

Rails: Virtual attributes and form values

Hi. I have a Model Book with a virtual attribute for create a Editor from the Book form. The code looks like: class Book < ActiveRecord::Base has_many :book_under_tags has_many :tags, :through => :book_under_tags has_one :editorial has_many :written_by has_many :authors, :through => :written_by def editorial_string self...

Implementing a virtual file system in .NET

A while back a found a great-looking framework that allowed .net developers to implement a virtual file system. I thought I had bookmarked it, but it seems I haven't. Does anyone know any frameworks for doing this? EDIT: Here's a hint... It had a catchy, short name and it's own domain. Sorry, that's all I can remember :p ...

How to develope a Virtual com port c++

I have been told to develop a virtual com port so an app the company has can read off com "comCompanyNameV1".. I tried to pick apart com0com, but it seem so incomplete I'm finding I have to kludge around large parts of it and I have yet to get anything to come close to compiling. Mostly because the tools that are outlined to use to build...

C# enum in interface/base class ?

Hi, i have problem with enum I need make a enum in base class or interface (but empty one) class Base { public enum Test; // ??? } and after make diffrent enums in some parent classes class Parent1 { public enum Test {A, B, C}; } class Parent2 { public enum Test {J, H, K}; } and now i have next class with method when...

virtual usb driver

is there any program that sends data from a virtual usb port to host device as computer? ...

Why this code crashes?

For C++ gurus: Can you please elaborate why this code crashes at the places mentioned? I am a bit stumped on this. I guess that it has got something to do with sizeof(int) but I am not so sure. Can anybody explain? class Base { public: virtual void SomeFunction() { printf("test base\n"); } int m_j; }; class Der...

Are there Virtual Twain Scanners? Sort like Daemon Tools virtual CD

Hello, I am testing a scanning application and currently I dont have any scanner to plug it in. Is there anyway to have a virtual scanner like Daemon Tools does with Virtual CD Drives? ...

Why not make everything 'virtual' ?

Possible Duplicate: Why C# implements methods as non-virtual by default? I'm speaking primarily about C#, .NET 3.5, but wonder in general what the benefits are of not considering everything "virtual" - which is to say that a method called in an instance of a child class always executes the child-most version of that method. In ...

Why would I want to use a pure virtual function in C++?

I'm learning about C++ in a class right now and I don't quite grok pure virtual functions. I understand that they are later outlined in a derived class, but why would you want to declare it as equal to 0 if you are just going to define it in the derived class? ...

Pointers to virtual member functions. How does it work?

Consider the following C++ code: class A { public: virtual void f()=0; }; int main() { void (A::*f)()=&A::f; } If I'd have to guess, I'd say that &A::f in this context would mean "the address of A's implementation of f()", since there is no explicit seperation between pointers to regular member functions and virtual membe...

based on what logical reasons, virtual and new modifiers have diffrent results in inheritance and polymorphism issues?

Hi ... I know that when we have a virtual function in our own base class, then by overriding it in a derived class and considering casting when variable declaration, we have different result with comparison to using new modifier in the derived class. but why? Is there any logical reason for that or we have to learn it without any reason?...

How to Create a Virtual Windows Drive

Hello, I'm trying to create a Windows Virtual Drive ( like c:\ ) to map a remote storage. The main purpose is to do it in a clear way to the user. Therefore the user wouldn't know that he is writing/reading from another site. I was searching for available products, and i find that FUSE is not an option in Windows and WebDAV maps direct...

How to close/hide the Android Soft Keyboard?

I'm having an EditText and a Button in my layout. After writing inside the edit field and clicking on the Button, I want to hide the virtual keyboard. I guess there should be a simple, one- or two-liner to make this happen. Where can I find an example of it? ...

Why does Windows reserve 1Gb (or 2 Gb) for its system address space?

Hi; It's a known fact that Windows applications usually have 2Gb of private addess space on a 32bit system. This space can be extended to 3Gb with the /3Gb switch. The operating system reserves itself the remaining of the 4Gb. My question is WHY? Code running in kernel mode (ie device driver code) has its own address space. Why, on t...

C#: What are virtual events and how can they be used?

How does a virtual event work? How would you override it? How would that work? And in what cases would you do that? Would it for example be an ok replacement for protected OnEvent methods? So that inheriting classes could just override the event and raise it directly? Or would that be wrong or just not work? The MSDN says this about it...

Native C++ to Managed C++ to C#

I am working on porting a large number of .h and .lib files from native C++ to Managed C++ for eventual use as a referenced .dll in C#. Please, I know it'd be a lot easier to port the whole thing to .NET, but if I could I would. It's 3rd party and all I have are .lib(no exports) and .h files to work with. Everything has been going smo...

Is there any automated way to implement post-constructor and pre-destructor virtual method calls?

Hi all, Due to the well-known issues with calling virtual methods from inside constructors and destructors, I commonly end up with classes that need a final-setup method to be called just after their constructor, and a pre-teardown method to be called just before their destructor, like this: MyObject * obj = new MyObject; obj->Initiali...