G
Guest
HOWTO: Add methods to C++ UserControl.
Please help,
I want to add a method to a C++ .NET UserControl that is based off the
sample in the MSND article titled:
How to automate Internet Explorer in a contained UserControl control by
using Visual C++ .NET 2003
This article shows how to make and deploy, and run a C++ UserControl. But I
do not know how to use Visual Studio to add a method to the sample, so that
script in an HTML files that uses the UserControl can call the method.
Example:
<html>
<OBJECT id="theId" classid="YourControl.dll#NameSpace.NameOfControl">
</OBJECT>
<script>
var csRET = theId.RunMyMethod("Hello", "World");
alert("The RET is '" + csRET + "'...");
</script>
</html>
Please help,
I want to add a method to a C++ .NET UserControl that is based off the
sample in the MSND article titled:
How to automate Internet Explorer in a contained UserControl control by
using Visual C++ .NET 2003
This article shows how to make and deploy, and run a C++ UserControl. But I
do not know how to use Visual Studio to add a method to the sample, so that
script in an HTML files that uses the UserControl can call the method.
Example:
<html>
<OBJECT id="theId" classid="YourControl.dll#NameSpace.NameOfControl">
</OBJECT>
<script>
var csRET = theId.RunMyMethod("Hello", "World");
alert("The RET is '" + csRET + "'...");
</script>
</html>