+ Reply to Thread
Results 1 to 7 of 7

Thread: Getting ActiveX Control To Send to AbiWord not MSFT Word

  1. #1
    Newbie dranfu is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    Getting ActiveX Control To Send to AbiWord not MSFT Word

    This is my first post, so first I'd like to say hello. Hello! Ok, on to the question:

    At work, we use a web based program that has an ActiveX control that, when a user clicks the "Sign" button, the Active-X control launches word and transfers the data from the web server to microsoft word located on the users computer. The ActiveX control uses two functions to start and check that word is running: StartWord and IsWordRunning.

    Example of IsWordRunning

    Code:
     Private Function IsWordRunning() As Boolean
    Dim pWord As System.Diagnostics.Process() =
    System.Diagnostics.Process.GetProcessesByName("winword")
    If pWord.Length >= 1 Then
    Return True
    Else
    Return False
    End If
    End Function
    I don't have an example of the StartWord function, unfortunately.

    My question is: Is there any known way to trick the ActiveX control into thinking that winword.exe is running, for instance by running Abiword (free word processor program, but renaming the abiword executable file to winword.exe. I know that the when data is sent from the web server to microsoft word, it comes as a formatted RTF document, which is saved in a temp file. Obviously, Abiword will open RTF files. The only problem is, when I click the button to begin the transfer, I get an error saying "cannot start word."

    Also, I have already tried renaming abiword.exe I've also placed both those files and their associated dll files in the Microsoft/Office directory, and it didn't help.

    Any ideas?

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,673
    Blog Entries
    57

    Re: Getting ActiveX Control To Send to AbiWord not MSFT Word

    Renaming the executable is unlikely to change the process name the executable provides to the system.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  3. #3
    Newbie dranfu is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    Re: Getting ActiveX Control To Send to AbiWord not MSFT Word

    I was hoping that wasn't the case. But, is there any way to change the name the executable provides the system? Any work around here? My other plan is to just rewrite the ActiveX file (I've used PE explorer to find the TYPE library). Are there any reverse engineering programs that could perhaps provide the code for that Active X file? Since it seems that there are only a couple of functions that even call MSFT word, if I could just replace the calls to word with calls to abiword, or to openoffice, then everything else could be left as is.

    Am i on the right path or no?

  4. #4
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,673
    Blog Entries
    57

    Re: Getting ActiveX Control To Send to AbiWord not MSFT Word

    A hex editor may work.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #5
    Newbie dranfu is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    Re: Getting ActiveX Control To Send to AbiWord not MSFT Word

    Ok, I downloaded a decent Hex Editor...but how does this help me find the actual source code? It is usefull for information, especially seeing what strings are in what memory locations...but Is there some way to find the actual programming code?

    I'm pretty sure it's written in VB, since it's an activeX control.

  6. #6
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,673
    Blog Entries
    57

    Re: Getting ActiveX Control To Send to AbiWord not MSFT Word

    The Hex Editor will not show you the programming code. You would need a decompiler for that. You can download the source code for AbiWord and modify it that way, or look for the identifier string with the Hex Editor and change it that way.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  7. #7
    Newbie dranfu is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    4

    Re: Getting ActiveX Control To Send to AbiWord not MSFT Word

    Ok, thank you for taking the time to help and for all the suggestions. I think you've put me on the right path.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Guess The Word.
    By Paradox in forum Java Tutorials
    Replies: 5
    Last Post: 01-16-2009, 09:48 AM
  2. Windows Shortcut List - Saves Time
    By 2stamlers in forum The Lounge
    Replies: 6
    Last Post: 04-10-2008, 06:58 AM
  3. Disable ActiveX control with Javascript
    By gszauer in forum Javascript
    Replies: 1
    Last Post: 12-21-2007, 01:21 PM
  4. Dictonary Program
    By programmer 101 in forum Java Help
    Replies: 9
    Last Post: 07-01-2007, 01:39 PM
  5. NuCDR ActiveX Control
    By Kernel in forum Software Development Tools
    Replies: 0
    Last Post: 09-25-2006, 05:41 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts