Re: Internet plugin

[email protected] Thu, 05 Jun 2008 17:07:58 +0000
Newsgroups gmane.games.devel.windows
Message-ID <060520081707.3084.48481D6E000D4EDA00000C0C22155786749C0E079D0E039C0E04D290@comcast.net>
VS should be registering the control for you. If you look at Build Events/Post-Build Event, it has:

regsvr32 /s /c "$(TargetPath)"

Also, I found this as a really good tutorial, where in step 7 you can embed it into a webpage:

http://msdn.microsoft.com/en-us/library/599w5e7x(VS.80).aspx

Though, instead of having it as a VB script:

<SCRIPT LANGUAGE="VBScript">
<!--
Sub PolyCtl_ClickIn(x, y)
   PolyCtl.Sides = PolyCtl.Sides + 1
End Sub
Sub PolyCtl_ClickOut(x, y)
   PolyCtl.Sides = PolyCtl.Sides - 1
End Sub
-->
</SCRIPT>

you can do this:

<SCRIPT type="text/javascript" for="PolyCtl" event="ClickIn(x, y)">  
PolyCtl.Sides = PolyCtl.Sides + 1;
</SCRIPT>
<SCRIPT type="text/javascript" for="PolyCtl" event="ClickOut(x, y)">  
PolyCtl.Sides = PolyCtl.Sides - 1;
</SCRIPT>




 -------------- Original message ----------------------
From: Stephen Clibbery <[email protected]>
> Diogo de Andrade wrote:
> > Hi Steve,
> >
> > I've already looked onto ATL, but I honestly couldn't find a place to
> > start...
> > I've built an ATL project (using the template), and while it compiled and
> > everything, it apparently didn't become visible to the Control Test
> > Container... :\ 
> > If you have any pointers on when to start (web resources, source code,
> > books, etc), I'd appreciate it...
> >
> > Thanks for the help,
> > Diogo
> Hi Diogo,
> 
> I don't recall having any problems with registering the control; doesnt VS 
> register it for you automatically after building it? AFAIK, that ought to be 
> enough to make it appear in the test container. It is also possible to register 
> it manually using the regsvr32 exe. Maybe there was a problem with it which 
> meant registration failed? It'd be worth looking for errors/debug-output etc 
> when the registration takes place to check this.
> 
> In terms of references, I just found stuff of the web; heres a few (probably 
> random) links from when I was researching it:
> 
> http://edndoc.esri.com/arcobjects/8.3/GettingStarted/ATL.htm
> http://www.codeguru.com/Cpp/COM-Tech/atl/tutorials/article.php/c17
> http://www.codeguru.com/Cpp/COM-Tech/atl/atl/article.php/c73
> http://support.microsoft.com/kb/q166480/
> http://msdn.microsoft.com/en-us/library/727z646z.aspx
> http://msdn.microsoft.com/en-us/library/xt153e2k.aspx
> http://www.microsoft.com/msj/0299/atl3activex/atl3activex.aspx
> 
> The trick seemed to be to get the wizard set up right to do most of the work for 
> you, then tweak/extend as needed at the source code level afterwards.
> 
> HTH,
> Steve
> 
> 
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Gamedevlists-windows mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=555


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555