Go Back   CodeCall Programming Forum > Software Development > Visual Basic Programming
Register Blogs Search Today's Posts Mark Forums Read

Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-2008, 10:25 AM
Newbie
 
Join Date: Oct 2008
Posts: 4
dranfu is an unknown quantity at this point
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-13-2008, 12:39 PM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-13-2008, 01:01 PM
Newbie
 
Join Date: Oct 2008
Posts: 4
dranfu is an unknown quantity at this point
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-13-2008, 01:23 PM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-13-2008, 05:37 PM
Newbie
 
Join Date: Oct 2008
Posts: 4
dranfu is an unknown quantity at this point
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-13-2008, 09:21 PM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-13-2008, 10:39 PM
Newbie
 
Join Date: Oct 2008
Posts: 4
dranfu is an unknown quantity at this point
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -5. The time now is 08:16 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0