.NET

.NET

Reply
Valued Contributor
67 Posts
0 Kudos
Registered: ‎07-19-2013
Post 1 of 2

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

228 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
762 Posts
100 Kudos
Registered: ‎03-21-2011
Post 2 of 2

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!