I only have 75 points to give, and I'm giving them all on this one...
I need someone who REALLY understands accessing memory by address (i.e. Copymem).
Here's the background:
I have converted some C++ code to VB.
I am using a company's DLL to integrate with their app.
When I query their app, it sends back an lParam which I then stuff into a Type (using Copymem).
The Type contains 3 vars, the last of which is an address.
I then use Copymem (again) to try to locate the next 'chunk' of data and shove it into another Type.
At this point, it always fails. Either a crash, or totally bogus values. I'm not sure if the Type def is the problem (thereby receiving a 'bad address') or if VB handles the address incorrectly.
You can download my project as a place to start. Note that you cannot run it from the IDE - you have to compile it or VB generates DLL errors (you can use 'resume next' in a few places and get past this, but I'm using a Callback, so VB still locks up...)
To download my sample VB6 project click here:
To download a trial version of the app I'm integrating with (You HAVE to do this, or you can't test anything):
After downloading and installing Myriad v6, look in the "intgclt\myrtest" folder. They have a compiled C app which does what I want:mitest32.exe
With this sample, you can 'connect to myriad' and issue the 'inquire document' command.
You can actually run this simultaneously with mine, and when I get the callback, so does mitest32.
They also have a bunch of sample C code and a basic API document "intgdoc.rtf".
Feel free to email me directly (firstname.lastname@example.org)
Is anyone bold enough to tackle this for a whopping 75 points? ;)