Re: Excel

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...

[snip..]

My little wrapper function that I hand wrote in C is what's meant to be called by your Excel VBA code. It takes the 'native' double values, and turns them into Euphoria atoms, uses those to call your code, then releases the memory it reserved, and returns the value.

I'm a little confused, but that's ok. Things are looking like it will work, so I will plow forward. One thing I'll need at some point, if you get a chance, is the C variations for different types of information which will be sent from Excel. I can see only three things: integers, strings and real numbers. I'll presume the real numbers were what your wrapper addressed and that I could probably make do with the same for integers. I have no clue on how to deal with text, though.

My confusion (one of many, of course) is based on the language of your wrapper. Where you use the lines:

a = NewDouble( ad );  
b = NewDouble( bd );  
c = _1MyFunction( a, b );  

it doesn't seem to be consistent with: "It takes the 'native' double values, and turns them into Euphoria atoms, uses those to call your code, then releases the memory it reserved, and returns the value."

Unless, of course, NewDouble is the function for converting a double into a Euphoria atom.

Thanks again.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu