native

Use JNI instead of JNA to call native code?

JNA seems a fair bit easier to use to call native code compared to JNI. In what cases would you use JNI over JNA? ...

Writing a native language compiler.

I've to implement my custom native-compiled Windows programming language. Is there an easier way then translating it to ASM, or translating it to C/C++ and then use a C/C++ compiler? Is there any SDK or something? Thank you. ...

C# without .NET Framework

Writing fast native applications, with API calls and etc, in a modern cross platform programming language like C# would be awesome, wouldn't it? For example if you want to write a simple utility for helping IT people with installing things, which wouldn't need another components, in an easy and modern programming language? or if you want...

how to invoke a iphone native application from webview.

i have a application which has 2 parts one is a webview and other is a native iphone application. I want to invoke a native iphone application from a website inside a webview. ...

Visual Studio switches from disassembler to source each time I step

On one of my two computers I see following behaviour: Each time I press F10 (Step over) or F11 (Step Into) in the disassembler window, the focus is switched to the source view, resulting in next F10 / F11 done on the source level unless I switch focus back. Can anyone recommend me what settings to inspect, or what to try to stay in the...

How to close iphone Safari window before launching native app?

Easy enough to register a custom protocol handler so that a native app gets launched by a URL in Safari. However, doing this leaves the current browser window open. If the app then provides a link back to a URL (via openURL), that url will open in a new Safari window, ignoring the existing window. I asked a question here about loading...

Resource on basic client security measures

Does anyone know of any resources that describes some techniques for improving security on the client side of an application? I do not expect to make anything completely "hack-proof", as I understand that's a completely futile exercise - I merely want to give people a bit of a hard time trying to mess with the program contents, to dissua...

Java Problem "UnsatisfiedLinkError"

I made a simple java program that sends bytes to the parallel port, which uses a .dll along with two other classes (pPort.java and ioPort.java) to accomplish it, and it works perfectly fine. However, I started making another program on NetBeans IDE which has a similar function. It compiles perfectly, but when I run it I get: Exception ...

Can a java class member variable decleared as `native`?

For instance, is the following legal public class Foo { private native int bar; } ...

How to preload custom colors in SWT ColorDialog

Hi all, my application users the SWT Color Cell Editor to set a color property. This class in turn users the native color dialog - which offers preset and custom colors. My users are frustrated because whilst the color dialog allows them to enter custom colors, the application doesn't remember these custom colors (in either Win32 or OS...

Converting .NET App to x86 native code

There's a program written entirely in C# that targets .NET Framework 2.0. Is there a way I could somehow compile (translate) managed EXE to a native one so it could be .NET-agnostic? I know there are probably commercial products for that purpose... but they are a bit expensive. The problem is that we are to deploy the program on compute...

Programming languages that compile to native code and have the batteries included

What are the programming languages that compile to native code and which have provided a comprehensive library with them? Libraries that includes functionality such as Networking, File IO, RegEx, Database, Graphics, Multimedia, Win32 API bindings, File compression, etc. ...

How a native C++ plug-in DLL can load a private assembly located in a specific directory

I have a native C++ DLL which is used as a plug-in in another application. This DLL has an embedded manifest and depends on a private assembly located in a folder external to the application. The application fails to load my plug-in DLL because my DLL depends on a private assembly which is never found (it is not located in the applicatio...

.NET Garbage Collection and Native Threads

It’s fairly well documented that when .NET's automatic garbage collector runs, it will temporarily pause all running managed threads associated with the application domain. What I haven't been able to discover are details on what happens to native threads created by the application when garbage collection occurs (ie. using _beginthreadex...

C++/CLI : Casting from unmanaged enum to managed enum

What is the correct way of casting (in C++/CLI) from a native code enum to a managed code enum which contain the same enum values? Is there any difference with using the C# way of casting like for example (int) in C++/CLI. ...

Compiling C# to Native?

I think I'm somewhat confused about compiling .NET byte-code to native code, or maybe I'm confused about the end result. So please bear with me as I try to sort through what I think I understand so you can help me figure out what I'm missing. What I'd like to do is compile my application written in C# down to regular native code like I...

Native Flash on mobile platforms?

Does anyone know if Flash will be able to run independent from the browser? I mean native apps in Flash, not just the player in a browser. The Symbian OS can do that, however I have yet to find an article which explicitly states what will become available in the case of the iPhone and the Android platform. I am not asking about dates, as...

How do I find out if a .NET assembly contains unmanaged code?

.NET assemblies that contain a mixture of managed and unmanaged code cannot be ILMerged with other assemblies. How can I verify if a given .NET assembly contains purely managed code, or a mix of managed and unmanaged code? ...

On Developing Native Windows Executables

Which technology stack do you recommend for developing native windows executable (has GUI), other than .NET stack? Other that C++ (MFC, ...) some could be named; yet which one is mature and pragmatic enough? Delphi 7? Common Lisp (Which one is proper for developing GUI?)? Scheme? Qt or wxXXX stack? ...

Accessing native C++ data from managed C++

I have an native C++ library which makes use of a large static buffer (it acquires data from a device). Let's say this buffer is defined like this: unsigned char LargeBuffer[1000000]; Now I would like to expose parts of this buffer to managed C++, e.g. when 1000 bytes of new data are stored by the library at LargeBuffer[5000] I would...