At 06:44 AM 19 07 00 -0700, you wrote:
> Get an array of floats (maybe x,y,z values, for example) from a data
>base, pass them to my application, process them, then write them back to a
>data base. It seems to me that the only way to do this is to create a temp
>file outside of GeoSoft with my x, y, z values, have my app read them in,
>then write them out externally after processing, then import this data set
>to my data base (yuchhh).
Jerry,
You really are making life hard on yourself. Take a look at the VV class. It is a
fully featured resizable array, which is very useful on it's own, or you can transfer
the array data to a vb array using GetData_VV. I generally just manipulate the VV and
don't bother using other arrays. Put all of your vb code in a function within a dll
and then call that function from a gx. In my case the function often includes the
dialog, so that the entire gx consists of something like this
{
Mittal_DD();
}
Actually I'm only assuming you can transfer it to VB, as I don't use VB at all. I do
all of my more elaborate programming in Delphi, which has many similarities to VB, but
a little more power and fewer limitations. Almost anything that can be done in C++ can
be done in Delphi. (NOTE: if there are any other Delphi gx developers out there I
would love to hear from them!)
Using the import libraries you can use any gx function from whatever language you
choose. I've found myself writing pure gx code in Delphi at times, with only a few
syntax changes. There are still advantages to doing it that way. You can define your
own function library to cut down on the boilerplate which makes up so much of a gx.
You can define and use your own classes which really opens everything up. You can use
code completion to speed up coding dramatically (in my case, anyway).
Event driven programming in the sense of interactively manipulating a Geosoft object
such as a map or spreadsheet is a little trickier because you don't get access to the
other object again until your gx finishes. The "events" largely consist of running a
gx. Within your gx you can respond to the events contained within it but I don't think
you can use callbacks or respond to geosoft events. I have accidentally created dll
functions before which returned control to Oasis without closing, so maybe there is
some scope there. Does that answer your question?
cheers
Marc Pelletier
---------------------------------------------------------------------------
Data Donkey - Geophysical Data Processing, Consulting and Software Development
Creator of the POWER TOOLBOX utilities for OASIS montaj
contact: mailto:[EMAIL PROTECTED] tel (306) 931-6853 or http://www.datadonkey.com
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html