M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post your tools and samples or ask for them.
micsto
Germany
Posts: 732
Joined: 07 Mar 2017, 16:07
Location: Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by micsto » 15 Mar 2018, 10:58

Hi everybody,

I'm pleased to announce that M!Table 3.0 / M!Image 3.0 BETA have been released.
The new versions are supporting TD 7.1 and 64 Bit :mrgreen:

Please note that the print functionality was migrated from Delphi to C++ and is now included in mtblXX.dll, hence mtblprXX.dll is no longer needed.
If you encounter any problems don't hesitate to contact me via email: support@micsto.com

Download M!Table:
www.micsto.com/Centura/Download/Beta/MTbl_300.exe

Download M!Image:
www.micsto.com/Centura/Download/Beta/MImg_300.exe

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1137
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Dave Rabelink » 15 Mar 2018, 11:32

Great Michael !!!

Thanks a lot for your efforts to keep this the best add-on for TD !
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Harald
Germany
Posts: 15
Joined: 30 Mar 2017, 06:16
Location: Oberhaching/Munich, Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Harald » 15 Mar 2018, 12:13

Great!!! :D :D :D

Thanks a lot!

efarina
France
Posts: 7
Joined: 09 Mar 2017, 07:47
Location: Paris, France

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by efarina » 15 Mar 2018, 12:43

Thank so much

It's' a great news for the community and for me :)
Best regards,

Eric Farina
Research and Development deputy Director
www.aareon.fr

Nils Jänicke
Germany
Posts: 16
Joined: 20 Sep 2017, 11:56
Location: Villingen-Schwenningen, Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Nils Jänicke » 15 Mar 2018, 15:36

Thank you.
I've tried MImg and MTbl on 7.0.4 64 Bit and it seems almost to run.
But on MImg I've got a problem. I want to change the icon bitmap of a pushbutton using a bitmap from a resource (inside the application in the "Resource" section).
Set hImage = MImgLoadFromResource(sIcon, MIMG_TYPE_UNKNOWN,0) returns a valid handle (sIcon is the name of a bitmap)
Set hDC = GetDC( hWndNULL) returns a valid DC handle
but
hBitmap = MImgCreateHBITMAP( hImage, hDC ) returns 2E+19 as result and SalPicSetHandle( hWndItem, PIC_FormatBitmap, hBitmap ) returns FALSE and does not show the bitmap (maybe because hBitmap is not valid).
With the previous MIMG version on 7.0.4 32 Bit this works fine.
Do you have any suggestions? Do you need a testcase?

Nils

micsto
Germany
Posts: 732
Joined: 07 Mar 2017, 16:07
Location: Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by micsto » 16 Mar 2018, 10:02

Hi Nils,

I've tested this scenario with the M!Image demo application, and loading an image from a TD resource and creating a HBITMAP works so far.
So it would be great if you could provide a testcase.

Nils Jänicke
Germany
Posts: 16
Joined: 20 Sep 2017, 11:56
Location: Villingen-Schwenningen, Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Nils Jänicke » 16 Mar 2018, 10:26

Ok, here is the test case, runs well on 32 Bit and fails on 64 Bit
You do not have the required permissions to view the files attached to this post.

micsto
Germany
Posts: 732
Joined: 07 Mar 2017, 16:07
Location: Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by micsto » 16 Mar 2018, 11:20

Well, it seems to be a problem with salPicSetHandle.
HBITMAP in a 64 Bit environment is an IntPtr, which is 8 Byte.

But in centura.h SalPicSetHandle is defined as follows:
BOOL CBEXPAPI SalPicSetHandle(HWND, INT, DWORD);

So it seems that this is a Team developer 64 Bit bug...

FRBhote
India
Posts: 1231
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by FRBhote » 16 Mar 2018, 12:02

How do I send you a cigar?

Nils Jänicke
Germany
Posts: 16
Joined: 20 Sep 2017, 11:56
Location: Villingen-Schwenningen, Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Nils Jänicke » 20 Mar 2018, 08:40

Semms that 64 Bit integer values are not fullly supported on TD 7.0.4 64 Bit. The & operator does not run on big number values, the expression nValue & 0xFFFFFFFF returns an error if nValue is a number larger than 32 bit and 0x100000000 is an invalid number.
I've found a workaround that may work in most cases:

If Not bResult
! Task: Workaround 64 Bit
Inserted: 2018-03-19-12.39
Created by: JN
Set bResult = SalPicSetHandle( hWndItem, PIC_FormatBitmap, SalNumberMod( hBitmap, 4294967296 ) )

So the hBitmap value is converted to a 32 Bit signed integer and the image is shown.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1137
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Dave Rabelink » 20 Mar 2018, 08:53

Thanks Nils for the workaround !!

As for full 64 bit support, there is already an enhancement request, see

viewtopic.php?f=41&t=12
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Nils Jänicke
Germany
Posts: 16
Joined: 20 Sep 2017, 11:56
Location: Villingen-Schwenningen, Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Nils Jänicke » 20 Mar 2018, 10:34

For better to read source code I would prefer

hBitmap & 0xFFFFFFFF
or SalNumberMod(hBitmap,0x100000000)

for the workaround but both does not work. The & operator does not like 64 Bit numbers and the hex constant declaration only supports up to 8 hex digits.

wwasilew
Germany
Posts: 5
Joined: 06 Mar 2017, 07:33
Location: Dortmund / Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by wwasilew » 14 Jun 2018, 09:55

Hi,

the M!Table 3.0 version for the TD70 seems to include the dll's from the TD63. We get by compile this error here
errorotd63dll.jpg
I now its Beta, but we want to try this version...
You do not have the required permissions to view the files attached to this post.
Wladislaw Wasilewitsch
---------------------------------------------------
Software Developer
Materna TMT GmbH

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1137
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by Dave Rabelink » 14 Jun 2018, 14:46

Yes.

TD70 (x86) -> uses cdlli63.dll
TD70 (x64) -> OK
TD71 (x86) -> OK
TD71 (x64) -> OK
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

micsto
Germany
Posts: 732
Joined: 07 Mar 2017, 16:07
Location: Germany

M!Table 3.0 / M!Image 3.0 BETA with TD 7.1 / 64 Bit support

Post by micsto » 25 Jul 2018, 09:01

Hi Dave,

sorry for the late reply.
The very first BETA version was faulty.
When did you download it?

BTW, I'm going to release an official version soon...

Return to “Tools & Samples”

Who is online

Users browsing this forum: No registered users and 0 guests