MOgre multiple window bug - ogre

Good day, everybody! I have got some troubles in creating two or more mogre window in one application. I'm using library from Leslie Godwin's project: www.codeproject.com/Articles/29190/Blend-the-OGRE-Graphics-Engine-into-your-WPF-proje
But when I try to create new window with help of the initialization function like this:
new Window1().Show(); my program crashes with AccessViolationException on RenderOneFrame function.
Am I going on a wrong way to create new window? If it is so,please, could you share a snippet of a code, that implements multi window approach.
If this method is quite good, what is the reason of this bug?
P.S. this is the only trouble that can't let us to develop the application. So it is very important to know, what the solution is.
Thank in advance!

Related

PowerPoint - how to run a macro automatically?

I'd like to run a macro that sets the zoom to 100%, something like Windows(1).View.Zoom = 100, every time ANY file is opened in PowerPoint. The files are already created, so using a template to set the zoom is not possible. How can I do this?
There isn't really a way (that I am aware of) to do this through a macro or powerpoint add-in. You might be able to do it using a custom web add-in but I don't have enough experience with that to provide an example.
After looking around there have been a few success stories. One of which is creating a custom UI element and then adding an onLoad hook to that.
Here is the thread.
Here is a link to the Custom UI Editor Tool However I had no luck in getting it to work. I believe (This is only my theory) that it is not compatible with the latest .NET framework.
If you do end up trying to do this, here is a link to the xml formatting documentation for UI elements. And a link to a little tutorial related to this.
Sorry I couldn't be of more help. This should at least get you started. If anyone else has a simpler way I would love to know as well.

How to deal with buttons with Physic2D and Images (PNG)?

I want to know how to create button with my Images(PNG).
I'm not gonna use the GUIButton because of creating the default button image.
I copied the images in my Unity Project and changed to sprite(2D and UI). Then, create the sprites simply by dragging. I also added the script which includes 'onTouchDown() and onMouseDown'. However, it didn't work so I tired again with layermask but it didn't work as well with no error code. Maybe the physic2D is the reason.
How can i make button with simple image. Could you guys help me to do so?
Please let me know does anyone have idea. Thank you.
Why don't you use a button from the new UI system?
Sorry guys. I didn't recognize that i typed 'OnMouseDown' to 'onMouseDown'. I didn't used capital letter. It's really annoying thing.

Visual Basic.NET: Saving an application?

I am a beginning programmer in VB.NET and I was wondering how to save my application when button1 is clicked, and then load my application when button2 is clicked. My application has several different forms and classes etc. Is there a simple way to save all of the different forms and the changes to those forms that the user may have made, and then load them again? If this is too complicated of a process for a beginner, then I can just forget it for now, but if anyone knows a relatively simple way to do this, I would be very grateful.
Thanks
You have a few different options. The easiest thing is probably going to be for you to take a look at the My.Settings class.

MVVMCross How does this View get linked to the ViewModel?

I'm trying to figure out why I get an error message about not being able to find the right ViewModel when I'm running my iOS app.
The question I have is when I look at this example I don't understand where MainMenuView gets bound to MainMenuViewModel.
Can someone answer this for me?
Thanks,
PkL728
They are bound by class names: for XXXView should be corresponded XXXViewModel
Just want to add to the answer: double-check the names of the views after renaming (even Resharper renaming is not perfect). Spent several dozens of minutes (and a beer can), catching similar MvvmCross's error Could not find view for %ViewModelName%.
I'm getting this on a project that I've just upgraded to MvvmCross 4. I don't have much experience with MvvmCross, and the project hasn't been maintained for a few years, so it's possible something else is wrong.
I ended up hard coding the mappings in Setup::InitializeViewLookup because I don't have time to waste on it anymore.
For anyone who ends up here having the same problem I had. I was getting this error in an Android project because my (properly named) view was extending Activity and not MvxActivity (happens easily when you use Xamarin Studio's "Add Android Activity" feature)

How to use Xcode Utility view?

Sorry for such a basic question.
After using MS Visual Studio for 15 years, I recently moved to Apple and its Xcode. So I am really newbie in this new tool. I can work with some very basic parts of utilities as Referencing outlets or such stuff, but there are a lot of other stuff there that I had never seen in Visual Studio (as file owner, accessibility reference, ...)
I am looking for a good tutorial on that. Any one knows any? Any suggestions will be appreciated.
Apple has very helpful documentation about their technologies: OSX and iOS
The best place to start using Xcode is Xcode 4 User Guide and Xcode Quick Start Guide
This is something like Properties menu in VS. the only difference is that you can simply change to Assistant editor and hold control+drag from each one directly to your code.
Remember this is based on MVC ( Model= data, View= what you see and Controller)
In fact view and model are almost separated and controller is the connector between them:
this may help in the picture above: everything is counted based on Controller: OUT-let can remind you OUT of controller: I mean commands from controller to something. and sender means what sends messages TO the controller. These will make codes just like delegate coding in Visual Studio when you drag and drop an object to the window and double click on them. The (id)sender is counterpart of (void)sender in VS.
watch the Stanford iOS class on iTunesU. It is very good and if you know programming it will be very fast. Make sure you watch the fall 2011 version, it is about iOS5 and xcode4.

Resources