LiveCode 6.x has an XML library with a function revCreateXMLTreeFromFile. When I try to use it, it compiles, but on execution I get a "can't find handler" error. Is there a trick to using the XML library? Or is this a LiveCode bug?
Are you making an app for iOS/Android or for a desktop OS?
You need to make sure that you include the XML external in the standalone. You do this in the standalone settings.
My book Programming LiveCode for the Real Beginner contains two sections on using XML.
Related
I need to use InkCanvas in my web application using javascript (angular), is it possible to save InkCanvas as a SVG using javascript (or convert InCanvas to canvas)? i see this, but it seems it works for C#, i need a way to do it in javascript!
I think InkCanvas is only supported in Universal Windows Platform (UWP) for Windows10. This is confirmed in this SO post.
You can use Webassembly to run C# code in web browser using some JS helpers. Here is a post explaining the same.
You can try this with the c# code that you are interested in. Compatibility depended. These are relatively new features and only way to know is to try.
I'm currently trying to port an application from owl to vcl.
In my old projekt-file I was able to load dialogs with something like
TBatchAcDialog(TWindow* parent) : TAPDialog(parent, BATCH_DIALOG)
However, using TTaskDialog instead it doesn't support the second argument.
I have found an explanation for the user interface designer that when rightclicking on a menu you can load the first declared menu from a rc-file.
However, I don't really know how to load those dialogs as dialogs in this IDE and linking them to my classes again.
Does anyone of you know about this or could link me to an article about a similar problem? I seem to have failed finding a proper solution although implementing rc-dialogs seems to be a common problem to me.
I'm currently trying to port an application from owl to vcl.
What is your exact goal? To be able to build the application with C++ Builder, or to use VCL instead of OWL?
If you want to use VCL for the dialogs, then you cannot port them, you need to rewrite all the UI from scratch, as VCL is very different from the standard Windows dialogs.
If you want just to build the application with C++ Builder, then you can do so by upgrading to OWLNext - it is an open-source upgrade for the OWL framework and works with the modern compilers like C++ Builder and Visual C++.
You can also use OWLNext for a gradual migration to VCL - as VCL and OWL can co-exist in the same application, so you can migrate your old OWL application to C++ Builder, write any new UI in VCL, and gradually rewrite the old UI in VCL - it might be easier and safer than rewriting the whole application with VCL.
C++Builder does not have any native functionality that wraps resource dialogs in classes. You have to set that up manually in your own code if you need it. Otherwise, just use Win32 API functions like CreateDialog() when working with resource dialogs, or else redesign your UI to make use of VCL TForm windows instead of resource dialogs.
TTaskDialog is not what you think it is. It is just a wrapper for the Win32 API TaskDialogIndirect() function (Vista and later only), which is not related to what you are attempting to accomplish.
I'm trying to refactor some of the code of my monotouch app into a library (so I can use it in another app). Some of the code I want to move into the library is native (google analytics and facebook api native libraries), but I can't seem to find a way to get this to work, as you cannot link native code to monotouch libraries.
ie, this is what I'm trying to achieve:
[iPhoneApp facebookLib.a facebookWrapper.dll] ->
[iPhoneApp] [SharedLibrary facebookLib.a facebookWrapper.dll]
Am I missing something or is this not possible?
It seems to be possible, but perhaps I don't understand what you are trying to accomplish.
http://monotouch.net/Documentation/Linking_Native_Libraries
and here
Monotouch and native iOS code
Is there any way to know if a program was created with VB, C# or Delphi and the compiler version?
The easiest way would be to use some software like DependencyWalker and just see what DLLs they use.
.NET binaries are easy to figure out, And there are also software that deassemble them back to C#.NET , VB.NET or C++.NET code for you (whatever you desire)
You can't determine if a .NET binary is written in VB.NET or C#.NET since it is converted into MSIL (Microsoft Intermediate Language).
Also applications like resource explorer should tell you information about the binary.
If you're a little more specific, I can provide more.
Yes.
With Delphi applications, you can use a resource editor like XN Resource Editor. Each executable has an RC_DATA resource called DVCLAL that identifies it as a Delphi app (and contains info about the compiler version). If the app uses the VCL (is a Windows GUI application), you can also see other RC_DATA resources that represent the form file (DFM). You can also view VCL/RTL classes in the binary using a hex editor.
Reflector can show you if an app is C# or VB.NET.
DependencyWalker (linked by another answer) will show you if the app is loading the VB runtime, which would identify a VB Win32 application.
you can use a tool like PEiD (unfortunately this project has been discontinued, but the application is still working).
PEiD detects most common packers,
cryptors and compilers for PE files.
It can currently detect more than 600
different signatures in PE files.
I have a small 2D game engine written in C#, using DirectX. Is it possible to somehow run it in a browser as a plugin? Like for example Flash and others, where you go to a site with a game and it will ask you to install a certain plugin and then you can play the game in the browser, with mouse and keyboard input.
I have searched around for hours and I still don't know what I'm looking for. I have so far primarily focused on Internet Explorer, but there are plugins, addons, extensions, etc I don't know what I need really.
Yes I think it is possible.
For example, I have an HTML page which includes an element like this:
<object id="simpleControl1"
classid="http:RenderTextProject5.dll#RenderTextProject.ScrollableControl"
height="300"
width="300">
</object>
The 'classid' attribute value has the following meaning/syntax:
RenderTextProject5.dll is the filename of a compiled .NET assembly
RenderTextProject.ScrollableControl is the qualified name (namespace plus classname) of a class which subclasses System.Windows.Forms.Control
I can then see the control being rendered in the browser.
I'm using IE (IE8, but it used to work with IE6 too), and I have the .NET framework installed on my machine (but I think I needn't have the RenderTextProject5 assembly installed on the client machine).
There may be some other caveats too (e.g. I needed to run in the Intranet security zone).
See Return of the Rich Client: Code Access Security and Distribution Features in .NET Enhance Client-Side Apps.
Look for Silverlight.. It is maybe not exactly what you need but it is a browser plugin capable of running C# code ;)
There is a relatively new plugin called Unity. It is a bit more complex, as it is a dev/3D authoring environment on its own, but uses C# as its language as far as I know. However I don't know if pure 2D programming is possible (well, may be worked around using ortho 3d?).
The basic version is free to download recently, maybe worth a check.
It is possible to run C# applications in a web browser without using plugins. For example, C# applications can be compiled into JavaScript applications using JSIL.