desktop-apps | ONLYOFFICE Desktop Editors which builds the program | Editor library
kandi X-RAY | desktop-apps Summary
kandi X-RAY | desktop-apps Summary
The frontend for ONLYOFFICE Desktop Editors. Builds the program interface and allows the user create, edit, save and export text, spreadsheet and presentation documents using the common interface of a document editor.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of desktop-apps
desktop-apps Key Features
desktop-apps Examples and Code Snippets
Community Discussions
Trending Discussions on desktop-apps
QUESTION
I have an existing program win32 (x86) console app that needs to call managed code (C# from a .Net .dll
). The .dll
is not exposed to COM, but can be called from a C#/WinRT Component and referenced by C++/WinRT Console Template app, BUT I can't seem to call it from a win32 x86 console app even after installing the C++/WinRT NuGet package. I've built and ran this example but the consuming apps are always using the C++/WinRT template. When I try to reproduce the example with a base win32 app, I get the error REGDB_E_CLASSNOTREG Class not registered
.
I found another example showing how to consume a C++/WinRT component from a win32 app, without registering classes. I thought this was my answer. However the process involves going into the application manifest and specify activatable WinRT classes by referencing the outputted .dll
file whenever the C++/WinRT component builds.
Here's the problem: C#/WinRT components do not output a .dll
file, only the .winmd
.(see Edit) With the .winmd
file, I can still reference the classes and build my project, But I end up with the same REGDB_E_CLASSNOTREG Class not registered
error. I assume both the C++/WinRT and C#/WinRT components would compile into something that is in an Intermediate Language (see comments), but why does C++/WinRT output a .dll
and a .winmd
, while C#/WinRT only outputs .winmd
files? I tried to use WinRT.Runtime.dll
in place of the outputted .dll
but that didnt work either.
I'm at a loss. I posted another question about the difference between the C++/WinRT template vs win32 with C++/WinRT NuGet package.
Main Problem: Can I use a C# .dll
(not COM exposed) in a base win32 console app somehow?
I realized that I was using a C# Windows Runtime Component template that was specific to UWP. This might be why there was no outputted .dll when built.
Following Simon's reply, I was able to create a C# WinRT component that can be called from a Win32 console app. This C# WinRT component DOES output a .dll as well as .winmd. I followed a bit closer to the article Simon posted about consuming with C++ and managed to get it to work with basic C# functions.
...ANSWER
Answered 2021-Sep-25 at 10:19REGDB_E_CLASSNOTREG
means the class that you ask for (whatever it is COM/WinRT etc.) is not registered/known to the activation system (hosted in combase.dll).
The problem probably comes from the fact you're trying to use a registration-free WinRT component.
Let's take this sample as a start for the C# component: Walkthrough: Create a C#/WinRT component and consume it from C++/WinRT. So, just create the C# component but don't create the C++/WinRT app. (I use Visual Studio 2019 and net5.0-windows10.0.19041.0).
Note: C#/WinRT does produce a .dll (here SampleComponent.dll
), not only metadata.
If you don't build the C++/WinRT app, you still need to build a regular .h file to use the C# component. C++/WinRT does that for you, but since we don't use this tool, we must build it ourselves. For that, we need two other tools winmdidl.exe
and midlrt.exe
that you'll find from Developer Command Prompt for Visual Studio..See also
How to: Use winmdidl.exe and midlrt.exe to create .h files from windows metadata
So from the SampleComponent.winmd
that you have if you followed the tutorial, run:
QUESTION
How I came to the problem:
I setup an project like this:
https://www.smashingmagazine.com/2020/07/desktop-apps-electron-vue-javascript/
until it came up to the coding part, there I added custom stuff. Created Components and so on. Everything works fine in serve then I want to build it.
What I expect as outcome:
App working as in serve mode
What I got:
blank page
What I've tried to fix the problem:
change a wide range of path urls like:
ANSWER
Answered 2020-Oct-23 at 12:08So after many hours of struggling because I couldnt open a working console I found a tool called Debugtron. After a bit of optimization it throwed the error:" createProtocol is undefined ".
The autogenerated background.js missed the line:
QUESTION
I try to build a GUI for given Python code using Electron. The data flow is actually straight-forward: The user interacts with the Electron app, which sends a request to the Python API, which processes the request and sends a reply.
So far, so good. I read different threads and blog posts:
- ZeroRPC solutions:
- https://medium.com/@abulka/electron-python-4e8c807bfa5e
- https://github.com/fyears/electron-python-example
- Spawn Python API as child process from node.js and communicate directly:
- https://www.ahmedbouchefra.com/connect-python-3-electron-nodejs-build-desktop-apps/
- This seems to be not the smartest solution for me, since using zeroRPC or zeroMQ makes it more easy to change the frontend architecture without touching the backend code.
- Use zeroMQ sockets (for example exclusive pair?)
But in all three solutions, I struggle at the same point: I have to make asynchronous requests/replies, because the request processing can take some time and in this time, there can occur already further requests. For me, this looks like a very common pattern, but I found nothing on SO, maybe I just don't know, what exactly I am looking for.
...ANSWER
Answered 2020-Jun-07 at 20:16If you're thinking of using ZeroMQ, you are entering into the world of Actor model programming. In actor model programming, sending a message happens independently of receiving that message (the two activities are asynchronous).
What ZeroMQ means by Blocking
When ZeroMQ talks about a send "blocking", what that means is that the internal buffer ZeroMQ uses to queue up messages prior to transmission is full, so it blocks the sending application until there is space available in this queue. The thing that empties the queue is the successful transfer of earlier messages to the receiver, which has a receive buffer, which has to be emptied by the recieve application. The thing that actually transfers the messages is the mamangement thread(s) that belong to the ZeroMQ contenxt.
This management thread is the cruicial part; it's running independently of your own application threads, and so it's making the communications between sender and receiver asynchronous.
What you likely want is to use ZeroMQ's reactor, zmq_poll(). Typically in actor model programming you have a loop, and at the top is a call to the reactor (zmq_poll() in this case). Zmq_poll() tells you when something has happened, but here you'd primarily be interested in it telling you that a message has arrived. Typically then you'd read that message, process it (which may involve sending out other ZeroMQ messages), and looping back to the zmq_poll().
Backend
So your backend would be something like:
QUESTION
I own the source code to a class library of "utilities" which I targeted to .NET Framework 4.8. I want to port it to use in a .NET Core desktop client app and port it to use in a .NET Core web service.
I know that new .NET Core
projects have a new kind of project file that is described as SDK-style. It seems possible to verify VS is working with the new style because the first line of the project file mentions the word "sdk" and Visual Studio's right click on a project allows editing of the project file. The try-convert conversion tool is described as being incomplete and unsupported so I am pasting source code files into projects.
When I paste my source code into a Class Library (.NET Core)
project it fails to compile for missing assemblies. There seems to be no way to add a reference to a Microsoft class like System.Windows.Documents.FlowDocument which is in PresentationFramework.dll
. I can only add a COM Reference (not what I want) or Project Reference (in other words "home-made", not Microsoft, not what I want).
When I paste my source code into a WPF Library (.NET Core)
project it compiles. This library has no WPF features because it is full of utility classes and utility methods so this project type seems a strange choice. I only guessed it might work because this tutorial mentions manually editing project files for WPF apps and Windows Forms apps. It does not tell you anything about any alternatives that are not apps. In other words, the tutorial does not mention libraries.
EDIT: The following question was edited to be "less broad" than the original.
Why does a WPF Library (.NET Core)
succeed where Class Library (.NET Core)
fails ?
Details: Visual Studio 2019 Community
RESOLUTION: "Class Library" worked when targeting .NET Framework 4.8 but now the choice must be "WPF Library" when targeting .NET Core. As @DavidAWhite says, FlowDocument is part of WPF.
...ANSWER
Answered 2020-Jun-17 at 23:54A .NET Core Class Library doesn't have any references to WPF or anything like that. That would be way too much and not be portable. Unlike a .NET Standard class library, you can reference things like WPF, ASP.NET Core 3.x, Winforms or other parts of .NET Standard 2.x that are not part of any .NET Framework or Mono implementation.
You can make a .NET Core Class Library reference WPF by using and
true
in your csproj file.
Whether you like it or not System.Windows.Documents.FlowDocument
is part of WPF and this is the way you now reference all framework provided WPF components.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install desktop-apps
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page