Trying to launch excel2007 using activeX error!!

I am trying to launch excel2007 using activeX and I receive the following error:
Undefined symbol '_Excel_NewApp@20' referenced in "excel.c".
Here is what I did:
 ///excel.c
#include <cvirte.h>  
#include <userint.h>
#include <cviauto.h>
#include <utility.h>
#include <ansi_c.h>
#include "excel.h"
#include "excel2000.h"
static int panelHandle;
static HRESULT status;
static void InitVariables(void);
static int appVisible = 1;
static int excelLaunched = 0;
int PANEL_VISIBILITY;
static ExcelObj_App   ExcelAppHandle = 0;      
int main (int argc, char *argv[])
 if (InitCVIRTE (0, argv, 0) == 0)
  return -1; /* out of memory */
  CA_InitActiveXThreadStyleForCurrentThread (0, COINIT_APARTMENTTHREADED);
 if ((panelHandle = LoadPanel (0, "excel.uir", PANEL)) < 0)
  return -1;
 InitVariables();
 DisplayPanel (panelHandle);
 RunUserInterface ();
 DiscardPanel (panelHandle);
 return 0;
static void InitVariables(void)
    // Demo path and filename
    GetCtrlVal (panelHandle, PANEL_VISIBILITY, &appVisible);
    return;   
int CVICALLBACK runExcel (int panel, int control, int event,
  void *callbackData, int eventData1, int eventData2)
 HRESULT error = 0;
 switch (event)
  case EVENT_COMMIT:
    SetWaitCursor (1);
    error = Excel_NewApp (NULL, 1, LOCALE_NEUTRAL, 0, &ExcelAppHandle);
    SetWaitCursor (0);
    if (error<0)
     MessagePopup ("Error", "An error occurred trying to launch Excel !!!");
    MakeApplicationActive ();
    excelLaunched = 1;   
    printf("ai pornit excel");
   break;
 return 0;
The file excel2000.h is the one from the examples National Instruments\CVI2009\samples\activex\excel and here is defined among others:
HRESULT CVIFUNC Excel_NewApp (const char *server, int supportMultithreading,  LCID locale, int reserved, CAObjHandle *objectHandle);
Please help!

Hello Annees,
Thanks for posting on
National Instruments Forum. 
Try to recompile your
instrument driver you're using to communicate with MS Excel:
Tools>>Create
ActiveX controller then choose Excel Server.
Benjamin R.
R&D Software Development Manager
http://www.fluigent.com/

