native

Adding custom code to mootools addEvent

Even though I've been using mootools for a while now, I haven't really gotten into playing with the natives yet. Currently I'm trying to extend events by adding a custom addEvent method beside the original. I did that using the following code(copied from mootools core) Native.implement([Element, Window, Document], { addMyEvent:funct...

AIR 2.0 NativeProcess is not supported problem.

Hi, I'm Fran. I have built a application that use a nativeProcess to open exe. The application into Flex Builder 3 run whitout errors. Then the problem come when I export the aplicaction AIR in .air and install the applicaction in the developer pc or other pc. When I push the button to open the .exe, appear the message "Native Proces...

can android load dll's from sdcard in native mode

I want to port a program I wrote to android. The program is in c++ on windows and linux. The program uses dll's for a plugin architecture. New plugins can be added to the program by downloading a dll which the program loads from a specific folder. My question is... Is it possible to download dlls built for android to a directory on the ...

My delphi application is incompatible with native keyboards. What should I do?

My delphi application is incompatible with native keyboards. What should I do? To explain more, first look at these pictures: Here's an image of what an Italian keyboard looks like: http://en.wikipedia.org/wiki/Keyboard_layout#Italian You can find the normal one (United States keyboard) in the same page. If we press the Shift+2 (or an...

Need example how to recover opengl in native code after new onSurfaceCreated

I am almost done creating a game for android using a port of irrlicht 3d engine to android. All code except a minimal frame work to make the native calls and play sounds is written in C++. Even the opengles display is created in c++ code using eglGetDisplay and eglCreateWindowSurface The problem I need to solve is that when home is pres...

How do I protect my C# app from crashing when calling a method in an unmanaged DLL?

I have an unmanaged DLL written by another developer in unmanaged C++. My application is a WinForms application written in C#. I am using interop to call a method (function) in the native DLL. The call is causing my application to crash upon executing the method. How does one safely call a method using interop, so that it does not bring...

DllMain calls from C# thread creation/deletion seem to be unbalanced?

I'm using a library (ANet) which is written natively in C and I am interfacing with it using C# via a small subset wrapper dll which i've made in C and statically links to it. The library (ANet) has a DllMain which simply tracks the number of references to it (so "Process attach" and "Thread attach" counts) but it seems to go into the ne...

passing native winsock socket to java socket

Hello. I need to pass a native winsock socket created by C++ application to a library in my application that uses java.net.Socket to connect to a server. This winsock appication already take care of connecting the socket. how can I explicitly set the socket descriptor of java.net.Socket? ...

Porting a C/C++ program into Android

I am attempting to put my C++ program onto an Android phone but have run into several problems with the library linking. It seems most of the useful information I find on this topic through google is outdated (motz) or simply does not account for the complexity of my program. I have been able to run simple C programs but fail when attemp...

Turning Sencha Touch-based app into a true native iPhone app?

As I understand, Sencha Touch is just a javascript library that lets you create websites that respond to multitouch and other features you find in native iPhone apps. So... Your end result is accessed on Safari on the iPhone, and not as a native iPhone app. Is there a way to convert this to a native app? ...

NativeProcess Flex and Java

I am starting to work with Air2 NativeProcess and maybe you can give me a hand. I want to create a project with parts in Java and Flex that communicate through NativeProcess. I already installed Air2 and set it up for Eclipse. I wrot a small aplication in Flex with two text fields (textToSend and TextReceived) and a button (sendText w...

JPA native query and cache

Hi All, Does native query in JPA (createNativeQuery) supports caching? I am filling my own data transfer object because the sql query joins several tables and takes only several columns form them. Regards ...

jQuery Processing to iPhone Native?

Is there a way to convert processing apps to native iPhone app's? Alternatively... there's a nice jQuery library for processing, but can that be used with the various cross-platform "develop using HTML/JS, get a native app" conversion? ...

Problem with SWIG generated JNI code on Android

I want to generate JNI wrappers from C/C++ code. Here is my interface file. /* aes_security.i */ %module jni_security_example %{ #include "pbkdf2.h" %} extern int pbkdf2_sha1 (const char *passphrase, size_t passphraseLength, const char *SSID, size_t SSIDlen, unsigned int iterationCount, char *aeskey, size_t ke...

Do Pdb files contains public function's arguments name?

Hello, I need to look up function argument names of public methods. Types are easily available from PDB symbols or DIA symbols. But Is there any way out by which we can trace and pull out function arguments names as well? I am concirned with native pdb symbols. Regards Usman ...

how to install a global keyboard handler for Java App

I have an application written in Java and I would like to install a truly global keyboard handler. For instance, I want Ctrl+Alt+Whatever to translate into a "New Document" command in my app. This should happen even if my app does not have focus or is minimized to the system tray. I know that TomBoy Notes on Ubuntu has this behavior, b...

Python extensions - performance

Hi all, I am using Boost.Python to extend python program functionality. Python scripts do a lot of calls to native modules so I am really concerned about the performance of python-to-cpp type conversion and data marshaling. I decided to try exposing methods natively through Python C API. May be somebody already tried that before ? Any ...

Platform-native preferences dialog with Qt on Mac, Gnome, KDE, and Windows

On Mac and Gnome, native applications use an application preferences dialog that immediately applies the chosen settings as they are selected. On Windows and (I think) KDE, preferences are applied only when an "Apply" or "OK" button is pressed. Are there any built-in Qt goodies to do this for you, or do you have to include several #ifde...

Native widgets created by Dojo don't work

I'm using dojo.create to throw some native widgets onto a page. In particular, I have put a set of radio buttons onto the page, and whether they function properly depends on where I put them. I want to put them into a DIV I create. However, when I do that, they don't work. If I put them at the bottom of the body, they work. If I put the...

Map a NativeQuery into an entity

Hello everyone, I'm having trouble trying to map a native SQL query using JPA, and Hibernate as a provider. This is the code for the entity that I'm using for this purpose: package com.prueba.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EntityResult; import javax.persistence.Field...