Adn Utilities CSlideCtrl

Adn Utilities CSlideCtrl

Micky_SDP
Enthusiast Enthusiast
690 Views
3 Replies
Message 1 of 4

Adn Utilities CSlideCtrl

Micky_SDP
Enthusiast
Enthusiast

Hi all,
I've a problem with the Slide.ocx in my arx in a 64 bit system.

The problem was that if I try to insert by VS 2010 the Slide Ctrl in my Dialog, my application fails because VS2010 allow me to insert only a 32 bit OLE control and my aplpication is 64 bit (it is an arx forAtocad 2013 64 bit) .

 

So, I would try to insert "by code" my CDSlideCtrl, but if a try to create it I don't see it in my Dialog and the crete method fail.

 

My code is this:

 

CDSlide64Bit *m_CSlideCtrl = new CDSlide64Bit();

CFile *file = new CFile(_T("D:\\Simboli\\Titolo1.sld"), CFile::modeReadWrite);

 


if(m_CSlideCtrl->Create(_T("my slide"), WS_VISIBLE, CRect(10,10,150,100), this,0, file,0, 0))
{
   m_CSlideCtrl->AboutBox();
}

 

 

Anyone can help me?

 

Thank's and sorry for my bad english..

Michele

 

0 Likes
691 Views
3 Replies
Replies (3)
Message 2 of 4

owenwengerd
Advisor
Advisor

Is slide.ocx a 64-bit module? Is it registered correctly? What errors are displayed in the debugger output window during the call to Create()?

--
Owen Wengerd
ManuSoft
0 Likes
Message 3 of 4

Micky_SDP
Enthusiast
Enthusiast

I've installed (and i Think correctly registred) 64-bit and 32 bit adn utilities as indicated by the adn guide. But th VS2010 see me only a 32 OLE Control because, I think, it is 32 bit.

 

So, to insert the control in a 64 bit application I try to insert it by code..

0 Likes
Message 4 of 4

Balaji_Ram
Alumni
Alumni

Hi Michele,

 

I am glad you are already doing it right.

 

Here is a blog post that might clarify this topic further and hopefully help others who might search for this topic in future.

http://adndevblog.typepad.com/autocad/2012/07/use-64-bit-activex-component-from-a-net-assembly.html

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes