Fog Creek Software
g
Discussion Board




ActiveX testing

I'm trying to test a couple ActiveX components that I've developed in some spare time. I've tried the Visual Studio ActiveX Control Test Container, but found it very cumbersome.

In the meantime I've just been creating another quick 'n dirty VB project, and including it there, but that leads to all sorts of issues with component versions. As well, one can't seem to make a component if another project is using it (makes sense, I guess).

Anyone have any suggestions for a tool that lets me test various properties etc. on a component, and doesn't hinder me much when making a new version? Not sure if this is logically possible though.

This is a side project, and I'm not looking to spend much (any) money on this. If it makes a difference, these are visual components that I'm working on.

Nigel
Tuesday, January 6, 2004

Not sure I understand what you're trying to do, but you can set an ActiveX control's properties from a container (ie. the EXE that is calling it) through the usual Property Get/Let (or is it Set?) routines.

I assume you did remember to check "Binary compatibility" after compiling your component the first time :-)

Frederic Faure
Tuesday, January 6, 2004

I did set the binary compatability. If that is checked, should I not have a problem making a control while it's being used inside another project?

If so, my question would be moot.

I'd just have to figure out what the problem is then ;-)

Nigel
Tuesday, January 6, 2004

Try testing the component in a scripting language like VBScript or late binding it in visual basic. That way, the component is only referenced when your test script is running...

DarenThomas
Wednesday, January 7, 2004

The source for the MS ActiveX test container is available online at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/vcsmpTSTCONActiveXControlTestContainer.asp  You don't say what's wrong with it, but you may be able to modify it to fit your needs.

R1ch
Wednesday, January 7, 2004

*  Recent Topics

*  Fog Creek Home