Problems with Excel Under Native C Service

This is a discussion on Problems with Excel Under Native C Service within the Windows Programming forums, part of the Platform Specific Boards category; Hi ppl, The problem is weird to say the least. We have a Windows Service written under Native C and ...

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Exclamation Problems with Excel Under Native C Service

    Hi ppl,

    The problem is weird to say the least. We have a Windows Service written under Native C and Com running on Windows Pro 64bit. The service should spawn multiple threads (usually 2 or 3) that open Excel2007, register some addins, populate it with data and fires macros to do computation.

    Now the fun part, on one machine it runs fine with desktop interaction disabled while on the other the Addins cannot be found, as the result of calculation (or lack of which) show. The weird part is that if I allow the service to interact with the desktop it runs just fine. We tried to set the service to run under Admin login instead of running it under SYSTEM (default login for all services) but the application fails on the first call to a macro ...

    We believe that the difference is in some permissions or settings for the Windows Service or the login used NOT the C code itself (the macros should be fine too, they been ran in stand alone too many times). If anyone could point me in the directions where to look for where to set it it would be awesome ...

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    What account installed the addins?

    Was it the admin account and all user access was permitted?
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Application in Nt Native Api
    By sousasamir in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 01-30-2009, 05:41 PM
  2. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  3. Trouble with Windows/DirectX programming
    By bobbelPoP in forum Windows Programming
    Replies: 16
    Last Post: 07-08-2008, 02:27 AM
  4. C++ text file
    By statquos in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2008, 01:42 PM
  5. Windows service status checking
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-01-2008, 08:19 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21