.NET

Reply
Valued Contributor
amyyoyo1
Posts: 58
Registered: ‎07-19-2013
Message 1 of 2 (172 Views)

ByVal x As stdole.OLE_XPOS_PIXELS, ByVal y As stdole.OLE_YPOS_PIXELS in vb.net

172 Views, 1 Replies
09-20-2013 02:00 PM

Hi all, I am currently migrating some of the vba code into vb.net.

I run into this error that I not sure how to fix.

ByVal x As stdole.OLE_XPOS_PIXELS, ByVal y As stdole.OLE_YPOS_PIXELS

I google search the types but it seem like it only existing in vba,and vb6. I found thie reference file stdole.dll and added in ,but it did not inculd the OLE-XPOS-PIXELS type.

can someone tell me if this type exist if not is there something similar to it?

please and thanks

ADN Support Specialist
Balaji_Ram
Posts: 669
Registered: ‎03-21-2011
Message 2 of 2 (136 Views)

Re: ByVal x As stdole.OLE_XPOS_PIXELS, ByVal y As stdole.OLE_YPOS_PIXELS in vb.n

09-25-2013 02:22 AM in reply to: amyyoyo1

Hi,

 

In "OleCtl.h", the "OLE_XPOS_PIXELS" is a typedef for a long.

So I think in VB.Net, you can replace it with "Long"

 

Regards,



Balaji
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community