Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default 32 bit DLL with 64 bit Excel 2010

Thanks, Pete.

I didn't mean that converting from VB 6 to VBA would be hard, but rather
that converting from VB 6 to VB 2010 would be hard.

Steve

"Peter T" <peter_t@discussions wrote in message
...
Sorry for the accidental post

I can't add to the reply given by Charles but just this bit

The DLL is coded in VB 6.0, so we cannot compile it into a 64-bit DLL.
We've looked into porting it to VB 2010, but that would be an
impractically-large project because the DLL has about 25,000 lines of
code, much of which would require manual conversion.


Are you sure so much would need conversion. Apart from Form code, which
would indeed need to be re-made, I imagine there'd be much less in the way
of conversion required from VB6 to VBA than the other way round.

Regards,
Peter T


"Steve Flaum" wrote in message
...
We have an app which creates large Excel workbooks. For example, one
workbook has 1,000 worksheets. In other cases there are fewer worksheets
but the Excel file can be 80 MB or larger. Since this sometimes crashes
Excel 2007 and 2003, I'm considering using 64 bit Excel 2010. Would
64-bit Excel be more reliable with workbooks this size than 32-bit Excel?
Is 32-bit Excel 2010 any more (or less) reliable with large workbooks
than Excel 2007?

The problem with using 64-bit Excel is that the workbook uses a 32-bit
native code DLL. Specifically, the workbook executes a VBA macro with the
following statements:

Dim mCCalc As Object
Set mCCalc = CreateObject(strName, "")
mCCalc.Init Application

The 32-bit DLL executes many Excel methods, using the reference to Excel
passed in the 3rd line above.

The DLL is coded in VB 6.0, so we cannot compile it into a 64-bit DLL.
We've looked into porting it to VB 2010, but that would be an
impractically-large project because the DLL has about 25,000 lines of
code, much of which would require manual conversion.

I've read that a 32-bit activeX control cannot be used with 64-bit Excel
2010, but this isn't an ActiveX control. Is there a way to use it with
64-bit Excel? For example, could Tlbimp.exe create a wrapper which would
make the 32 bit DLL look like a 64-bit managed-code DLL? If so, could I
call the latter from VBA? What would this do to execution speed? (The
current design runs the DLL in process with Excel, but can nevertheless
run for a couple of hours.)

Thanks.

Steve




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
Excel 2010 Javed Excel Programming 1 April 22nd 10 03:51 PM
Excel 2010 Rao Ratan Singh Excel Discussion (Misc queries) 6 April 6th 10 06:38 AM
Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM Peter Gonzalez[_2_] Excel Worksheet Functions 2 January 26th 10 06:58 PM
Can't open workbook in excel 64 bit 2010 - but can in excel 2010 3 Darrell[_2_] Excel Programming 0 January 12th 10 08:53 PM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"