Dear List...

A small correction to the response below... "OPPI" is NOT obsolete, merely
the manner in which the linking to the Geosoft libraries is done has changed
to use geogx.lib; I should have said that the old OPPI DLL used below was
obsolete... 

My apologies for any misunderstanding.

_______________
Geosoft Inc.
Stephen Cheesman
[EMAIL PROTECTED]
(905) 315-8207

Software and services for effective earth science decision-making.
Free Oasis montaj interface now available at http://www.geosoft.com
 

-----Original Message-----
From: Stephen Cheesman [mailto:[EMAIL PROTECTED]]
Sent: August 12, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: RE: [gxnet]: OPPI problem with negative line numbers


Anthony:

This was a bug that was fixed nearly two years ago, in v5.0.3. The bug was
an erroneous check made on the input line number, which should have simply
checked that the line number was not a dummy, instead of checking that it
was >= 0. The work-around is simply to link with the latest version of
geogx.lib as is shown in the example workspaces in your oasismontaj/gxdev/c
directories (for example "/chanadd/chanadd.dsw". "OPPI" is obsolete...

Stephen Cheesman
_______________
Geosoft Inc.
Stephen Cheesman
[EMAIL PROTECTED]
(905) 315-8207

Software and services for effective earth science decision-making.
Free Oasis montaj interface now available at http://www.geosoft.com
 

-----Original Message-----
From: Anthony Dunk [mailto:[EMAIL PROTECTED]]
Sent: August 11, 2002 7:32 PM
To: [EMAIL PROTECTED]
Subject: [gxnet]: OPPI problem with negative line numbers



I've been using both OPPI 4 and OPPI 5 (with the C progamming language) and
have found that neither supports the creation of line symbols with strings
containing negative line numbers. Also, the SetLineNum_DB() function fails
if a negative integer is passed in as the new line number.

I have encountered Geosoft databases which contain negative line numbers, so
they are obviously allowed, but why doesn't OPPI support setting negative
line numbers ? Is this a bug. And is there a work-around ?

Here's a sample piece of code which works fine if line numbers are positive
but fails if they're negative:

// Create line symbol
  vnLineHandle[nLine] =
   CreateSymbEx_DB(pGeo, &hDB, linenum_str, _l(DB_SYMB_LINE),
        _l(DB_OWN_SHARED), _l(DB_CATEGORY_LINE_FLIGHT),&nTemp);
  long nLineHandle = vnLineHandle[nLine];

  // Lock the symbol
  LockSymb_DB(pGeo, &hDB, &nLineHandle,_l(DB_LOCK_READWRITE),
_l(DB_WAIT_NONE));

  // Generate a negative line number - just for testing. This causes the
SetLineNum_DB() function to fail !
  long nNewLineNum = -100+nLine;
  SetLineNum_DB(pGeo, &hDB, &nLineHandle, &nNewLineNum);

  // Unlock the symbol
  UnLockSymb_DB(pGeo, &hDB, &nLineHandle);
  GEO_ERROR;

Thanks,
Anthony.


_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html

Reply via email to