native

How to access standard PHP session data from inside CodeIgniter.

I've got a Codeigniter project I'm working on, and using the CI Sessions (stored in a DB), but I need to check for a variable in another $_SESSION from another application (in the same cookie domain), but when I try, from the CI controller to use native PHP sessions to get this one bit of info ($_SESSION['blah']), it looks like CI is str...

Android : UPnP not coming up properly in the native code.

Hello I have a native code that has UPnP API. Its a tested code that is working fine with the Android UI that came with the code. I have created another UI and I am trying to bring up the UPnP by calling Native UPnP API using JNI to interface my UI with the native code. The device is getting detected in the UPnP network as a UPnP enabl...

Generate C# DLLImport declarations from a native dll

Do you know a soft which automatically generates C# code (with [DllImport] attributes in .cs) from a native DLL in order to use this DLL in a C# code? ...

Sharing projects in multiple solutions fails because of project references in VS2010

We have a lot of native C++ static libs and DLL's that make up our application. In VS2010 it is possible to use references for native C++ projects between the dependend projects to force the correct build order. We used to do this with project dependencies but they were stored at the solution level. We do not share solutions, only the p...

How to read and write dbf in a native way?

In Delphi for Win32, how to read and write a dbf file in a native way, without the BDE? I know there are some components available in the web, but I have never used any of them, so I don't know wich to choose (if any). ...

Strongly-typed XML native database with XSD support

I am looking for a Java-based implementation of an XML native database, which exploits XML schema to provide strongly typed operations and checks over the stored data. Does anyone is aware of such a database? ...

My Visual C++ compiler compiles out of date source

I'm a beginner starting to use Microsoft Visual C++ Express 2010 for Windows Programming. I've created a new C++ application using native code, not managed or MFC. I had Visual Studio create for me the basic windows code to create one window with simple menus (chat.cpp). I modified this file and I was able to compile correctly and see my...

managing native handles with generics

I have a C# .NET 2.0 CF project where I'm using a number of native methods. Several of those methods revolve around HANDLE objects of some sort. I'd like to abstract out the handle management lifetime using generics like this: public abstract class IHandleTraits { public abstract IntPtr Create(); public abstract void Release(Int...

AIR - Native Process Listeners

i'm launching a native process from my AIR app which loads a command line program as a background process and need to know when the process has successfully executed and is ready. when the program has launched normally by simply double-clicking on the file, it opens in Terminal (Mac OS X) and outputs some text stating that it is ready f...

Pure java implementation of the java.lang.Math class

I just downloaded the openjdk source and came to the realization that nearly all of the java.lang.Math class was implemented in native c/c++ code. I was wondering if there were any implementations that were fully written in java. ...

Android EmailProvider

Hi, Is there a way to access the EmailProvider class via reflection? thanks! ...

Native Drag and Drop check for dropped item's id

I would like to check to see if an item with id === itemId is dropped on a droppable element, using native Drag and Drop. function dragDrop(itemId){ var droppable = document.querySelector('#droppableElement'); addEvent(droppable, 'drop', function(e){ if (e.preventDefault){ e.preventDefault(); ...

Do the same parameters of different JNI calls have the same values?

For example, there are two different JNI methods of the SAME object class JavaObj{ public native void methodA(); public native void methodB(); } The JNI headers for these methods could be JNIEXPORT void JNICALL Java_JavaObj_methodA(JNIEnv * pEnv, jobject javaobj); JNIEXPORT void JNICALL Java_JavaObj_methodB(JNIEnv * pEnv, job...

AIR - Launching Native Process In Windows Not Working

i'm attempting to launch a command line executable program as a background process in Windows 7, but it's not working. my AIR application is a native installer application: myAIRApp.exe. i've bundled myApp.exe with my AIR application, so that when it launches for the first time, the application copies myApp.exe to the applicationStorag...

Why does a Process's "Private Bytes" memory counter never return back to it's original value?

If I have a native C++ program and look at it's initial "Private bytes" memory counter why would it not go back down to it's original value after an object has been created and then deleted? For example if I have an application (32bit, Native C++ MFC ) that has two buttons. One in a loop that allocates 1,000,000 instances of an object ...

MSBuild: Custom.After.Microsoft.Common.targets for native C++ projects in VS2010

I've read about the use of "Custom.Before.Microsoft.Common.targets" and "Custom.After.Microsoft.Common.targets" in order to execute a custom target before/after every project build and I would like to use this technique in order to change version info while building on our TeamCity build server. The problem is that although it works fo...

Performance benefits of Apache Tomcat native connectors

I have compiled and deployed the native connectors for Tomcat and have run my load testing benchmarks. There is no measurable difference. So my question is, under which circumstances are native connectors demonstratably faster? and can they be tuned to gain more performance from them. I do not mean "how do I benchmark to show an incre...

Saving image data of the fax job

I'm using WinFax.dll to send and recieve faxes in my application and it works rather well for now. The problem is that I want to Save the image information in a FaxJob but the output is not any recognizable format. I have tried with Tiff, Gif, Bmp, Png and Jpg but it is not working so I thought maybe there is a problem in how I do it. ...

Why is java.lang.UNIXProcess.forkAndExec(Native Method) hanging

Hi, I have a java application running on Solaris. This application regularily launches external processes using Runtime.exec. It seems that after a while, having successfully launched such processes many time over, a launching of a process will hang. A thread dump taken at this point (and several minutes later) reveals that java.lang....

AIR - Batch File As CMD.exe Argument

AIR doesn't permit launching .bat files as a native process directly, so apparently i'm suppose to set CMD.exe as my startupInfo executable and pass my .bat file and it's arguments. i can't get it to work, so i'm hoping it's a syntax problem. here is my code: var testStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(...