I'm having a real problem and need some help.
We use a product called Documentum. It's a document manager. There's an API available for both VB and C/C++. This worked quite find until VB.Net came along. The reason follows:
The API works using requests and results in strings parameters. All the procedures return integers that indicate success/failure. For instance an API may request data with the string "get,c,user_name" as the first parameter and the result is written into a second.
Prior to VB.Net the second string needed to be defined something like:
Dim Result as String * 1000
This was necessary because the API "wrote" the result into the memory location provided. That's how it works. This type of declaration is not possible in VB.Net.
The only way that I've found around this is to do something like:
Dim Result as String = " "
With lots of spaces. VB.Net doesn't support the String * XXXXX syntax.
The problem is that the result I get is still one huge string with tons of spaces and the real result in the first few characters. For whatever reason, the Trim commands and such don't work on it.
I'm completely stuck. I need to do something like what I could prior to VB.Net - or at least I need to have a reasonable way to "suck" the good data out of this monster space-padded string, but I can't seem to find any way of doing this.
Help!!!
We use a product called Documentum. It's a document manager. There's an API available for both VB and C/C++. This worked quite find until VB.Net came along. The reason follows:
The API works using requests and results in strings parameters. All the procedures return integers that indicate success/failure. For instance an API may request data with the string "get,c,user_name" as the first parameter and the result is written into a second.
Prior to VB.Net the second string needed to be defined something like:
Dim Result as String * 1000
This was necessary because the API "wrote" the result into the memory location provided. That's how it works. This type of declaration is not possible in VB.Net.
The only way that I've found around this is to do something like:
Dim Result as String = " "
With lots of spaces. VB.Net doesn't support the String * XXXXX syntax.
The problem is that the result I get is still one huge string with tons of spaces and the real result in the first few characters. For whatever reason, the Trim commands and such don't work on it.
I'm completely stuck. I need to do something like what I could prior to VB.Net - or at least I need to have a reasonable way to "suck" the good data out of this monster space-padded string, but I can't seem to find any way of doing this.
Help!!!