Similar Messages

  • Have downloaded new Lightroom 5.4 from CC. When trying to launch am getting following error message and then Lightroom crashes: "an error occurred when attempting to change modules". Can't find a thread which relates to this error message.

    Have downloaded new Lightroom 5.4 from CC. When trying to launch am getting following error message and then Lightroom crashes: "an error occurred when attempting to change modules". Can't find a thread which relates to this error message.

    Hi 99jon,
    Many thanks for that. Had been going through this list yesterday and now again today:
    Ref  Solution 1: Lightroom is at its latest update
    Ref  Solution 2: It's interesting how I cannot find the Preferences file anywhere on my mac. (new mac pro, OS 10/9.2) . . .
    Ref  Solution 3: Lightroom doesn't allow me to do anything after the error message appears
    Ref  Solution 4: don't have any Nik Software plug-ins
    Ref  Solution 5: checked permissions and changed all to "Read & Write" - makes no difference
    Ref  Solution 6: I don't have a different user account on my mac.
    Not sure what else to do.

  • Why is exit code always 0 when trying to launch netscape using -remote option?

    Hi!
    I'm trying to launch a netscape browser using the existing netscape process with the command "netscape -remote OpenUrl(<url>)". But, this always returns a exit code of 0, irrespective of ehether the command is successful or not. Going through the document in http://www.netscape.com/newsref/std/x-remote.html the exit code should be nonZero, if the command fails.
    Then why is this happening? Is this a known bug? Please respond...

    This is an iPlanet Application Server forum. You might try asking this question somewhere related to browsers or Netscape.

  • Launch Configuration using CIO object

    Hi,
    I am trying to launch Configuration using CIO object.
    plz find the code below, that am using.
    ===========START CODE==================
    Context context = new CZWebAppsContext("hostName","portNumber","dbcFileName");
    System.out.println("------------- Context object created ----------");
    ConfigParameters cp = new ConfigParameters(79160);
    System.out.println("------------- ConfigParameters object created ----------");
    CIO cioObject = new CIO();
    System.out.println("------------- CIO object created ----------");
    Configuration config = cioObject.startConfiguration(cp,context);
    System.out.println("------------- Configuration object created ----------");
    IUserInterface ui = config.getUserInterface();
    System.out.println("------------- UI object created ----------");
    ui.navigateToScreen("Page-1");
    System.out.println("------------- Page navigation ----------");
    =============END CODE==================
    am getting the following error after CIO object is created, while trying to start the configuration, at cioObject.startConfiguration(cp,context). The hostName, portNumber and dbcFileName are correctly provided.
    ============START LOG ====================
    ------------- Context object created ----------
    ------------- ConfigParameters object created ----------
    ------------- CIO object created ----------
    java.lang.RuntimeException: Null JDBC Connection returned from connection pool.
    Contents of CZWebAppsContext error stack: AOLJ_JAVA_EXCEPTION (MESSAGE=Not able to create new database connection. Cause:java.sql.SQLException: Io exception: The Network Adapter could not establish the connection)
    SECURITY-No gateway reconnect
    SYSTEM-ERROR (MESSAGE=Io exception: The Network Adapter could not establish the connection)
         at oracle.apps.cz.common.CZWebAppsContext.getJDBCConnection(CZWebAppsContext.java:116)
         at oracle.apps.cz.dio.DbTransaction.<init>(DbTransaction.java:61)
    ==============END LOG=======================
    plz help me in finding the solution.
    Regards,
    Adarsh

    Adarsh,
    Looks like the parameters passed in the constructor call are not valid ones and hence the database connection is not getting done.
    Context context = new CZWebAppsContext("hostName","portNumber","dbcFileName");
    Check the above call carefully and its parameters. I guess the dbcFileName might be the reason as other 2 entries are pretty easy to know.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error code "-21468272​84" when trying to open an Excel workbook using ActiveX

    Hi all,
    i have a problem using ActiveX to open excel files. I get error code "-2146827284" (unknown error) when trying to open a workbook. This problem occurs on only one machine i work with, on the others it works fine. All machines have the same setup, Excel97 and Excel2007 installed on them.
    Any ideas??
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    ExcelToolkit open.PNG ‏53 KB
    ExcelToolkit open FP.PNG ‏32 KB

    andyforpresident wrote:
    For sure the file is there, the _application object gets created without an error.
    Creation of the application object has nothing to do with opening the workbook, which is what is generating the error. If you are getting an error with opening the workbook then you either have the wrong path, a permissions issue, a network issue, or the file is already open.

  • I have CS2 and I use it almost every day.. Today when I tried to launch it, a prompt came up saying my Activation was no longer valid and it closed automatically.  Then when I tried to re-open it, a prompt came up saying "A serious error has occured"  Ple

    I have CS2 and I use it almost every day.. Today when I tried to launch it, a prompt came up saying my Activation was no longer valid and it closed automatically.  Then when I tried to re-open it, a prompt came up saying "A serious error has occured"  Please re-install the software...  I have no idea where my software is... That was many many years ago?  HELP!!

    When you go to the download page, you must do two things:
    Download this file: PhSp_CS2_English.exe on the download page.
    Use the serial number on the download page in order to install your non-activation copy.
    Do not use your old CD or serial number. It no longer works.
    If you have Windows 7, the advice is to turn off UAC and run the installer as Administrator.
    Gene

  • Trying to launch photoshop cs3 on a mac running OS10.6.8 i keep getting the error message: Licensing for this product has stopped working  you cannot use this product at this time. You must repair the problem by uninstalling and then reinstalling this pro

    trying to launch photoshop cs3 on a mac running OS10.6.8 i keep getting the error message: Licensing for this product has stopped working  you cannot use this product at this time. You must repair the problem by uninstalling and then reinstalling this product or contacting your IT adminstrator or Adobe customer support for help
    I already Uninstalled and reinstalled the product and it still does not work.

    Hi,
    Try to uninstall the software again and you have to manually
    Delete the following folders:
    [Startup Disk]/Library/Application Support/Adobe/Adobe PCD
    [Startup Disk]/Library/Application Support/Adobe/caps
    [Startup Disk]/Library/Application Support/Adobe/backup
    [Startup Disk]/Library/Preferences/FLEXnet Publisher/
    [Startup Disk]/Library/Application Support/FLEXnet Publisher/
    Go to Applications-->Utilities-->Disk Utility, Open it and Select the MAC HD and then click on Repair permissions.
    After that try to run the cleaner tool as mentioned by kglad.
    Restart machine and then try to install again.
    *** Make sure , you only delete these folders if there is no other adobe applications installed on the machine. As if you have any other Adobe application of the suite ( not free applications ) then it will be a problem.

  • I am trying to launch my external hard drive through maxtor central access manager.  It will not launch and I keep receiving a KERN_PROTECTION_FAILURE error.  Through discussion threads, it sounds like it may be a disk utility, repair issue.  Please advis

    I navigated to disk utility and verified disk, which returned no errors.

    I'm not sure what you mean when you say that you're "trying to launch" an external hard drive, but you don't need Maxtors software to mount it on the desktop. Is this a new drive? Have you formatted it using Disk Utility?

  • Error 0x80070490 trying to launch VM without SCVMM on Windows 2008 Server R2

    Hello everybody,
    I get a weird issue trying to launch a VM.
    This is the current situation : I get a server, Windows 2008 R2. I've only install Hyper-V and Failover Cluster. I can create a VM but when I try to launch it, I get an error message into a popup (translated from french) : "The application encountered
    an error during modification of 'vm_name' state". "'vm_name' could not be initialize". "Could not initialize machine remoting system. Error 'Element not found'. (0x80070490). "Could not find a usable certificate. Error: 'Element not found'. (0x80070490)."
    So, I'm unable to launch my vm's.
    I'm not using SCVMM yet. I want to resolve this issue before.
    I read some articles and posts about SCVMM certificate issue but I'm not using SCVMM.
    More fun, I read articles about this issue but on Windows 2008 Server (not R2) : problem resolved by a fix, unapplicable on my Windows 2008 R2 :)
    I'm totalyblocked and ain't got no idea how I can resolve it.
    If someone gets I idea ...
    Cheers,
    Nicolas

    Environment: Windows 8.1 in an Active Directory Domain (2012R2) with MS Certficates Services support NAP/Health Registry, etc. 
    Error:  Attempts to start a Hyper-V VM on a machine generates the error message Error 0x80070490 trying to launch VM:
    "'vm_name' could not be initialize". "Could not initialize machine remoting system. Error 'Element not found'. (0x80070490). "Could not find a usable certificate. Error: 'Element not found'. (0x80070490)."
    Note: 
    VMM can manage other Hyper-V servers in environment from same machine, just not local machine.
    VMM on remote machine generates same error message when attempting to manage new VM machine
    Certificates - Service (Hyper-V Virtual Machine Management) on Local Computer shows 0 certificates under vmms\Personal
    Fixes Attempted and Failed except for #5!
    1) hotfix directly: Windows6.0-KB967902-x64.msu -> Failed: 0x80096002, Windows Update Standalone Installer.  The certificate for the signer of the message is invalid or not found.
    2) hotfix via pkgmgr: PkgMgr.exe has been deprecated. Please update scripts to use DISM.exe.  0x80070307
    3) Reset Certificates: 
     Start > Run > MMC
     Add the Certificates Snap-In
     Select Service Account
     Under the Select Account to Manager, select Hyper-V  Image Management Service
     Complete the Snap-In Wizard
     Expand the Certificates under Personal Category
     Notice the certificate generated has been created ‘for the future’ (assuming you’re suppose to revert the date & time to 2010, the certificate should display as invalid because it was created at 2013)
     Delete the Certificate(s)
     Go to the Services Console and Restart all Hyper-V Services
     Result: No certificate auto generated
    4) Uninstall / reinstall hyper-v service and management service addons from Windows features.  
    5) ‎did the following from http://technet.microsoft.com/en-us/library/ff935311(v=ws.10).aspx (WORKED!!! -> Note, their PS script has an error, add a dash(-) before the word recurse)
    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Virtualization" /v "DisableSelfSignedCertificateGeneration" /f /t REG_QWORD /d 1
    24 ca 36 b5 bd 6d ef 7e eb aa a5 74 df e5 fd 41 ef ab 1c 29
    $certs = dir cert:\ -recurse | ? { $_.Thumbprint -eq "24ca36b5bd6def7eebaaa574dfe5fd41efab1c29" }
    $cert = @($certs)[0]
    $location = $cert.PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName
    $folderlocation = gc env:ALLUSERSPROFILE
    $folderlocation = $folderlocation + "\Microsoft\Crypto\RSA\MachineKeys\"
    $filelocation = $folderlocation + $location
    icacls $filelocation /grant "*S-1-5-83-0:(R)"

  • Why do I get the 'PowerPC code' error when trying to launch an Intel-based app from a CD?

    When trying to launch a Flash-based app from a CD on my Mac Book Pro, I get the "PowerPC apps are no longer supported" error. Yet the app is not built with PowerPC code.
    This also happened with Microsoft Office programs soon after I upgraded to OSX Lion, but someone was able to solve that for me.

    It's just a free disc from a photo magazine, but the app runs fine on a Mac Pro running 10.7.3. Could it be hardware related?
    I have actually asked this on behalf of a reader (I work for the company that makes the magazine) who is experiencing this problem, I just can't find any reason why the error would display in these circumstances. I apologise if this is against the community's usual practise - I just want to sort this guy out!
    The app on the disc is compiled using MDM Zinc, but like I said it runs a-OK on Lion everywhere else.
    Any help would be gratefully received and appreciated!

  • I tried to launch iCloud on iMac.  I Changed my e-mail address recently, and iMac  doesn't  seem to know it.  Even worse, it doesn't know any password I've used with Apple ID.  Can anyone help me?

    I tried to launch iCloud on iMac.  I Changed my e-mail address recently, and iMac  doesn't  seem to know it.  Even worse, it doesn't know any password I've used with Apple ID.  Can anyone help me?

    No, i don't. if i did i would have tried it. do you have to sign up an appled ID for iCloud? If the answer is yes then they should mention that in the set-up instructions.

  • Get error message when trying to launch bridge from CC 64 bit.

    Get error message when trying to launch Bridge from Photoshop CC 64 bit.  "Cannot complete command because extension cannot be loaded."  Need fix.  Thanks.

    Hi Adobe Bubba,
    Please uninstall the software, run the cleaner tool, restart your machine and install again.
    Cleaner tool: http://www.adobe.com/support/contact/cscleanertool.html .
    Regards,
    Romt Sinha

  • Net Use give error 67 when trying to mount network share in Windows PE

    I am trying to deploy Windows 7 Pro by PXE booting Windows PE5 and applying a WIM file over a network share.  The problem that I am running into is that I get an system error 67.  I can ping the server with the network share with both the IP
    and the FQDN, but whether I use the machine name OR the IP I get a system error 67.  I verified that the account that I am using to connect has permissions, but even excluding the user name and waiting for it to prompt me for a user name gives the same
    error.  Any idea what is going on?

    Check : http://social.technet.microsoft.com/Forums/en-US/9c429bef-edf0-4bad-83a3-644e6ba28ea8/net-use-system-error-67?forum=winservergen
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What does this mean? I have had this phone for over a year..

    Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What is the issue, had this phone over a year??

    I had this problem before. I like to disable extra services to speed up my computer and I disabled the Apple Mobile Device service and had to re-enable this.
    You can do that by going Control Panel>Administrative Tools>Services. Once you have gone to the services window, look for Apple Mobile Device and right-click. Select "Properties". There should be some information about the service as well as the label "Startup Type" with a drop-down menu beside it. If it says "disabled", that is your problem; Change the selection to anything except disabled (Automatic is easier and ensures that you can sync as soon as itunes opens).
    If this doesn't work, I would look into your anti-virus' settings. Good Luck!

  • MacPro backed up to Time Machine, added Mac Mini now get "The backup disk image "/Volumes/Data/Jerry Booher's MacBook Pro.sparsebundle" is already in use." error when Mac Pro tries to back up

    MacPro backed up to Time Machine, added Mac Mini now get "The backup disk image “/Volumes/Data/Jerry Booher’s MacBook Pro.sparsebundle” is already in use." error when Mac Pro tries to back up

    It is standard Mountain Lion error due to the networking ability which is comparable to wet string. (actually that was lion.. it dried out some with Mountain Lion.. higher in the hills perhaps!!)
    See C12 and C17
    http://pondini.org/TM/Troubleshooting.html
    But many people are suffering the same issue..
    And the above is even a little out of date.. you might need to do a reset to the TC.
    Welcome to Apple's beta program for everyone.

