ATL ActiveX controls cannot be used

Hi,

I used the wizard to create an ATL project with one ATL control.

The generated code compiles but the control is not useable. I tried VB6 and User forms in Office VBA but in neither I can add the component to the component toolbar. I get this error:


Microsoft Visual Basic

'D:\Projects\Misc\HypGrid\Debug\HypGrid.dll' could not be loaded

OK Help

This is on my dev machine, so all the debug dlls are there. Registration with RegSvr32 is working.

I could also convert an ATL project from VS2005 to Orcas, build it and use the control. So it doesn't seem to be the runtime dlls but the generated code.

--

SvenC

[688 byte] By [SvenC] at [2008-3-3]
# 1

Hello

And if you test it in the activex test control container or oleview does it still not work? What options did you select wizard?

Thanks

Damien

DamienWatkins-MSFT at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Visual C++ Orcas...
# 2

Hi Damien,

I just tried to repro it and created another plain ATL control and it is useable without problems. So I just rebuilt the problematic built and now it is also useable.

I am not aware that I changed anything - strange. I'll keep an eye on it as I will now start to create an ATL control with Orcas.

--

SvenC

SvenC at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Visual C++ Orcas...
# 3

Hello

Re: ATL ActiveX controls cannot be used

I am going to mark this thread as answered since it is working now. If the error returns then please submit further details and mark the thread as unanswered.

Thanks

Damien

DamienWatkins-MSFT at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Visual C++ Orcas...

Visual Studio Orcas

Site Classified