Okay, I've been doing work with ASPs in VBScript. I was asked to put together a Proof of Concept based on some other work. That's fine, but I am getting increasingly upset with VBScript, and I didn't feel like doing this quick and dirty PoC in multidimensional arrays that would need to be ReDim'ed every time I wanted to add an element.
I downloaded ActivePerl and have done this most recent ASP in PerlScript. But I need to add a chart to this page. The VBScript ASPs have been calling a server side ActiveX DLL that accepts an array (variant), builds a chart from the MSChart control and returns a filename. That filename is the JPeg image of the chart, you just include it in the img tag.
Well, I went in and doctored the ActiveX DLL so it is accepting a comma delimited string of values instead of an array. But I'm getting an unspecified syntax error when I call it.
Does anyone have any ideas, or have any ideas as to how I can find out more about why it is not working.
Here is the an example of the original VBScript
<%@ Language='VBScript' %> <% Dim PieChart, FileName Set PieChart = Server.CreateObject("WCP.WCPCharts") FileName = PieChart.CreatePieChart(arrChartData) %>
This is my test ASP to see if I can make the call with PerlScript.
<%@ Language='PerlScript' %> <% my $return; my $labels = "first,second,third"; my $averages = "3,4,5"; my $maxes = "6,7,8"; my $mins = "1,2,3"; my $ChartObject = $Server->CreateObject("WCP.WCPCharts") $ChartObject->CreateBarChart($return, $labels, $averages); %> <%=$return%>
I'm getting a syntax error on line 11. $maxes and $mins are optional arguements to CreateBarChart. I get the same error if I include them.
-Travis
In reply to Calling Server Side ActiveX DLL by THuG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |