Forum Post: RE: DataDirect being called by Progress

  • Thread starter Thread starter Marian Edu
  • Start date Start date
Status
Not open for further replies.
M

Marian Edu

Guest
For *nix you're left only with C and shared libraries, this should work if you make some kind of data access library that will use the ms$sql odbc libraries and wrap those samples you have in something along the lines of: procedure sqlSelect external 'odbc_sql.so': define input parameter sqlStatement as character. define return parameter resultSet as long. end. procedure freeResult external 'odbc_sql.so': define input parameter resultSet as long. end. define variable pResultSet as int64. define variable memResult as memptr. run sqlSelect("select * from customer", output resultSet). /* get result set data from memory, json/xml your own serialization */ set-pointer-value(memResult) = resultSet. finally: /* don't forget to free the memory allocated by library */ run freeResult(resultSet). end finally. or maybe you get mono to work with a .net wrapper but guess that this is still not supported by PSC.

Continue reading...
 
Status
Not open for further replies.
Back
Top