native

How to get user's OU programmatically with ldap C++

how to get user's ou programmatically with ldap C++ ...

Cross-platform redirect of standard input and output of spawned process in native C/C++ (edit with solution)

Hello, I have a string command I'd like to execute asynchronously while writing to its input and reading its output. Sounds easy, right, the devil is in the cross-platform. I'm targeting both MSVC/Win32 and gcc/Linux and obviously want to write the minimum amount of platform-specific code. My google-fu has failed me, I get too much nois...

Flags returned by OSVERSIONINFOEX.wSuiteMask

Does anybody know what the following constants (defined in WinNT.h) mean? #define VER_SUITE_COMMUNICATIONS 0x00000008 #define VER_SUITE_EMBEDDED_RESTRICTED 0x00000800 #define VER_SUITE_SECURITY_APPLIANCE 0x00001000 The values are returned in the wSuiteMask field of the OSVERSIONINFOEX struct. ...

Windows thumbnail/frame view

What would be the easiest way to make a thumbnail view, where you have a panel with a vertical scroll bar, and a matrix of images describing their associated image? I'd also like it such that if the parent frame resized horizontally, the matrix would shrink to as many columns as necessary to display the thumbnails without a horizontal sc...

Using native code functions as JavaScript objects in WebKit

I'm unable to use native code functions as JavaScript objects in WebKit-based browsers. Is it impossible to alias these functions directly? This is easiest to explain by example, so here is what I am running in the Developer Tools console: console.warn; // Outputs: // function warn() { // [native code] // } console.warn("console....

What are some good WWSAPI information sources?

Does anyone have some good suggestions for sites, books, tutorials or other information sources on WWSAPI and its use? I'm being dropped in the deep end on a project using it and want to bring myself up to speed. http://msdn.microsoft.com/en-au/magazine/ee335693.aspx has been the main source of my knowledge so far. ...

Why does a native library use 1.5 times more memory when used by java as when used by a C-Programm under linux?

I've written a library in C which consumes a lot of memory (millions of small blocks). I've written a c program which uses this library. And I've written a java program which uses the same library. The Java program is a very thin layer around the library. Basically there is only one native method which is called, does all the work and re...

Learning Direct2D

I have some experince creating windows controls in GDI and now I'm looking for good resources (APIs, samples & good practices) to start learning about Direct2d. ...

FileDescriptor's actual system file descriptor (as int) in Android

Is there a way to get system file descriptor (socket or file number as int) from Android's FileDescriptor object? I'd like to access file descriptor directly in JNI code without using any Java wrappers. Edit: I've found getParcelFileDescriptorFD and that FileDescriptor has int field named "descriptor", example usage in media/jni/android...

Debugging Native API in java

I am Using some APIs which are native libraries.Is there a way to debug them in eclipse? When i try to debug them ,those native APIs do not get loaded and the session terminates abruptly. ...

Android - How to display a dialog over a native screen?

I was wondering if anyone can tell if how to pop a dialog screen up over a native Android screen? I currently have an application that traps an outgoing call and stops it, I then want to pop up a dialog that would take over from the dialler screen and alert the user that there attempt to call has been blocked and allow them have some ne...

Using Mysql native functions with ActiveRecord on development environment

Hi. I need to query my database using mysql native functions such as YEAR(date) or NOW().... This works on staging and on production environments but it won't work in my development environment because of SQLite's lack of support to these functions. Can you help? Thank you. ...

Application wide periodic tasks with Dialog Based MFC application

In Single Document Interface (SDI) or Multiple Document Interface (MDI) MFC application, I created an application wide timer in the View. The timer will tick as long as the application is running and trigger some periodic actions. How can I do the same with Dialog Based MFC application? Should I create Thread's Timer (SetTimer with NU...

hw to get source code native c language library of java 1.4?

Hi i want to see implementation of java.util.zip.CRC32. But within this class its using native c library functions for core implementation.How can I get the native source code. I can see the java.util.zip.CRC32 source code, but this doesn't have the actual implementation. ...

Accessing Microsoft.Win32.UnsafeNativeMethods?

Microsoft has a very nice Windows API wrapper included in .NET framework. It is stored in Microsoft.Win32.UnsafeNativeMethods , Microsoft.Win32.SafeNativeMethods and Microsoft.Win32.NativeMethods.Unfortunately they aren't accessible because they are declared as private. Is there a way of accessing them easily? ...

Inject managed DLL into native process problem

I need to subclass a richedit control in a chat program (I am trying to make a musicbot). I dont know how to code in c/c++ but i was able to use c++ to inject a managed code into the chat program using CLR Hosting. But couple problems occurs. Hopefully I can get some help from here. My managed code would exit after it finished the thre...

How do I create a non managed Windows GUI in Visual C++?

When I create a 'Windows Forms Application', the resultant program is a managed one. Creating a 'Win32 Application' results in a native one, but when I try to add a form I'm informed that the project will be converted to CLI if I continue. How do I design a native Windows GUI with Visual C++ 2008 Express Edition? I'm probably being very ...

How to use Maven to handle a cross-platform (Windows + Linux) Java Native Interface Project?

I am currently trying to develop a cross-platform solution that will make some UI components that are not already part of the java standard library available to my java code. I am writing xlib code for X11 and using the relevant win32 api's for windows. Is it possible (or even recommended?) to setup a java and c code build system using ...

Logging calls made by native code

In Java, several native methods e.g. in the Java Runtime Library may call regular (bytecode-based) methods. I would like to know if there is some VM command-line parameter or some instrumentation tool or API that I can use to such calls. P.S. Note that I am not interested in calls to native code but from native code. ...

Server Push / HTTP Streaming on Windows Mobile / Windows CE

Hi, I find that HTTP Streaming / Server Push is quite promising for my project. Does someone have any clue on how to implement this in Windows Mobile? .NET / Native / other implementations are welcomed. Preferably with permissive license. some links on HTTP Steaming / Server Push: - Push Technology - Streaming HTTP / Server Push - Cro...