Native Client(NACI) can invoke a third-party DLL file? - google-nativeclient

I want to know that Native Client(NACI) can invoke a third-party DLL file?

No, Native Client is a platform-agnostic application sandbox. This means that you can never access platform-specific libraries, such as a Windows DLL.
That being said, Native Client does support shared libraries in some cases, but they must be compiled with the Native Client toolchain. See https://developer.chrome.com/native-client/devguide/devcycle/dynamic-loading for more information.

Related

Tutorial wants me to "Download signalr.js file from a CDN"?

I'm attempting to set up a push notificaton functionality for my asp.net core system.
I'm looking at using Signalr for it, and I found this one.
It's fairly intuitive, except for the sixth step, where I need a signal.js file:
Step 6: Download signalr.js file from a CDN & place it inside wwwroot -> lib -> signalr folder.
I have no idea what this means. Why would a cloud delivery network have a signalR client file for me?
Does anyone know what this means? and more importantly where I should look?
In this doc, you can find:
The SignalR server library is included in the ASP.NET Core 3.1 shared framework. The JavaScript client library isn't automatically included in the project.
So to setup a SignalR JavaScript client app, you need to add/install the SignalR client library in your project first.
And referencing a CDN-hosted copy of the client library is also a way to include SignalR client library. For more information about how to install the SignalR client package in different ways, you can check following doc:
https://learn.microsoft.com/en-us/aspnet/core/signalr/javascript-client?view=aspnetcore-5.0#install-the-signalr-client-package

Using SocketScan SDK with C# Web Service

What I am trying to do is to call a web service using jquery (ajax json call) and use this SocketScan sdk in the web service (C# based web service).
As, my Mobile App uses only Jquery so I have to make use of this Socketscan sdk in the web service only.
I want to build a sample app for the same. How can I achieve this?
I have added the dll reference to my web service and can see all the methods used in dll but I am not able to understand the flow of dll.
Regards
Aman
Telerik AppBuilder is based on Cordova, so you can't call native code directly and the ScanAPI SDK doesn't support javascript. You will need a plugin which wraps the native SDK (C#, Java or Objective-C, depending on your target platform) and exposes the functionality you need to your app. You may have to develop a Cordova plugin, if there isn't already a plugin released under a suitable license for your app.

Precompiled core service client versus generating your own proxy

Since 2011sp1 Tridion comes with a precompiled core service client. Would there still be a reason to generate your own proxy by adding a service reference? Or is that older method officially deprecated now?
Let's take a look at advantages of compiled dll vs service reference:
Core service is growing and it's quite a problem to generate service reference reference on slower network. The bigger core service will be the harder it will be to generate service reference (there are workarounds of course)
Compiled dll is compiled using "correct" settings. There are some options you can set when generating service reference, like return types and types to be reused from other assemblies. By using compiled dll you are sure that you get everything right.
You can get quite a mess with you app.config when updating service reference. I think updating dll and config is a bit easier.
It's tricky to generate service reference when you have LDAP or SSO or HTTPs configured
The precompiled coreservice client is distributed by default to help implementers. As generating the own proxy is bit difficult (you might need to change some config in svcutil).
The precompiled coreservice client always uses the latest endpoint. Depending upon your situation you might need to generate your own proxy if you want to connect with the old endpoint always.
Otherwise you can use the precompiled client which will make sure you are connecting to the latest endpoint but that might break your client (you might need to fix something or recompile).

Windows Embedded Compact 7 application development with both managed and unmanaged code

I'm about to write an application for a embedded device with an nvidia Tagra2 running Windows Embedded Compact 7. There are the following requirements:
Query data from an internet server via a REST-API using secured HTTPS communication.
Map this data to an object model.
Display these objects in a nice Embedded Silverlight GUI.
Do some measurements with extern sensors and transmit the measured data to the server via the REST-API and secured HTTPS.
I know that Embedded Silverlight needs unmanaged C++ code. But writing the whole application in unmanaged C++ only because of the Embedded Silverlight GUI would be nightmare for me. So I think of two alternatives:
Put the logic in a managed C# DLL and access it from the unmanaged C++ executable that hosts the Embedded Silverlight GUI.
Put the Embedded Silverlight GUI in an unmanaged C++ DLL and access it from a managed C# executable hosting the rest of the logic and controling the GUI.
My questions are:
Is one of the alternatives above even possible?
Which one would be preferable? I'm a mouch better in C# than in C++.
Could you point me to resources (books, tutorials, examples) covering one of the above alternatives?
Option #2 definitely works. Have a look at this site:
http://channel9.msdn.com/Events/TechEd/NorthAmerica/2010/WEM309
Option #1 should be possible as well, although it seems like it might be more work to try to call the managed DLL from the unmanaged code.

Web Interface identical to Qt user interface

I'm working on a embedded system with a display. The user interface was developed using Qt.
How can I develop a web interface that looks identical to the existing Qt interface, and gives the same user experience on the web. The Qt GUI is accessing the device functionalities through an interface library.
Is there a way to generate web pages using the existing Qt GUI code?
Does any design approach exist that lets me re-use the existing Qt code?
QtWui would be one option. Be warned, though, that it's a very young project.
There was once an entry on the Qt Labs blog about a QWebClient which looked promising. The latest update to the git repository was in October 2009, however.
As alternatives, you could wait until both Google’s Native Client and the Qt port that will run on it are stabilised/finished. The Native Client aims at running system code sandboxed in a browser, so you could ‘simply’ port your Qt app to run on this.
There is a port in progress, compiling QT with Emscripten
http://www.phoronix.com/scan.php?page=news_item&px=MTI3NDc
http://vps2.etotheipiplusone.com:30176/redmine/projects/emscripten-qt/wiki/Demos

Resources