native

Where's the Win32 resource for the mouse cursor for dragging splitters?

I am building a custom win32 control/widget and would like to change the cursor to a horizontal "splitter" symbol when hovering over a particular vertical line in the control. IE: I want to drag this vertical line (splitter bar) left and right (WEST and EAST). Of the the system cursors (OCR_*), the only cursor that makes sense is the OC...

What is the best C++ book for an intermediate to expert developer?

Possible Duplicate: The Definitive C++ Book Guide and List I'm looking to pick up a good C++ book. I have been programming for many years in managed languages and I will me making the jump to native code using C++. What books do you recommend to get me up to speed with all the intricacies of C++. Thanks. ...

How to tell if a process is running on a mobile device

I have the handle of process 'A' on a Pocket PC 2003 device. I need to determine if that process is still running from process 'B'. Process 'B' is written in Embedded Visual C++ 4.0. ...

Are .NET languages really making any kind of dent in consumer desktop applications?

Do you write consumer desktop applications with .NET languages? If so what type? My impression is that most consumer desktop applications are still native compiled applications in C, C++ and the like. Whilst .NET languages are growing in up take and popularity, do these new breed of applications ever break out of the enterprise & web d...

Can you use the Phoenix compiler as a more powerful NGEN?

In case you don't know of Phoenix, it's a compiler framework from Microsoft that's apparantly going to be the foundation of all their new compilers. It can read in code from CIL, x86, x64, and IA64; and emit code in x86, x64, IA64, or CIL. Can I use it to transform a pure .Net app into a pure native app? By which I mean, it will not hav...

How much speed-up from converting 3D maths to SSE or other SIMD?

I am using 3D maths in my application extensively. How much speed-up can I achieve by converting my vector/matrix library to SSE, AltiVec or a similar SIMD code? ...

Anyone ever tried to develop in C or C++ for Blackberry platforms?

Every indication I have, based on my experience in embedded computing is that doing something like this would require expensive equipment to get access to the platform (ICE debuggers, JTAG probes, I2C programmers, etc, etc), but I've always wondered if some ambitious hacker out there has found a way to load native code on a Blackberry de...

Options for refactoring bits of code away from native C++?

So, one commonly heard comment when talking about performance is that you write your code with whatever language gets the job done fastest. If performance in specific areas is a problem, then rewrite those bits in C/C++. But, what if you're starting with a native C++ app? What options do you have if you want to write the easy bits, or r...

is there a "best practice" to access another process in the OS through java?

Hi, I've been reading Skype4Java (java api for skype) and noticed they use jni to access the skype client. intuitively I'd assume that there already is a standard library in java that has an OS-sensitive jni implementation to access other processes. I set up to look for one, but couldn't find it. Is there such a library? if not, is t...

Will Learning C++ Help for Building Fast/No-Additional-Requirements Desktop Applications?

Will learning C++ help me build native applications with good speed? Will it help me as a programmer, and what are the other benefits? The reason why I want to learn C++ is because I'm disappointed with the UI performances of applications built on top of JVM and .NET. They feel slow, and start slow too. Of course, a really bad programme...

How can I set the /baseaddress to a "good" value?

We have a project with many dll files which get loaded when the application starts. The baseaddresses of the dll files do overlap so that the memory image gets relocated. Is there a possibility to assign the baseaddresses automatically or a way to calculate a "good" baseaddress for each dll file? ...

Can a .NET app be complied to native.

Hi all, Just wondering if a .NET app can be compiled down to native machine code ahead of time? I'm not planning on doing so if you can, I'm just curious. Thanks ...

Repeating background image in native iPhone app

Short of putting a UIWebView as the back-most layer in my nib file, how can I add a repeating background image to an iPhone app (like the corduroy look in the background of a grouped UITableView)? Do I need to create an image that's the size of the iPhone's screen and manually repeat it using copy and paste? ...

Can I create a unit test for a method which marshalls a value from an IntPtr?

I am using a native library which returns an IntPtr to a memory location, which contains the value of an attribute. I know what the type of the attribute is and I have a method for marshalling a value (taking the IntPtr and the type of the attribute) from the memory pointed at by the pointer. This method either calls Marshal.ReadInt32,...

Native VC++ using external (not project) dll reference how to specify path to dll

I have a native VC++ project that uses a dll (which is not in a project). Now, I must to put the dll in one the "Search Path Used by Windows to Locate a DLL" link but I don't want the dll to sit in the exectuable or current or windows or system directory. So my only option according to that is adding the path to the %PATH% environment...

What is the actual function of the C# project setting "Allow unsafe code"

I was wondering if the C# project setting "Allow unsafe code" applies only to unsafe C# code in the project itself, or is it necessary to set this option when linking in a native C++ DLL? What about linking in a managed DLL that itself links to a native DLL? What does this option really do, under the hood? ...

How can I tell if my managed code is leaking memory due to native library calls?

I have a managed dll that calls into a native library. This native library generally returns IntPtrs. These can be passed in to other methods in the native library to do things, or to tell the library to free the instance associated with the IntPtr. But only some of the instances need to freed in this way, others are managed by the li...

Setting iPhone wallpaper (locked screen background) programmatically?

I have an app which could benefit from the user being able to choose to set an image as the wallpaper (the background image on the "slide to unlock" screen). Is there a way for non-jailbreak third-party apps to do this? A search for "wallpaper" in the iPhone documentation returns nothing. ...

Code profiling / performance analysis tools for Windows CE/Mobile

What tools do you know, other than those in Visual Studio, to analyze performance bottlenecks in a Windows CE/Mobile application? I'm looking for something like AQTime for CE/Mobile, to profile C/C++ applications compiled to native code. ...

Free memory from a SafeArrayGetElem call?

I have some code in C# which has a com wrapper. This com wrapper is used in a native c++ application. The c++ code uses a method which returns an array of instances of a class from the c# library. The instances come from a SafeArray like so: for (long i =min; i<=max;i++) { IMyInterface *l = (IMyInterface *)malloc(sizeof IMyInterf...