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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.