ProFoxers,
I've started down the road of attempting to create a DLL in C# using VS2019. Here's the problem I'm trying to solve.
I want to retrieve the current orientation value from a JPG. If it exists, I want to rotate the image to that value. Finally I want to set/delete the orientation tag.
I found a lovely .Net code sample that describes the problem and appears to do exactly what I want. You can see the source here:
https://www.ryadel.com/en/change-image-orientation-iphone-andor-android-phone-pics-net-c/
Now assuming this code works, the trick is how to get it into a DLL that I can call from VFP. I've created a Helper class project in VS; got it to build the DLL cleanly and that's where I start running into a brick wall. I used a white paper from Doug Hennig as a guideline on how to invoke from a PRG using wwDotNetBridge and InvokeStaticMethod. Sadly all I've been gotten from that call is a NULL. Then I tried to debug using VS and it tells me I can't debug a Helper DLL; I have to add an executable thing-a-ma-jig to the project. (As you can see my VS knowledge is a bit...lacking.)
Tips, tricks and tutorial hints gratefully accepted. I'm happy to get more into actual code once I have enough of a foundation to actually discuss this intelligently. 😊
--
rk