Compiler error importing TestStand ActiveX Engine with Borland C++ Builder 6

I'm having problems importing TestStand Engine Activex in Borland C++ Builder 6.
In the file "TS_TLB.h" automatically generated, the compiler stops with the error message "E2034: Cannot convert 'Variant' to 'tagSAFEARRAY'"
and the point in source code is...
LPSAFEARRAY __fastcall InsertCodeModules(VARIANT itemList/*[in,opt]*/= TNoParam())
_TDispID _dispid(/* InsertCodeModules */ DISPID(18));
TAutoArgs<1> _args;
_args[1] = itemList /*[VT_VARIANT:0]*/;
OleFunction(_dispid, _args);
return _args.GetRetVariant();//<<<<
Is there anything like in Delphi Operator Interface help file "readme.doc" that I can do to avoid this problem?
Thank you.

Axeel -
I have never used Borland Builder C++ but I downloaded the trial version 6.0 (Build 10.160) and I was able to use the Project Import Type Library menu command to generate the TS_TLB files. From there I was able to create a simple form application where I dropped the TEngine control from the ActiveX palette, a button control and a timer control for message polling. The code below is what I added to call into TestStand. I did not have any compiling problems.
Hope this helps...
Scott Richardson (NI)
void __fastcall TForm1::Button1Click(TObject *Sender)
try
VARIANT_BOOL = VARIANT_FALSE;
TNoParam tNoParam;
Ts_tlb:equenceFilePtr seqFile;
Ts_tlb::ExecutionPtr exePtr;
Form1->Engine1->UIMessagePollingEnabled = true;
seqFile = Form1->Engine1->GetSequenceFile(L"c:\\temp\\temp.seq", 0);
exePtr = Form1->Engine1->NewExecution(seqFile, L"MainSequence", 0,
0, 0, tNoParam, tNoParam, tNoParam);
exePtr->WaitForEnd(-1, 1, tNoParam);
catch (Exception &exception)
Application->ShowException(&exception);
catch (...)
try
throw Exception("");
catch (Exception &exception)
Application->ShowException(&exception);
void __fastcall TForm1::Timer1Timer(TObject *Sender)
Ts_tlb::UIMessagePtr UIMsg;
if (!Form1->Engine1->IsUIMessageQueueEmpty)
UIMsg = Form1->Engine1->GetUIMessage();
UIMsg->Acknowledge();
Scott Richardson
National Instruments

