1. Toan Nguyen
  2. PowerBuilder
  3. Tuesday, 16 May 2023 12:17 PM UTC

Hello Everyone,

In my PB2017R3 application, we have a picture window and need to support image rotation. I was able to get Roland Smith's canvas application and migrated to PB2017.

I copied the instant variables and function prototypes for GDIPLUS.DLL to my window.

However, I received errors when trying to save the window object due to Illegal data type errors.

I was able to fix the illegal data type: RECT error by using 'str_rect' in place of RECT. 

I don't know how to fix the errors for other illegal data types like GDIplusStartupInput, GDIplusStartupOutput. str_rectf,

ImageCodecInfo, etc.

I attached the screenshot to show the error.

Am I missing an .h file or some file?

I can run Roland's canvas application after migrating it to PB2017R3 with no issue.

I appreciate any helps from anyone from the community.

Thanks in advance,

Tony

Attachments (1)
Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 16 May 2023 12:44 PM UTC
  2. PowerBuilder
  3. # Permalink

I answered on your other similar post. The objects have embedded structures. It would be better to copy my objects to your app and place u_cst_picture on your window.

Comment
  1. Roland Smith
  2. Tuesday, 16 May 2023 12:46 PM UTC
Also, .h files are used by C/C++ to define variables. They aren't used by PowerBuilder.
  1. Helpful
There are no comments made yet.
Toan Nguyen Accepted Answer Pending Moderation
  1. Tuesday, 23 May 2023 14:24 PM UTC
  2. PowerBuilder
  3. # 1

Hello all,

Roland - Yes, followed your suggestion, I copied the 3 userobjects into my apps and was able to use them. It works great. Thank you.

Also, in my application, we need to be able to support Zoom In/Out functions. I saw that you have ZoomHorizontal and ZoomVertical functions in the u_cst_picture user object (UO)

I am trying to follow C/C++ examples to code it in PB scripts and having a hard time making the Zoom In/Out functions to work.

Do you or anyone out there have added the Zoom In/Out functions to the u_cst_picture UO and can share with me?

Thanks again,

Tony

 

 

 

 

Comment
  1. Roland Smith
  2. Tuesday, 23 May 2023 14:29 PM UTC
There is a SetZoom function in the u_cst_picture object.
  1. Helpful 2
  1. Toan Nguyen
  2. Tuesday, 30 May 2023 15:44 PM UTC
Yes, I can use the SetZoom() to support the Zoom In/Out functionality in my application



Thank you, Roland!



Tony



  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 16 May 2023 12:35 PM UTC
  2. PowerBuilder
  3. # 2

Hi.

In Roland's example there are some object structures declared in u_cst_picture. Have you copied those one?

Andreas.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.