Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 22nd, 2006, 10:36 AM
avkb03 avkb03 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 110 avkb03 User rank is Private First Class (20 - 50 Reputation Level)avkb03 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 10 h 41 m 54 sec
Reputation Power: 4
IE ActiveX Control for Network File Access

Hello,

We are working on a web based file management system that has actual file access through the network shares when files are clicked.

I've written an activeX control that can send to windows the file location and file name, windows will then open the file from its actual location. When they save the file, the original file is then updated.

The problem I have is, the activex control states it is not digitally signed. Having never done this before, and only needing it to work on our intranet, how can I go about making this file work?

The code I use in the ActiveX, FYI, is:

Code:
Option Explicit
Private Declare Function GetDesktopWindow Lib "user32" () As Long
Private Declare Function ShellExecute Lib "shell32" _
Alias "ShellExecuteA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Private Const WINDOW_NORMAL As Long = 1
Private Const WINDOW_MAXIMISED As Long = 3
Private Const WINDOW_DEFAULT As Long = 10
Private Const PATH_NOT_FOUND As Long = 2

Public Sub OpenFile(DirName, FileName)
Dim lngReturnVal As Long
lngReturnVal = ShellExecute(0&, "Open", (DirName & FileName), 0&, 0&, WINDOW_NORMAL)
End Sub


Any help, or other ideas would be much appreciated!

Thanks,
Andy

Reply With Quote
  #2  
Old March 22nd, 2006, 08:43 PM
q97 q97 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Brisvegas
Posts: 276 q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 10 h 41 m 49 sec
Reputation Power: 37
Maybe add the intranet site to trusted sites and change relevant settings in IE?? If that works you could roll out those changes with a Group Policy.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > IE ActiveX Control for Network File Access


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT