Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default A 64-bit variable from VBA to VC++ dll and back to VBA

Greetings,

I've been wondering for quite some time now on how to do 64-bit
operations on VBA and I have found some advice as well but all of them
are about operating on 64-bit variables inside VBA or getting a 64-bit
variable out of a VC++ dll. In these cases it's usually enough that you
multiply by 10 000 and the decimals go away but how about if you want
to send a 64-bit from VBA to a function in a dll and then get a 64-bit
result back from the dll and show it correct on a excel sheet for
example?

I tried this using VBA's currency data type and long long in vc++ but
somewhere along the way back to VBA the variable turns into something
totally different than what you'd expect it to be. It seems also a bit
challenging with negative 64-bit numbers.

If anybody has any information concerning my problem I would be very
glad to know about it. If you have any links to articles about vba's
and vc++'s data types being used together that would be great too.

yanne

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy back macro/roll back moh Excel Worksheet Functions 4 March 5th 07 02:19 PM
Pass a variable back to the host script? mb Excel Programming 2 October 29th 05 07:02 PM
How to pass a variable from Form back to calling procedure John[_111_] Excel Programming 4 August 21st 05 03:54 PM
How to save entire Cell in a variable and put it back later? Joe HM Excel Programming 3 April 24th 05 08:36 PM
Sending variable data to a web site to be computed then brought back to Excel David Excel Programming 0 April 27th 04 09:44 AM


All times are GMT +1. The time now is 07:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"