Cocs2d-x + XAML on windows phone 8 - silverlight

A couple of weeks ago the new cocos2d-x (version 2.2.1) was released with great support for windows phone. However, there is one thing missing in the templates and examples: integration of XAML with Cocos2d-x. A feature that is absolutely necessary for free to play games that use ads since every single ad network uses a silverlight component.
I tried to implement the integration myself but I am stuck and all I get is a black screen. I used the following strategy for implementing it:
modified the CCEGLView class. The create method takes the follwing arguments:
bool CCEGLView::Create(In IDrawingSurfaceRuntimeHostNative* host, In ID3D11Device1* device)
in the XamlComponent class of the visual studio template I have added CCApplication member variable and the Connect methos create the CCEGLView and runs theCCAplication.
Everything compiles without any errors and runs without any crashes. However, the screen remains black :-( My guess is that the drawing surface / windows is not correctly passed but I do not know how I can do this.
Any help and ideas appreciated.
Cheers
Tom

Cocos2dx 2.2.1 used native mode, currently it's not support XAML+native hybrid mode.
CoreWindow is a fundamental component, do you remove all the referene to CoreWindow?
You can look up from this project, they've a branch for wp8+waml.
https://github.com/MSOpenTech/cocos2d-x/tree/wp8-xaml

Related

Loading multiple word addins with CefGlue targetting different version of chromium?

We have a situation with word addins where we try to load our taskpane and use cefglue implementation to show web page. We use cefglue for the same. We just discovered that one of the vendor addins also loads chromium but an older version. Unfortunately our addin shows a message that it cant load chromium due to hash difference.
Now is it possible that 2 COM addins can load different version of chromium? The vendor change looks unlikely and I could see they don't use cefglue or cefsharp but have their own implementation. Has anyone in this situation before? We are thinking of moving our code base to use same version as theirs but again when they upgrade, we have to upgrade and we will have a window where this fails due to incompatible version. thanks
It seems there is no easy answer to this problem as word / excel can load only one libcef dll in memory. The redgate apphost could be a possible solution and I added a link to cefsharp remoting repo which I am still trying to make work but has some readymade code and could be a good starting point for someone trying to do the same thing. Best of luck and thanks #amaitland for pointers.

All converted apps including samples fail to run with a 'The parameter is incorrect'

I'm trying to convert a WPF oneclick installed application and so everything should be pretty straight forward. However, whenever I run the debug project, I get
'The parameter is incorrect'
in a message box popup and I can never run the app.
This happens for my app while trying to debug, all the samples from github, and even the DAC application from the Windows Store. The error pops up even once the app is installed and showing in my application list.
I'm on the latest build of the Creators Update.
There are various errors in the event viewers, but they seem to be a common occurence for WinRT apps.
Any ideas at all?
If you have the WPF project in VS2017, I'd recommend to package directly from VS without using the DAC. see the article for more information https://learn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-packaging-dot-net
The problem appears to be related to the May Security Update. I restored Windows to the factory defaults and everything works fine.
However, once I install the the May Security Update to address this bug with Sql Server and Filestreams, the Desktop Bridge Debugging project stops working.
I'm going to throw out a random guess that it's related to the Microsoft Malicious Software Removal Tool, as the event viewer logs mentioned an issue with the 'parameter is incorrect' referring to the Microsoft.MRT.
Of course it could be anything, and as only 7500 people have even downloaded the Desktop Bridge Debugging project in the first place, I doubt it's high on the list of Microsoft Developer Priorities.
And to be completely honest, it's really probably my fault for not rewriting the app as a UWP app, after rewriting it as a Windows Forms app, and as a Silverlight app, and as a WPF app and on and on and on. Although, I'm not sure how many glasses of Kool Aid are left in the punch bowl for me.

UFT 12.01 - Doesn't recognize objects in .Net desktop application

We are working on .Net desktop Empower application, which is completely developed on .Net 4.0 version framework. We are using UFT(QTP) 12.01 as automation tool.
when I am trying spy on any object it's treating as SwfObject instead of it's original property, I tried recording way and it doesn't recognize properly in expected way, for ex: if I spy on Menu bar with list of icons and dropdown menus, UFT recognizing everything as single SWFObject and no use. It's behaving the same way for all the objects.
Selected ADD Ins are : Web, .Net, WPF, Active X, Visual Basic
And also "Infragistics Inc." is used as CompanyName which I have come across in Properties spy window.
We are trying to contact HP support guys too.. meanwhile can somebody post the solution if you come to know, Thanks a million in advance !!
I hope you got solution, If not please use below help,
We are using Desktop application and it developed in Adobe flex, First we got same problem what you are facing later we found soultion, May be it will help you.
Open your desktop application with UFT tool and later try spy or object repository it will recognise.
To open application using UFT we used systemutil.run "application path"
To further elaborate on sateesh response, the following ways:
launch application using Systemutil
Systemutil.Run "C:\Program\YourApplication.exe"
some other tips: https://www.learnqtp.com/ways-to-launch-your-application.
HP UFT menu: Run > Record and run settings
Thanks I appreciate your help, we figured out the issue. We used Keyboard strokes for the objects which do not have tag names or recognizing the objects as a single SWFObject.

Visual Studio 2012 - Performance Profiling Prism Applications

I've been looking to get some profiling reports on a project I'm working on. I've looked at many of the options out there and I've personally used dotTrace and ANTS before but decided to give the Visual Studio built in Profiling a shot.
So far it seems pretty good all in all. Had to jump through some hoops to get it working in the first instance but its running OK now.
The problem I have is that my project is a Composite WPF application using PRISM which means there are no static references between the EXE file and the majority of the logic which resides in the Module class library projects.
This isn't the first time I've seen some usually very good tools get confused by composite applications so I'm not going to hold that against the profiler. However it does mean that 90% of what I want to profile in the application is actually excluded from the reports and remains completely un-profiled. Not helpful.
I have all the libraries I'm interested in profiling added to the Instrumentation session so it's all ready to go the problem is it doesn't seem to follow the execution paths into my Modules internals.
Has anyone managed to get a PRISM app using a DirectoryLookupModuleEnumerator (no static refs) approach successfully and fully profiled?
HA! The cardboard developer strikes again!
One additional complication in my particular scenario is that my compiled application isn't in the usual bin\Debug locations. Each project copies itself and any dependencies into a completely separate location (kind of like deployment I guess) and then executed from there when I debug.
What I've done to get this working:
The usual nasty post signing shenanigans to get the strong names to play nicely
Instead of going through the wizard simply click Start Performance Analysis under the Analyze menu
This will start the performance analysis and should honour any debug setup in your start up projects properties page.
Go back to the Visual Studio 2012/2013 instance you started from.
Right-click on the Targets node in the Performance Explorer panel.
Select Add Target Binary and then in the file browser select the compiled modules that form the composited parts of your application
Run your app as you wish and then select Stop Profiling when you're done.
Explore to see just how crap your code is! :)
NB: last step is optional.

whats the name of this windows phone 7 element?

hi sometimes i get at the top of the screen a small message like: this is only a trial version, when i click on it, it get invisible.
what is the name of this form element? want to use it too
i think it is not a popup
If it comes with an incredibly annoying sound, then it's a MessageBox.
It not, then it's maybe some kind of child window - see http://wildermuth.com/2010/08/17/Using_ChildWindow_in_Windows_Phone_7_Projects
Without any kind of visual reference it's difficult to tell, but you may be referring to a "Toast". There is no specific API in the current version of the framework, though the Mango tools for version 7.1 that are now available include the ShellToast method for this.
If you're developing a 7.0 app for the currently available devices then you can use the ToastRequestTrigger from the Prism libraries for WP7.

Resources