Similar Messages

  • What does compiler error " import test; `.`expected" mean ?

    Hi,
    I have a compiler error for following lines. There is a file called Const.java and this file is located on the same directory with the file I intend to compile. However, it seems compiler looks for an import package...
    What does "import test;" command mean ? What is missing in following source code ?
    c:\test> javac -classpath ./ -d ./ *.java one/*.java
    Error :
    test2.java:1: '.' expected
    import test;
    ^
    Source :
    (c:\test\test.java)
    class test
         public static void main(String[] args)
              System.out.println("Hello World!");
    (c:\test\one\test2.java)
    package one;
    import test;
    class test2
         public static void main(String[] args)
              System.out.println("Hello World!");

    Source :
    (c:\test\test.java)
    class test
         public static void main(String[] args)
              System.out.println("Hello World!");
    Since you have no package statement in here, then it is said to reside in the default package. This means, (I believe) that you will not need to use an import statement to use this class. However, if I am wrong, which you can find out in testing, another solution would be to include all you classes in the same package, in this class have both source files start with the line :
    package one;Hope this helped.
    Ed

  • Compile errors importing Map$Entry

    Hi,
    I trying to compile code written by my client which uses the following syntax
    import java.util.Map$Entry.
    This throws a compilation error :
    cant resolve symbol class Map$Entry
    package : java.util
    The same compile at the client side works. Am i missing some configuration. Also why is the path defined as Map$Entry instead of Map.Entry.
    any help would be greatly appreciated
    thanks and regrads
    Kumar Vellal

    What you're client is trying to do is import a nested class. To do this you use the syntax:
    import A.Enclosing.Nested;Now you can refer to the nested class without refering to the enclosing class (i.e Nested n = new Nested();)
    However - Some compilers don't like this, and I don't like it. You shouldn't import nested classes directly like this.

  • Compilation Error - Operation != is illegal with Forte 6 U1

    when I compiled the following source code, I get the error below. I believe i am missing something basic. I ompile on Solaris 8/Forte 6Update1.
    Compilation Error message:
    "tmp.C", line 73: Error: The operation "PhoneBook != PhoneBook" is illegal.
    1 Error(s) detected.
    //Source Code
    #include <map>
    #include <string>
    #include <iostream>
    #include <utility>
    struct PhoneBook
    //constructors
    PhoneBook(long number, std::string address) ;
    PhoneBook(const PhoneBook& rPB) ;
    //assignment operator
    PhoneBook& operator=(const PhoneBook& rPB) ;
    //destructor
    ~PhoneBook() ;
    //comparison operators
    bool operator<(const PhoneBook& rPB) ;
    bool operator==(const PhoneBook& rPB) const;
    //friend function
    friend std::ostream& operator<<(std::ostream& os, const PhoneBook& rPB) ;
    //data
    long m_Number ;
    std::string m_Address ;
    PhoneBook::PhoneBook(long number, std::string address)
    m_Number = number ;
    m_Address = address ;
    PhoneBook::PhoneBook(const PhoneBook& rPB)
    m_Number = rPB.m_Number ;
    m_Address = rPB.m_Address ;
    PhoneBook::~PhoneBook()
    bool PhoneBook::operator==(const PhoneBook& rPB) const
    return (m_Number == rPB.m_Number) ;
    PhoneBook& PhoneBook::operator=(const PhoneBook& rPB)
    m_Number = rPB.m_Number ;
    m_Address = rPB.m_Address ;
    return *this ;
    bool PhoneBook::operator<(const PhoneBook& rPB)
    return (m_Number < rPB.m_Number) ;
    using namespace std;
    using namespace std::rel_ops;
    int main()
         PhoneBook p1(1234, "foobar");
         PhoneBook p2(2341, "oobarf");
    if (p2 != p1)
              cout<<"Not equal" <<endl;
    } else {
              cout<<"Not equal" <<endl;
         return 0;
    //Source Code
    thanks
    easwar

    This has been fixed in Sun One Studio 8, Compiler Collection.
    - Rose

  • Compile error import java.util.map$entry

    Hi,
    I am trying to compile code which imports the following package
    import java.util.Map$Entry.
    The error thrown up is : cant resolve symbol Map$Entry. Why is there a $ in the package import path and is there some configuration required to compile the file.
    I am not allowed to change the code. Does anyone have an idea on how this problem can be solved.
    Thanks and regards
    Kumar Vellal

    Btw java docs for the interface are available at:
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.Entry.html
    Changing the import should probably help compile the code, but without changing the import .. need to check. This is just from what i remember now. Lets see if anyone else comments on this.

  • [SOLVED]compile error w3m 0.5.3 with mouse support

    Hi Friends. i'm Trying to compile w3m test based browser with mouse support. I donwloaded the latest source available from sourceforge website.The ./configure runs correctly and produces no errors. but when I run make, it gives me the following error. (other users on internet say that they have compiled it flawlessly).The error message is:
    gcc  -I. -I. -g -O2 -I./libwc    -DHAVE_CONFIG_H -DAUXBIN_DIR=\"/usr/local/libexec/w3m\" -DCGIBIN_DIR=\"/usr/local/libexec/w3m/cgi-bin\" -DHELP_DIR=\"/usr/local/share/w3m\" -DETC_DIR=\"/usr/local/etc\" -DCONF_DIR=\"/usr/local/etc/w3m\" -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/local/share/locale\"   -c -o main.o main.c
    In file included from html.h:10:0,
                     from fm.h:39,
                     from main.c:3:
    istream.h:23:8: error: redefinition of ‘struct file_handle’
    In file included from /usr/include/fcntl.h:32:0,
                     from istream.h:14,
                     from html.h:10,
                     from fm.h:39,
                     from main.c:3:
    /usr/include/bits/fcntl.h:251:8: note: originally defined here
    main.c: In function ‘main’:
    main.c:836:23: error: void value not ignored as it ought to be
    main.c: In function ‘getChar’:
    main.c:2264:5: warning: passing argument 1 of ‘wtf_parse1’ from incompatible pointer type [enabled by default]
    In file included from fm.h:44:0,
                     from main.c:3:
    ./libwc/wtf.h:71:19: note: expected ‘wc_uchar **’ but argument is of type ‘char **’
    make: *** [main.o] Error 1
    Also, can you tell me which option to use to compile with mouse support? Thanks.
    Last edited by Pranavg1890 (2012-10-11 18:12:35)

    i tried enabling and disabling the mouse support. but makepkg give me this error:
    config.status: creating po/Makefile
    gcc -I. -I. -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I./libwc -DHAVE_CONFIG_H -DAUXBIN_DIR=\"/usr/lib/w3m\" -DCGIBIN_DIR=\"/usr/lib/w3m/cgi-bin\" -DHELP_DIR=\"/usr/share/w3m\" -DETC_DIR=\"/usr/etc\" -DCONF_DIR=\"/usr/etc/w3m\" -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/share/locale\" -c -o main.o main.c
    main.c: In function ‘main’:
    main.c:836:23: error: void value not ignored as it ought to be
    main.c: In function ‘getChar’:
    main.c:2264:5: warning: passing argument 1 of ‘wtf_parse1’ from incompatible pointer type [enabled by default]
    In file included from fm.h:44:0,
    from main.c:3:
    ./libwc/wtf.h:71:19: note: expected ‘wc_uchar **’ but argument is of type ‘char **’
    main.c: In function ‘handleMailto’:
    main.c:2953:11: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    main.c: In function ‘editScr’:
    main.c:2661:11: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    main.c: In function ‘editBf’:
    main.c:2638:11: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    main.c: In function ‘execsh’:
    main.c:2091:8: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    make: *** [main.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    Someone please help me. I need mouse support for this browser very badly. Maybe a programming expert can tell me what changes should i do to source code or what is wrong?

  • Connection error while connecting to engine with names

    hi
    Due to DR setup one of our DEVLPMNT server are moved to different site and it's IP got changed.
    Both IP and system name are working for connecting to the engine, but if we try to connect from local through SSMS it is connecting only with IP and it is throwing error when we are using instance name.
    ->Two instances are there in server, both engines can be connected by using IP or INSTANCE NAME in server
    could please some one help me in this
    with regards,
    ram

    Sounds more likely to be a DNS issue than a SQL issue?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Oscilloscope with Borland C++ Builder 3

    Hi there!
    Building a oscilloscope with DAQ card in BCB3: Do I have to build that from
    scratch? Or exist there any (free) packages that help me doing that?
    Thanks for helping me. Lukas

    Hello,
    We have a program with works with CWAIPoint and CWDIO.
    Could you say us the problem you have ?

  • Warning: Type created with compilation errors. sql : oracle 11gr2

    I'm trying to create a supertype customer service and subtype agent and supervisor, so they can inherent values however when I try to run this in oracle sql: a message comes up
    Warning: Type created with compilation errors.
    What is wrong with the code below?
    Create or replace type customer_s_type as object ( csID number, csName varchar(15), csType number ) NOT FINAL;  Create or replace type supervisor_type UNDER customer_s_type ( title varchar (10) );  Create or replace type agent_type UNDER customer_s_type (title varchar (10));  Create table supervisor of supervisor_type ( CONSTRAINT supervisor_PK PRIMARY KEY (csID));  Create table agent of agent_type (CONSTRAINT agent_PK PRIMARY KEY (csID));  create table customer_service( csID number(10), csType number(10), constraint supervisor_pk primary key(csID) );

    Wile creating TYPE you need to terminate with a back slash (/) semi colon does not work.
    Try like this
    create or replace type customer_s_type as object ( csid number, csname varchar(15), cstype number ) not final
    create or replace type supervisor_type under customer_s_type ( title varchar (10) )
    create or replace type agent_type under customer_s_type (title varchar (10))

  • (SD 1.5.4.59.40) Compilation with coment - success with compilation error

    Hi!
    If I run this script:
    create table t(n number);
    create or replace
    TRIGGER t1
    -- Coment wiсh work!
    BEFORE UPDATE ON t
    REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    DECLARE
    past_due EXCEPTION;
    begin
    if 1 = 1 then
    raise_application_error(-20001, 'First trigger!' , TRUE);
    end if;
    end t1;
    +/+
    create or replace
    -- Coment with error
    TRIGGER t2
    BEFORE UPDATE ON t
    REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    DECLARE
    past_due EXCEPTION;
    begin
    if 1 <> 1 then
    raise_application_error(-20001, 'Second trigger!' , TRUE);
    end if;
    end;
    +/+
    Result:
    +SQL Command: create or replace --+
    Failed: ORA-24344: success with compilation error
    +24344. 00000 - "success with compilation error"+
    *Cause:    A sql/plsql compilation error occurred.+
    *Action:   Return OCI_SUCCESS_WITH_INFO along with the error code+
    anonymous block completed
    trigger text in SLD Developer:
    create or replace TRIGGER t2
    BEFORE UPDATE ON t
    REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    DECLARE
    past_due EXCEPTION

    It looks to me like there is a bug in the logic that determines if the current statement is SQL (terminated by ";") or PL/SQL (terminated by "/") - putting the comment before the object type you are creating is causing SQL Developer to assume it is SQL and it stops the statement at the first ";".
    The same thing happens if you try to create a package with a comment between the "create or replace" and the "package", for example:
    create or replace
    -- comment
    package xxx_pkg
    i number;
    j number;
    end;
    /creates a package with the following source, executing as a statement (so long as the cursor is between the create and the first ";"):
    package xxx_pkg
    i numbertheFurryOne

  • Compile error after upgrade to jdev 1013 from 9052

    Hi,
    I just upgraded to jdev 10.1.3.0.4. We had this program compile correctly in jdev 9052, but is now erroring out during compile:
    Error(5,34): identifier expected (with enum highlighted), at the following line.
    import gov.epa.cdx.axis.security.enum.AuthMethod;
    Can you help me to correct this? Thanks.

    SU is a service update but that won't fix your problem.
    "enum" is a keyword in Java 5 and therefore may not be used in identifiers.
    In 9.0.5.2 you were compiling with JDK 1.4 I presume.
    Either change the package name or use JDK 1.4 for your project.
    Sascha

  • Flex 2 Compatibility?  Seeing StreamingAMFChannel compile error

    I have seen postings such as <br />http://tjordahl.blogspot.com/2008/03/blazeds-and-flex-2-compatibility.html<br />suggesting that BlazeDS is compatible with the latest versions of Flex 2 SDK.<br /><br />My experience shows that this may not be completely true.<br /><br />In Flex Builder 3, I have created a project using Flex 2.0.1 Hotfix 3 SDK.<br />This points to:<br />C:\Program Files\Adobe\Flex Builder 3\sdks\2.0.1<br />which is build 180927.<br /><br />I have code like this:<br /><br />public function sendRequest(): void {<br />        var ro:RemoteObject = new RemoteObject();<br />        ro.addEventListener(ResultEvent.RESULT, resultHandler);<br />        ro.addEventListener(FaultEvent.FAULT, faultHandler);                  <br />                  <br />             <br />     if (_channelId != null && _channelUrl != null)<br />        {<br />   var cs:ChannelSet = new ChannelSet();<br />                    <br />   var myChannel:AMFChannel = new AMFChannel(_channelId, _channelUrl);<br />   myChannel.pollingEnabled = true;<br />   myChannel.pollingInterval = 8000;<br />   cs.addChannel(myChannel);<br />   ro.channelSet = cs;<br />        }<br />               <br /><br />   ro.destination = "myService";<br />   ro.channelSet = cs;<br />                                   <br />   ro.myOperation();               <br />}<br /><br />When compiling this I get the following error message:<br /><br />Channel definition, mx.messaging.channels.StreamingAMFChannel, can not be found.<br /><br />Even when I comment out the above code referencing AMFChannel, the compile error still occurs (even when doing a "clean" build).<br /><br />Here are the relevant compiler settings:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><actionScriptProperties mainApplicationPath="client.mxml" version="3"><br /><compiler additionalCompilerArguments="-services &quot;C:\tomcat_blazeDS\webapps\myservice\WEB-INF\flex\services-config.xml&quot;<br />  -locale en_US" copyDependentFiles="true" enableModuleDebug="true" flexSDK="Flex 2.0.1 Hotfix 3" generateAccessible="false"<br />   htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.28" htmlPlayerVersionCheck="true" <br />   outputFolderLocation="C:/tomcat_blazeDS/webapps/myservice/swf" outputFolderPath="bin-debug" sourceFolderPath="src" <br />   strict="true" useApolloConfig="false" verifyDigests="true" warn="true"><br /><compilerSourcePath/><br /><libraryPath defaultLinkType="1"><br /><libraryPathEntry kind="4" path=""><br /><modifiedEntries><br /><libraryPathEntry kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" useDefaultLinkType="true"><br /><crossDomainRsls><br /><crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="framework_3.0.0.477.swz"/><br /><crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="framework_3.0.0.477.swf"/><br /></crossDomainRsls><br /></libraryPathEntry><br /></modifiedEntries><br /></libraryPathEntry><br /><libraryPathEntry kind="1" linkType="1" path="libs"/><br /><libraryPathEntry kind="3" linkType="1" path="myCore.swc" useDefaultLinkType="false"/><br /></libraryPath><br /><sourceAttachmentPath/><br /></compiler><br /><applications><br /><application path="client.mxml"/><br /></applications><br /><modules/><br /><buildCSSFiles/><br /></actionScriptProperties><br /><br />Any comments on whether this should work, and is supported?  If this is expected to work, I would also appreciate some ideas on work-arounds.<br /><br />Thank you,<br />David

    David,
    Even when you comment out the channel (actually all channels) that has the
    reference to mx.messaging.channels.StreamingAMFChannel this still doesn't
    work?
    Are you sure that FlexBuilder is pointing at the right services-config.xml
    file when it compiles the MXML? It can't point at a BlazeDS 'default'
    config.
    It sounds like the problem is that the Flex2 libraries in the swf are trying
    to load that channel class which is new for Flex3 and it isn't there.
    Removing any and all references to this class in the config files used to
    compile the swf should fix it.
    Let us knwo if that isn't it.
    Tom Jordahl

  • Compiler error using compareTo

    I get a compiler error when I use compareTo with the Character class. I confirmed the error with following code from The Java Tutorial:
    public class CharacterDemo {
    public static void main(String args[]) {
    Character a = new Character('a');
    Character a2 = new Character('a');
    Character b = new Character('b');
    // ******* Problem is here ************
    int difference = a.compareTo(b);
    if (difference == 0) {
    System.out.println("a is equal to b.");
    } else if (difference < 0) {
    System.out.println("a is less than b.");
    } else if (difference > 0) {
    System.out.println("a is greater than b.");
    System.out.println("a is "
    + ((a.equals(a2)) ? "equal" : "not equal")
    + " to a2.");
    System.out.println("The character " + a.toString() + " is "
    + (Character.isUpperCase(a.charValue()) ? "upper" : "lower")
    + "case.");
    The compilier is complaining that compareTo is not part of the Character class. I am compiling with whatever compilier was installed with Suse Linux 7.1. The code compiles fine on my university's Unix system that I can dial into.
    I figure my Linux version must have some old compiler. But to be honest, I am also new to Linux and am having trouble figuring out what I am compiling with. Can any expert out there give me advice on identifying/updating the Java technology I am using. Thanks in advance.
    Jim

    Check the jdk version using the java command:
    java -versionwhich will output the jdk version you're using.

  • Compiler error

    Two compiler error occurred when I progromed with LabView 6i to implement serial communication.
    "copy cvt, csrc=ox40"
    "bad mode in _GenCopyNumCod xc=0x40"
    Why? Thanx.

    Hello,
    I know that several 'compiler errors' were fixed in the LabVIEW 6.0.2 update. You can download this update from the NI website. After installing the update I recommend you perform a mass compile of your VIs. You can learn more about mass compiling in the LabVIEW on-line help.
    If after mass compiling in LabVIEW 6.0.2 you are still having problems, please let me know...if possible, please attach a simple VI that demonstrates the problem.
    Have a pleasant day.
    Darren N.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Compilation error mySql

    Hi
    How i can remove the following compilation error to get a connection with mySql...........
    test3.java:19: cannot access Statement
    bad class file: .\Statement.class class file contains wrong class: org.gjt.mm.mysql.Statement Please remove or make sure it appears in the correct subdirectory of the classpath.
    Statement stmt = con.createStatement();
    thanks in advance ^

    sounds like u have a corrupted class file in the connectorJ! just download it again and remove teh jar from teh zip top level directory... put THAT in teh classpath

Maybe you are looking for

  • Corrupted video and rendering problems

    Before I upgraded the software (FCP 5.0.3 to 5.0.4, and the latest OS X update) I could capture and export movies with no problems. Using the "File>Export>Quicktime Movie" option set to "Use current settings" provides the disastrous results of digita

  • Stored procedure design(IDoc to JDBC)

    I need design inputs from you people, My requirement as follows, we are creating orders(IDoc) in SAP and want to insert data in to Data base table, one IDoc data to be inserted in to multiple tables(min 4).I developed interfaces it is working fine, s

  • Latest Linux 3.17 kernel with OpenEmbedded/Yocto

    I'm currently building my Linux system using the OpenEmbedded linux-xlnx_3.14 recipe in the meta-xilinx layer. I've noticed that SDK 2014.4 produces a somewhat different device tree to previous versions, which I assume has to do with the newer 2014.4

  • PHP, MySQL, Apache and MAMP

    Could someone tell me if there will be any problem if I first downloaded PHP then MySQL and after I enabled all these things I installed MAMP? Is it possible to delete all those things that I have donloaded before MAMP? If so, then how to do it?

  • Oracle.xml.sql.query.OracleXMLQuery not found

    Hi! Sorry, but I got a project to continue and there is an import statement "import oracle.xml.sql.query.OracleXMLQuery;" and this gives me a compilation error... What do I need to do, where do I find this class??? Any help? //Patricia