Your post is confusing, unclear and clueless ALL at the same time. Anyone attempting to answer you will have a tendency to jab a needle into their eye.
However, to answer your post: If the other application has opened the file in exclusive access mode, you will not be able to even read it. Again, if you do have access to the file, it is not clear from your post if you want to save updates to the same file (depends on if the application that created the file is allowing other applications to perform a write operation on it).
It is a crappy thing, but it's life -^Carlo Pallini
not sure what you mean - if its some sort of program you've written, then its quite easy to keep a 'dirty'/'has-been-modified' flag, set that when ever data is changed, inspect it periodically and save the data if it has been set.
If you mean controlling some sort of other program not written by you then you'll have to supply more information
My guess is in the first example the sizeof operator can calculate the size of the array. When it comes to pointers - no such luck. Try passing the size of the allocated memory directly (preferably by using a #define):
Make sure you're linking against comsupp.lib (or some variant thereof - there's comsupp, comsuppd, comsuppw and comsuppwd) - that's where that symbol is defined. There is a #pragma in the #import process that specifies to link against that library, but it's possible, I guess, that doing the #import in stdafx negates the effect of the #pragma.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p