Maybe you are looking for

  • Why message saying Internet can't be found?

    I've established a wireless connection from my laptop to my router and all works fine, but when I open the Linksys icon that sits in my system tray and look at the Link Information tab, I see this message: You are connected to the access point, but t

  • TS4000 reminders on my PC (windows 7) stopped working in outlook 2010 after icloud was installed

    reminders do not work on pc (windows 7) stopped working in outlook 2010 after icloud installed

  • Is this the right way to configure WPA2 on 1131 AP?

    Hello everyone. I, at work, have recently deployed a very small stub network in Papua New Guinea, an office that has no more than 7/8 users.  This simple network consists of: 1 x 2611xm Router 1 x 2960 24port Catalyst Switch 1 x 1131ag AP 1 x Dell Se

  • Data Manager Parameters

    Hi All, I need to copy data from one member to multiple members (to be selected dynamically) using script logic and data manager package. Below is the script I am using *XDIM_MEMBERSET TIME=%TIME_SET% *WHEN TIME *IS * *REC(EXPRESSION=%VALUE%,TIME=%TI

  • Linking Sales Employee name/code to Employee data

    I want to display the phone number and email address for the name that is selected in the Sales Quotation Sales Employee field in my sales quotation form. I am having a hard time making the link between the two tables so I can display the correct inf