Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread C/C++ ElevateDB Module
Mon, Nov 4 2013 2:58 AMPermanent Link

Harrison Grundy

I'm trying to convert some legacy C code that only builds under mingw32 / 64 (or gcc) into an ElevateDB module. The code performs some spatial operations on a single lat/long, then returns an updated lat/long. Is there an example C module stub I could use as a basis for this?

A simple example of the function (that simply turns turns them into "1" would be:

struct latlong {
   float lat;
   float long;
};

struct latlong updatell(float* a, float* b) {

   assert(a);
   assert(b);
   *a = 1;
   *b = 1;
   return
}


I know I need to implement CloseEDBModule, GetEDBModuleErrorMsg, GetEDBOutputParms, CallEDBRoutine,


Mon, Nov 4 2013 2:59 AMPermanent Link

Harrison Grundy

The wonders of trying to slap together code in a browser.


The basic operation of the module would be to accept 2 floating point values, and return, ideally, two different floating point values, or a character string I could parse back out in Elevate.

Any ideas would be greatly appreciated.

--- Harrison Grundy
Tue, Nov 5 2013 2:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Harrison,

<< I'm trying to convert some legacy C code that only builds under mingw32 /
64 (or gcc) into an ElevateDB module. The code performs some spatial
operations on a single lat/long, then returns an updated lat/long. Is there
an example C module stub I could use as a basis for this? >>

I've uploaded something that should work here:

http://www.elevatesoft.com/forums?action=view&category=edb&id=edb_binaries&msg=53&page=1

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Image