native

CryptAPI native Interop with .NET Code

Hi, I have managed to encrypt data in native code using the Crypto API and decrypt this in .NET (C#) code, using RC2 algorithm and SHA for creating a key. This is the native code (Delphi in this case): // Get handle to CSP If Not CryptAcquireContext(hCryptProv, nil, nil, PROV_RSA_FULL, 0) Then If Not CryptAcquireContext(hCryptProv...

Making DDE calls from Java

Wondering if anyone has experience and/or sample code for making DDE calls from Java. I've done DDE using win32 calls from the stddde library (DdeInitialize, DdeClientTransaction), and could write a JNI wrapper for this, but I was thinking that it might be nice to do it from JNA I also have some concerns about the fact that DDE calls n...

Native Javascript method in GWT

I have a native Javascript method in one of my GWT Java classes, but I'm having trouble calling my Java methods from the native Javascript code. I tried to follow this as closely as I could, but I can't get it to work. I compiled it and ran it in Firefox, and the error console said "Error: this.lc is not a function". I tried changing all...

What are the troubleshooting steps/tools for C# to Native interop?

I have an SDK that is written primarily in C#. We have some native code that was written for security and performance reasons. We use DllImport to interop with the native code. There are a few functions that I get an "Unable to find an entry point named '...' in DLL '...'.":"" error. I have verified that the function that is not foun...

How do I make a file self-update (Native C++)

I'm using Microsoft Visual Studio 2008 with a Windows target deployment. How would I make a file "update itself"? I've already got the "transmitting over a network" part down, but how do I make an executable write over itself? Basically, I want to write an auto-updater for a directory that also includes the auto-updater, and the updater...

On blackberry and android : calling native application from a web browser ?

Hi, I'd like to know if it's possible to associate a protocol (for example: 'myapp') to a native application installed on a Blackberry (or Android) so that if a user types in 'myapp://xxx' in a web browser it calls the native application. In this case, how is it possible to achieve it ? As far as I understood, it's possible to do it wi...

Are there any programming languages that support xml natively?

If there are any then how deeply is xml integrated into language? What primitives are used to manipulate xml document? PS. I'm not interested in declarative languages such as SQL, XPath, XSLT :) ...

Why does Android page alignment cause issues with linking? (Android running native code)

Hi all, I was wondering if someone could provide me with a bit of theory. I read that; Page alignment causes changes in linking. Of very high impact on the success of compiling software for Android is the fact that Google forces compatible binaries to not be page aligned for the text and data section. This requires chang...

Remote debugging with visual studio and WinDbg server

Is it possible to use WinDBG as a server (instead of Visual Studio Remote Debugger) and connect to it using Visual Studio? ...

How can i make a website as a iphone native application?

Hey all.. I'm planning to convert my website into an iphone native application. I'm stuck up at the point how to achieve this. As i am new to iphone development, I'm not getting any idea on how to develop this. Initially, i have developed the first screen i.e., LOGIN screen of my application. My server is built in JAVA. I'm able to se...

Profiling native methods in Java - strange results

I have been using Yourkit 8.0 to profile a mathematically-intensive application running under Mac OS X (10.5.7, Apple JDK 1.6.0_06-b06-57), and have noticed some strange behavior in the CPU profiling results. For instance - I did a profiling run using sampling, which reported that 40% of the application's 10-minute runtime was spent in ...

Native threads using Java VM in Eclipse

Hi, I would like to run a Java program that uses the Thread class such that each Thread.run() results in running a proper kernel thread. Is there a way to achieve this by passing some command line parameter to the Java VM ? I am running Eclipse using Java 1.5 SDK (and jre1.5.0_18) on a Windows machine. I tried using -XX:+UseBoundThreads...

How to map enum in JNA

Hi, I have the following enum how do i map in jna ?? This enum is further referenced in structure. typedef enum { eFtUsbDeviceNotShared, eFtUsbDeviceSharedActive, eFtUsbDeviceSharedNotActive, eFtUsbDeviceSharedNotPlugged, eFtUsbDeviceSharedProblem } eFtUsbDeviceStatus; Abdul Khaliq ...

What's the difference between ahead of time compiled code and natively compiled code

i came across ahead-of-time (aot) compilation in some writing by Miguel de Icaza about producing applications for iphone using mono. It sounds like what results is native code. Is this so or what is the difference? ...

Firefox extension: native code execution?

Hi, Is it possible to write an extension that runs native, platform-dependent code? I'm an extension-newbie (what a phrase!) :), can you please point me towards good material on this subject? (good keywords to feed to Google are enough) (I would like to put a GtkMenu in Firefox) Edit: I started checking out the Gecko SDK, and it's a ...

Connect to a wireless network programmatically

I'm trying to write an application that connects to my company's wireless network automatically on windows XP. I've found the Wireless LAN API but it requires me to have some hotfix installed on the machine, and you need to have sp2 or higher(There are machines with SP1, and I'm required to support any XP machine). I've tried to find s...

.NET MenuStrip with native Windows renderer?

Does anyone know how to have the MenuStrips to rendered with native Windows look and feel depending the OS version the user is using? The current renders don't do it... I'm currently using a third party control that can do it but uses MainMenu and ContextMenu instead of what I'm looking for, the MenuStrip... ...

How to read a call stack?

We have a native C++ application running via COM+ on a windows 2003 server. I've recently noticed from the event viewer that its throwing exceptions, specifically the C0000005 exception, which, according to http://blogs.msdn.com/calvin_hsia/archive/2004/06/30/170344.aspx means that the process is trying to write to memory not within its ...

SQL Server 2005 native stored procedures

Hello, Can i write a C or native C++ stored procedures for SQL Server? Thanks. ...

What are the available tools to compile .NET projects to standalone native binaries?

What tools do you know to compile .NET projects to native binaries that run without .NET Framework, so far I've found : Xenocode Postbuild for .NET, which costs $1599. Salamander .NET Linker, which costs $1249. Mono Ahead-of-Time compilation (AOT), free. Thanks to JaredPar and Reed Copsey Native Image Generator (Ngen.exe), free, does...