Data exchange Com-object <> Progress

JvdB

Member
Which datatype needs to be provided by an ActiveX-object to realize a MEMPTR in a Progress application.

We have a problem with data exchange between an ActiveX-object and our Progress application. The ActiveX-objects sends information (a string) to our application but Progress does not support variables bigger then 32k and the information can be greater than 32k.

So how can I exchange a string greater than 32k between an ActiveX object and a Progress application.

Platform: Win98SE
Progress: 8.3B
 
You should be able to define the datatype in the ActiveX-Object as char * and as a MEMPTR type in progress (char * is a pointer to char which is interchangable with progress MEMPTR). Now use GET-STRING to break it up into smaller chunks:

Code:
lc_string1 = GET-STRING(lm_mem,     1, 16384).
lc_string2 = GET-STRING(lm_mem, 16385, 16384).
lc_string3 = GET-STRING(lm_mem, 32769, 16384).
 
Top