Director 11.5 activex

Hi guys, i'm trying to change visibility of ana WMP activex control so that it's shows when i click on a button,
i used the sprite().visible property in the script but, problem is that change never happens until i stop the movie!!
the same thing doesn't happen with other sprites on the stage, they appear and disappear instantaneously!!!
am i missing someting!!
and another problem is that that WMP activex is always on top of everything else on the stage no matter is it's order!!
i would appreciate any help on that!!

bullzyz wrote:
thanx for your helpful reply and info, very interresting approach, i guess that is exactly what i should do, although a bit messy.
If could ask another question here related to activex; do the destination systems that the projector would run need to have this activex control installed or does it get bundled with the projector published file. i think all new windows systems already have the WMP ocx but what about older ones! ?
Thanx in advance!
Here's the web page that will get you started on the wonderful journey of obtaining a license to distribute the windows media player installer with your software: http://www.microsoft.com/windows/windowsmedia/licensing/distribute.aspx

Similar Messages

  • Director MX 2004 ActiveX

    Hi
    Does anyone know a link to some documented help on how to use
    Director MX 2004 in AW7 ?
    There is mention of using an Active X is this the Shockwave
    ActiveX ? If so how do I use it to display Director movies?
    Help please I am on a trial and need to know if incorporating
    Director MX into AW7 works ok
    Thanks
    Kevin

    Yes, you need to use the Shockwave ActiveX control. This also
    means
    your target machines need the shockwave player installed
    also.
    You need to insert the ActiveX control and name it something
    unique.
    Then after the ActiveX on the flowline in a calc put :
    SetSpriteProperty(@"Director", #SRC,
    Filelocation^"directorfile.dcr")
    substitute @"Director" for whatever you called the icon.
    That should get you started.
    Mark
    kjedwards wrote:
    > Hi
    >
    > Does anyone know a link to some documented help on how
    to use Director MX 2004
    > in AW7 ?
    >
    > There is mention of using an Active X is this the
    Shockwave ActiveX ? If so
    > how do I use it to display Director movies?
    >
    > Help please I am on a trial and need to know if
    incorporating Director MX into
    > AW7 works ok
    >
    > Thanks
    >
    > Kevin
    >

  • ActiveX in Shockwave

    hi,
    I'm have created a director with a activeX control insert.
    All is working fine til i tried to publish it as a shockwave. The
    activeX doesn't seems to be copy together with the shockwave
    itself.
    regards
    Andrew Mak

    I'd say ask George Bush that question...
    But, really, server side programming is an option as
    mentioned but you can
    also look into the several database Xtras that work over the
    web. They're
    pretty convenient.
    Craig Wollman
    Lingo Specialist
    Word of Mouth Productions
    212-928-9581
    www.wordofmouthpros.com
    "forget_r" <[email protected]> wrote in
    message
    news:epjj54$4bj$[email protected]..
    > Certainly running ActiveX within shockwave can posed a
    huge threat to all
    > users, but why not give the user a option instead?
    >
    > Currently i'm trying to access a database through
    shockwave and i have
    > found
    > two ways of doing so,
    >
    > 1) ActiveX control
    > 2) Using XDK, compile as a Xtra. However i read that you
    would need to
    > compile them into "safe to use" in shockwave before it
    can be deploy
    >
    > So is there any possible means to access databases
    through shockwave? thks
    >
    > regards
    > Andrew Mak
    >

  • How to find file o local http path

    hi
    my project have some media(mpg) file and it is locate on my local lan and play in director with costom activex control witch is call media file via http path like: "http://localhost:8035/test.mpg", here localhost is my local encription server software with 8035 port and one root directory witch contain all the media files.
    now i want to check before playing media file that media file is exist or not on that root folder. on local path or normal lan path i use buddyapi's "bafileexist()" command but on http is can't work. any other xtra or control for that ? please............
    thanks
    dharam

    can you explain in some detail please, or any link of tutorial, because this concept is totally new for me.
    thanks

  • Acrobat Reader 7.0 und ActiveX in Director

    Acrobat Reader 7.0 verfügt nicht mehr über
    "pdf.ocx". Leider funktioniert deshalb meine mit Macromedias Director programmierte Anwendung nicht mehr richtig.
    Wie kann ich das ActiveX-Modul von Acrobat Reader 7.0 ansprechen?
    Warum funktioniert die LoadFile Methode nicht mehr?
    Kann ich pdf.ocx trotzdem auf dem System registrieren, auch wenn Acrobat Reader 7.0 installiert ist?
    Ekki Makosch

    Unfortunately, I've had no response to my post as of yet.
    Interestingly, I was playing around with it a little further. I was finally able to get acrobat reader 7 to start but only under the following conditions:
    - I created a new user with no files in the home directory
    - I logged in remotely via ssh and set my DISPLAY
    - I was then able to bring up acrobat reader 7. v8 still hangs right after the GUI comes up.
    I tried unset'ing all of the environment variables as my normal user and setting only the ones defined in the working environment above. v7 still would hang.
    I tried 'su - newuser' but v7 would still hang.
    I tried 'ssh newuser@localhost' and v7 would start.
    I tried logging in via ssh as my normal user and v7 hangs.
    Again, I'm stuck as to where to go from here.
    -B

  • Director ActiveX Contractor Gig

    Hello.
    I'm in need of an advanced Director contractor to help on a
    small piece which involves an ActiveX control.
    This is a paid opportunity which could lead to a lot more
    work.
    No phone calls please. Please email brief experience level,
    hourly rate and avialability to [email protected]
    Thanks -
    Patrick

    FabienBipMedia wrote:
    > i'm writing in C++ / DirectX (no MFC) and I would like
    to play ".dcr"
    > files with the activeX. I found on popcap website a c++
    activeX
    > interface sample to do it for Flash,
    URL?
    > but i can't find the equivalent
    > for director.
    > So where can i find the activeX functions documentation
    or a sample
    > for how to use them in C++ ?
    This might help:-
    http://groups.google.com/group/macromedia.director.basics/browse_frm/thread/a33fa8f2580db6 9f/76605a721c6df539?lnk=st&q=c%2B%2B+shockwave+activex+-flash&rnum=10&hl=en
    Also, if you're using VS, if you add a reference to the SW
    ActiveX control
    in the Solution Explorer pane then you can look at what's
    available in the
    object browser (as in double-click the reference after you've
    added it).
    Other than that, I have no idea.
    Andrew

  • Crystal ActiveX Runtime Lib: Change text data source path at run time.

    We have some PCs running Crystal Reports 10 and some running CR 9 and 8.5. For each PC, we set up a System DSN ODBC data source (in Control Panel - Administrative Tools) for pulling data from text files to
    generate reports.
    Recently we wrote some routines (see the Visual Basic example at the
    end of this message) to change the path of the data files at runtime.
    According to the Crystal Reports Technical Reference Guide, we may use
    the method LogOnServer() of an Application object or an DatabaseTable
    object. However, we find that this does not work: the PrintOut()
    method only pulls data from the default path as configured for the
    System DSN, not from the path passed as the third parameter of
    LogOnServer(). It does not return any error message.
    We have also tried to use SetTableLocation() method, and it still does
    not work.
    Would any experts examine our code below and advise what we are missing? Thanks.
    For the following VB example, we have:
    System DSN Name: AP_WORKSHEET
    Driver: Microsoft Text Driver
    Database Directory: D:\0ood2 (i.e. the default path)
    Crystal Report Document: D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt
    (Which specifies that the data source text file name is BlockWS.txt)
    Purpose : We would like to read the data source text file from
    D:\0ood1 instead of the default path.
    Following is the code of the VB macro:
    Sub test()
    Rem In this version of the subroutine, we call
    Rem DatabaseTable.LogOnServer() and "Rem"ed out
    Rem Application.LogOnServer() and SetTableLocation().
    Rem We have un"Rem"ed each of them and "Rem"ed others and try to run.
    Rem In all runs, data are pulled from the default file
    Rem D:\0ood2\BlockWS.txt instead of D:\0ood1\BlockWE.txt.
    Dim crxapp As CRAXDRT.Application
    Dim crxRep As CRAXDRT.Report
    Dim crxDB As CRAXDRT.Database
    Dim crxTab As CRAXDRT.DatabaseTable
    Dim crxConnPs As CRAXDRT.ConnectionProperties
    Dim crxConnP As CRAXDRT.ConnectionProperty
    Dim apropSubLoc As String
    Dim apropConnBufStr As String
    Set crxapp = CreateObject("CrystalRuntime.Application")
    Rem
    crxapp.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
    Set crxRep = crxapp.OpenReport
    ("D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt")
    Set crxDB = crxRep.Database
    Set crxTab = crxRep.Database.Tables(1)
    apropConnBufStr = crxTab.ConnectBufferString
    apropSubLoc = crxTab.SubLocation
    crxDB.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
    Rem crxTab.SetTableLocation "D:\0ood1\BlockWS.txt", apropSubLoc, "DSN="
    Rem Set crxConnPs = crxTab.ConnectionProperties
    Rem Set crxConnP = crxConnPs.Item("DSN")
    Rem crxConnP.Value = "AP_WORKSHEET"
    Rem Set crxConnP = crxConnPs.Item("Database")
    Rem crxConnP.Value = "D:\0ood1\BlockWS.txt"
    Rem crxTab.Location = "BlockWS.txt"
    crxRep.DiscardSavedData
    crxRep.PrinterSetup (0)
    crxRep.PrintOut
    End Sub
    For VB macros, the problem exists in all of CR 8.5, 9 and 10. However,
    for another platform we are using, Unify Vision 4GL, it works for CR
    8.5 while not working for CR 9 and 10.
    Following is the source code in Unify Vision 4GL. This language may
    not be popular, but I thin you are about to see how it calls the
    Runtime Library methods LogOnServer(), OpenReport(), PrinterSetup() and
    PrintOut().
    %gfPrintCrystalReport
    BOOL FUNCTION gfPrintCrystalReport($reportName)
    BEGIN
    if NOTMKNOWN(GF:$oSeagateId) then
    create service of activex
    class 'CrystalRuntime.Application'
    object_ref into GF:$oSeagateId;
    if MKNOWN(GF:$oSeagateId) then
    begin
    /* TD23013: Database directories are dynamic to
    accommodate multiple user requirement of Citrix */
    send message LogOnServer to GF:$oSeagateId
    using
    ( 'PDSODBC.DLL', 'AP_WORKSHEET', '<CRWDC>DBQ='+GF:$WinTempDir,'','')
    identified by $msgHandle;
    if $msgHandle:MSG_STATE 'RESPONSE_PROCESSED'
    then
    begin
    display 'Crystal Reports cannot connect
    to the datasource ' for fyi_message wait;
    return (FALSE)
    end
    send message OpenReport to GF:$oSeagateId using
    ($reportName, 1)
    identified by $msgHandle returning
    $oCrystalReport
    if MKNOWN($oCrystalReport) then
    begin
    if (NOTMKNOWN(GF:$printerName)) then
    set GF:$printerName to
    $oCrystalReport->PrinterName;
    if GF:$printerName $oCrystalReport-
    PrinterName then
    send message SelectPrinter to
    $oCrystalReport
    using
    (GF:$driverName,GF:$printerName,GF:$portName)
    identified by $msgHandle;
    set $oCrystalReport-
    DisplayProgressDialog to FALSE;
    while TRUE
    begin
    DISPLAY NOTICE 'Print to : ' +
    GF:$printerName
    LABELS 'Ok'
    DEFAULT, 'Cancel', 'Printer Setup'
    RESULT INTO $userOption
    switch ($userOption)
    begin
    case 0 :
    send
    message PrintOut to $oCrystalReport
    using
    (PROMPT_USER, NUMBER_OF_COPIES, COLLATED, START_PAGE, STOP_PAGE)
    identified by $msgHandle;
    set
    $oCrystalReport to UNDEFINED
    return
    (TRUE);
    case 1:
    set
    $oCrystalReport to UNDEFINED
    return
    (FALSE);
    case 2:
    send
    message PrinterSetup to $oCrystalReport
    using
    (0)
    identified by $msgHandle;
    if
    GF:$printerName $oCrystalReport->PrinterName then
    begin
    set GF:$printerName to $oCrystalReport->PrinterName;
    set GF:$driverName to $oCrystalReport->DriverName;
    set GF:$portName to $oCrystalReport->PortName;
    end
    break;
    end
    end
    end
    end
    return
    (FALSE);
    END

    Hi Sydney,
    If you search the Developers help file you'll find info on using the method:
    How to change the data source
    This example demonstrates how to change the data source from native Access to an OLEDB (ADO) data source by using the ConnectionProperty Object, as well as how to change the table name by using the Location property of the DatabaseTable Object. CrystalReport1 is connected to the xtreme.mdb database found in the \Program Files\Crystal Decisions\Crystal Reports 10\Samples\En\Databases folder. The report is using the Customer table. A copy of the Customer table is added to the pubs database on Microsoft SQL Server.
    ' Create a new instance of the report.
    Dim Report As New CrystalReport1
    Private Sub Form_Load()
    ' Declare a ConnectionProperties collection.
    Dim CPProperties As CRAXDRT.ConnectionProperties
    ' Declare a DatabaseTable object.
    Dim DBTable As CRAXDRT.DatabaseTable
    ' Get the first table in the report.
    Set DBTable = Report.Database.Tables(1)
    ' Get the collection of connection properties.
    Set CPProperties = DBTable.ConnectionProperties
    ' Change the database DLL used by the report from
    ' native Access (crdb_dao.dll) to ADO/OLEDB (crdb_ado.dll).
    DBTable.DllName = "crdb_ado.dll"
    '  The connection property bags contain the name and value
    ' pairs for the native Access DLL (crdb_dao.dll). So we need
    ' to clear them, and then add the name and value pairs that
    ' are required to connect to the OLEDB data source.
    ' Clear all the ConnectioProperty objects from the collection.
    CPProperties.DeleteAll
    ' Add the name value pair for the provider.
    CPProperties.Add "Provider", "SQLOLEDB"
    ' Add the name value pair for the data source (server).
    CPProperties.Add "Data Source", "ServerA"
    ' Add the name value pair for the database.
    CPProperties.Add "Initial Catalog", "pubs"
    ' Add the name value pair for the user name.
    CPProperties.Add "User ID", "UserName"
    ' Add the name value pair for the password.
    CPProperties.Add "Password", "password"
    ' Set the table name. ' for SQL types it would be "database.dbo.table"
    DBTable.Location = "Customer"
    Screen.MousePointer = vbHourglass
    ' Set the report source of the viewer and view the report.
    CRViewer1.ReportSource = Report
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault
    End Sub

  • Error: This application required an Xtra (ActiveX...) that either does not exist or failed

    Hi All,
    im having trouble few days now , i hope someone can give me a lead here.
    i have a director mx file written in arabic, i open it in Director 11.5, the file behave strangely, very slow publishing process, very slow access to the xtra list.
    after publishing (shockwave and html), i open the html, the preloaded start to run but i can see its not reaching 100%, after a while i get the error massage:
    "This application required an Xtra (ActiveX...) that either does not exist or failed..." and firebox or IE crashes.
    In the movie extra list (Modify menu) i can see all extras, and all have "download if needed", but in ActiveX the "download if needed" grays out. i have no idea why
    things i try with no success:
    uninstall and reinstall shockwave player
    check the same file in another machine
    exclude and include xtras in Publish Settings > Files
    add activex.x32 from other places
    Hope for good news
    Win Xp sp3
    Thanks
    Shay

    In the movie extra list (Modify menu) i can see all extras, and all have "download if needed", but in ActiveX the "download if needed" grays out. i have no idea why
    Because AX controls aren't SW-safe. You will have to redesign your file to remove the ActiveX control if you want it to run in a browser.

  • Veiwing a PDf using Activex Direct to stage

    I'm new to Director, and to the scripting side especially. I have managed to complete all of my project except for when I get to a point I need to be able to have the users click on a button and have a PDF load in the PDF's Activex sprite. This is the code I have attached to the button:
    on mouseup
         sprite(17).src = the moviePath &"OSME.pdf"
    end
    When they click on the button, nothing happens, any ideas on why this wouldnt be loading?
    Thanks!
    Tim

    You shouldn't have to do anything with the AX sprite to make it work (assuming it implements a src property). I assume you have a copy of Buddy API for your platform already - if not, grab it from here. To install it you need to place it in the folder named Xtras inside the folder your authoring application is installed. You must be on Windows to be running AX controls, so you should put it in the 'Adobe Director 11\Configuration\Xtras\Scripting\' folder. Restart Director and the xtra should be available. To test that it's installed properly you could check the Scripting Xtras drop-down list in either your message window or a script window (it's the menu with an xtra icon) - you should see an entry for BudAPI.
    Now alter your script like so:
    on mouseUp
      tPath = the moviePath & "OSME.pdf"
      if baFileExists(tPath) then
        sprite(17).src = tPath
      else
        alert "File not found:" && tPath
      end if
    end
    Sorry, I can't seem to view your attachment - how do I access it?

  • OPC-Server + ActiveX

    Hi! I'm trying to communicate with some hardware via OPC and datasocket. The
    problem is the great and variing number of the channels for the data
    acquisition (400-1500 channels!). So I decided to automatize the "Browse to
    OPC item.vi" via ActiveX with every single item written into an array with
    its specific properties like datatyp, access right, OPC-URL and so on. For
    better understanding: Similar to the "List directory.vi" I want to analyse
    how many OPC-Server ("harddisks") at the local PC do exist, how many groups
    (directories) they contain, how many subgroups (subdirectories) there are
    and what kind of items (files) they contain. Additionally, I want to get
    some information of them and I want to build an array where all informati
    on
    (path, properties...) is stored in. I succeeded in displaying a string array
    with the installed OPC-servers, but that's all. Puuh, hard staff. I hope
    somebody can help me.

    For your information, there is a new TestStand Add-on "OPC DA Connect" which adds a StepType Palette dedicated to OPC Data Access.
    You can configure each step by browsing the OPC servers on your network and browsing variables within these servers.
    The browsing functionnality that you where looking for as been implemented in this toolkit.
    Hoping this helps.
    Jean-Louis SCHRICKE
    ├ CTA - Certified TestStand Architect (2008 & 2010 & 2014)
    ├ CTD - Certified TestStand Developer (2004 & 2007)
    └ CLD - Certified LabVIEW Developer (2003 & 2005)

  • ActiveX Xtra - projector doesn't terminate

    Hi all,
    Has anyone had problems with the projector not terminating
    correctly
    when working with the ActiveX Xtra? We are working on a
    Director
    application that uses some custom ActiveX controls. When the
    user
    quits the projector, the Process for the projector does not
    terminate. If you look in the Windows Task Manager and click
    on the
    Processes tab, the process for the projector is still there
    even
    after the user quits.
    I am using Director MX 2004 on Windows XP Pro. Users with
    other
    versions of Windows are also seeing the problem.
    One interesting note is that if we put the ActXPriv.x32 user
    interface component in the Xtras folder that the projector
    uses, the
    problem goes away (the process terminates correctly upon
    quitting).
    Unfortunately the documentation for the ActiveX Xtra says
    "Under no
    circumstances should the user interface component
    'ActXPriv.X32' be
    redistributed with a packaged Director multimedia title."
    Thanks for any help!
    Tom

    I just thought that you might fail to unregister your activeX component when you stop the projector (in case you deliver the component's dll to the user with your projector package). Say my component is called axvlc.dll. It is placed in the same directory as my stub projector (given by: _movie.pass)
    On startMovie -- I register the component:
         axRegSuccess = ActiveXControlRegister(_movie.path&"axvlc.dll")
         --axRegSuccess must be -1
    end
    on stopMovie -- I unregister it
          axUnRegSuccess = ActiveXControlUnRegister(_movie.path&"axvlc.dll")
          --axUnRegSuccess must be -1
    end

  • ActiveX MS webbrowser no tab key

    Hi,
    I was successfully trying to load a web page in the MS
    webbrowser
    activeX control but the tab key is not recognized. Is there a
    way to
    jump beteween the fields of a web form when pressing the tab
    key?
    TIA

    I reserched the heck out of the same question. I could not
    find a way to get
    the tab key to do anything. I tried various things to track
    down where the
    tab key goes, but couldn't figure out how to get it to work.
    Over on
    mediamacros.com there's a behavior that has code to handle
    the tab key on a
    web browser, and I couldn't get that to work either.
    So I just used VB and made a shell for the browser. It
    actually worked
    better for everything. There was some Flash interactivity and
    something else
    that using the MS web browser in Director interfered with
    that was fixed
    using straight VB.
    TR
    "CastTen" <[email protected]> wrote in message
    news:ecurko$aci$[email protected]..
    > Hi,
    >
    > I was successfully trying to load a web page in the MS
    webbrowser activeX
    > control but the tab key is not recognized. Is there a
    way to jump beteween
    > the fields of a web form when pressing the tab key?
    >
    > TIA

  • Script for Director in Authorware

    Hello,
    I am new here and I hope that someone could help me.
    I have a Director movie and I want to play this in Authorware
    with the ActiveXcontrol. I see the movie playing but Authorware
    goes on running the complete flowline in the back while the
    Director movie is playing in front of it.
    I am not good in scripting in Authorware but I need a script
    that tells Authorware to play the Director movie, (and stay at that
    point of the flowline) and continue the flowline after the Director
    movie Quits. (The Lingo command Quit in the Director movie)
    Is there someone to help me?
    O.... something else, the stage of the Director File is the
    same size as the Authorware stage
    Thanks
    Marius

    To elaborate on what Erik has said, you'll need an
    interaction with an event
    response set up that will catch some sort of event set up
    with Director. I
    don't think anyone on here uses Director on here much, so
    they'd have to
    experiment with the files as much as you would. You may find
    that looking
    at the Flash ActiveX ShowMe gives you some ideas of things to
    look at while
    you're experimenting.
    HTH;
    Amy
    "Erik **AdobeCommunityExpert**"
    <[email protected]> wrote in
    message news:[email protected]...
    > I've not worked with Director in Authorware in a real
    long time.
    > If the Authorware presentation is continuing, then it
    needs to stop until
    > the Director movie says it's ok to move on.
    > In Flash, you could do this with a fsCommand or getURL
    function. Flash
    > would execute that function when done and you would
    setup an 'Event
    > Response' interaction in Authorware to wait for it.
    > Can Director send such an event?
    > Erik
    >
    > marius siroen wrote:
    >> Hello,
    >>
    >> I am new here and I hope that someone could help me.
    >>
    >> I have a Director movie and I want to play this in
    Authorware with the
    >> ActiveXcontrol. I see the movie playing but
    Authorware goes on running
    >> the complete flowline in the back while the Director
    movie is playing in
    >> front of it.
    >>
    >> I am not good in scripting in Authorware but I need
    a script that tells
    >> Authorware to play the Director movie, (and stay at
    that point of the
    >> flowline) and continue the flowline after the
    Director movie Quits. (The
    >> Lingo command Quit in the Director movie)
    >>
    >> Is there someone to help me? O.... something else,
    the stage of the
    >> Director File is the same size as the Authorware
    stage
    >>
    >> Thanks
    >> Marius
    >>
    >
    > --
    > Erik Lord
    >
    http://www.capemedia.net
    > Adobe Community Expert - Authorware
    >
    http://www.adobe.com/communities/experts/
    >
    >
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    > *Search the A'ware newsgroup archives*
    >
    http://groups.google.com/groups?q=macromedia.authorware
    > *The Blankenship Caveat: Note that direct linking to
    http content
    > through any Authorware icon will likely fail if a proxy
    server is
    > present!*

  • Web page inside the Director Stage

    Hello All,
    Is there a way for me to tell Director to bring up a web page
    inside the stage?
    I would like to have my own buttons on the lower half of the
    window and a internet browser on the upper half.
    Also I would like the user not to be able to access the URL
    bar.
    Thank you all

    If it's PC only, you can use the ActiveX control for free.
    One problem is if
    it's for filling out forms the tab key doesn't work.
    "medonald1" <[email protected]> wrote in
    message
    news:f7ggk1$frb$[email protected]..
    > Hello All,
    >
    > Is there a way for me to tell Director to bring up a web
    page inside the
    > stage?
    >
    > I would like to have my own buttons on the lower half of
    the window and a
    > internet browser on the upper half.
    >
    > Also I would like the user not to be able to access the
    URL bar.
    >
    > Thank you all
    >

  • Error with executable using ActiveX object in ver 7

    I have a top-level VI (version 7 in WindowsXP) that contains an ActiveX control. This ActiveX object further calls several DLL’s, one of which controls the serial port. SubVIs in the top-level VI call this ActiveX object via Invoke Node and Property Node. Everything works in the LabVIEW development environment. The ActiveX object is registered using the “regsvr32” command and is made with Visual C++.
    When I try to build an application of the top-level VI, the executable doesn’t work (giving the error “The server threw an exception.” Error -2147417851). I’ve narrowed the problem down to the ActiveX calls. I’ve tried embedding the ActiveX object and the DLL’s in the executable as support files. I’ve also tried changing the Execution property of the top-level VI from “same as caller” (default) to “standard” (no change) and “user interface” (crashes executable). The application setting “Enable ActiveX server” is checked. I still get the error. Any suggestions?

    I'm not exactly sure what is going wrong, but I have some information that might help. As has been mentioned in some of the referenced posts, Windows has completely different ways of finding DLLs depending on the technology being used.
    When dealing with a COM library, LabVIEW calls CoCreateInstance - a COM method provided by Microsoft to create the object. This method looks in the registery to find the absolute path to the ActiveX DLL. Thus it doesn't matter where your DLL (versus your LV application) is located.
    HOWEVER - If that ActiveX DLL then uses other DLLs via a normal C interface, the rules change. If the ActiveX DLL just links normally (using a .LIB) with these dependent DLLs, then that ActiveX DLL relies on the PATH environment variable to find the DLLs (which typically includes the current directory - and is probably how Chris' app started working). The ActiveX DLL can also call LoadLibrary() directly, and thus can provide an absolute or relative path - raising all sorts of possibilities.
    ACTION ITEM
    Here is my suggestion. Go to www.sysinternals.com and download the File Monitor (http://www.sysinternals.com/Utilities/Filemon.html). Set the filter on the monitor to the name of the EXE (either LabVIEW.exe or your built application). Then run the app. You'll see a lot of entries, but you can then search for the various DLLs in question. Don't be surprised to see FILE_NOT_FOUND errors, you'll get that as Windows probes around the various directories trying to find the DLLs.
    You can do this in both LV and your built app and see the difference in how it searches. That should give you some idea as to what is going wrong. Please feel free to post a follow-up with more questions once you've done this.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

Maybe you are looking for

  • Air Flex with work problem in swfLoader...

    Hello, I have a problem with swfLoader in Air Flex. I create a swf flash that must be loaded into Air application. When I run it insde of Flex Builder, all is ok. But when I install it, the embed flash dont work in component "InputText" and the TextF

  • Compiler can't find other classes

    I've got this bad problem that's been bugging me all weekend, and I can't work out how to fix it. A few months ago I was able to write classes that use other classes I've defined no problem. I just started using my compiler again, and now when I want

  • Persistent bug in Photoshop CS5

    Is anyone having problems with loading a large number of files into  Photoshop cs5? I have a Mac Pro 2.8 8-core 2008 model, osx 10.6.4, and a gtx 285  graphics card and 16gb ram. Every time I try to open a large series of photos (not huge files but, 

  • Thare are always some strange website or advertisement website come out. Why?

    When I surf the internet, every time when I click some thing, some strange website or  advertisement website will come out, which I never opened.  How to deal with this problem???

  • My i-pod will not connect to itunes....i even updated the itunes

    Just two weeks ago...everything was fine!.....I would plug my video i-pod in to my computer and it would say "mass storage device" blah blah blah...then my itunes would pop up and my i-pod would be there called "chelsee's i-pod" Now when I plug it in