PC Review


Reply
Thread Tools Rate Thread

Anyone with VB .NET 2003, please help!

 
 
A.S.
Guest
Posts: n/a
 
      7th Jul 2004
I have this code here that I wrote with the Visual Basic 2005 Express
Edition Beta. However, I can't use the executable on other computers
because it was compiled to use the .NET Framework 2 Beta. Could
someone please compile this to use the .NET Framework 1.1? Heck, I
don't even know if it's possible. I'm a VB newbie.


Module Main

Sub Main(ByVal files() As String)

Try

Dim vector As Object = CreateObject("WIA.Vector")

For Each file As String In files
vector.Add(file)
Next

Dim dialog As Object = CreateObject("WIA.CommonDialog")
dialog.ShowPhotoPrintingWizard(vector)

Catch e As Exception

End Try

End Sub

End Module
 
Reply With Quote
 
 
 
 
Mohamoss
Guest
Posts: n/a
 
      7th Jul 2004
Hi
You can just get framework 1.1 and compile your code against it yourself.
Checkout these links

http://msdn.microsoft.com/netframewo...t/default.aspx
http://www.microsoft.com/downloads/d...5E3-F589-4842-
8157-034D1E7CF3A3&displaylang=en
You might need to do some modifications to your code however , hope this
helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

 
Reply With Quote
 
A.S.
Guest
Posts: n/a
 
      11th Jul 2004
Thanks. I was able to compile my code with the 1.1 Framework (I used
vbc.exe), but now nothing happens when I run it on other computers. It
works as intended on the computer I compile it with.

Here is the updated code:

Module Main

Sub Main(ByVal files() As String)

Try

Dim vector As Object =
Microsoft.VisualBasic.CreateObject("WIA.Vector")

For Each file As String In files
vector.Add(file)
Next

Dim dialog As Object =
Microsoft.VisualBasic.CreateObject("WIA.CommonDialog")
dialog.ShowPhotoPrintingWizard(vector)

Catch e As System.Exception

End Try

End Sub

End Module



(E-Mail Removed) (Mohamoss) wrote in message news:<5mjd06$(E-Mail Removed)>...
> Hi
> You can just get framework 1.1 and compile your code against it yourself.
> Checkout these links
>
> http://msdn.microsoft.com/netframewo...t/default.aspx
> http://www.microsoft.com/downloads/d...5E3-F589-4842-
> 8157-034D1E7CF3A3&displaylang=en
> You might need to do some modifications to your code however , hope this
> helps
> Mohamed Mahfouz
> MEA Developer Support Center
> ITworx on behalf of Microsoft EMEA GTSC

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      11th Jul 2004
* (E-Mail Removed) (A.S.) scripsit:
> Thanks. I was able to compile my code with the 1.1 Framework (I used
> vbc.exe), but now nothing happens when I run it on other computers. It
> works as intended on the computer I compile it with.
>
> Here is the updated code:
>
> Module Main
>
> Sub Main(ByVal files() As String)
>
> Try
>
> Dim vector As Object =
> Microsoft.VisualBasic.CreateObject("WIA.Vector")
>
> For Each file As String In files
> vector.Add(file)
> Next
>
> Dim dialog As Object =
> Microsoft.VisualBasic.CreateObject("WIA.CommonDialog")
> dialog.ShowPhotoPrintingWizard(vector)
>
> Catch e As System.Exception


Add some output there, for example a 'Console.Write(e.Message)' to see
if an exception occured.

> End Try


--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
A.S.
Guest
Posts: n/a
 
      12th Jul 2004
I got it working - thanks for the Console.Write tip!

First, I tried what you suggested. On my other computer I got the
exception "Cannot create ActiveX component.", even when the code was
compiled on that computer. So there was no problem with the code -
there was something wrong with that computer. So I read more about the
WIA library (which contains the WIA.Vector and WIA.CommonDialog
objects) and found this:

"You will need WIAAut.dll to use the WIA Automation Layer. To locate
the file that contains the DLL and installation instructions, follow
these steps."

From http://msdn.microsoft.com/library/de...pagewiaaut.asp

So I searched the troubled computer for WIAAut.dll... nothing! So once
I downloaded and registered it, everything worked fine.
 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does BCM 2003 work with Outlook 2003 and Exchange 2003 =?Utf-8?B?bGFycnk=?= Microsoft Outlook BCM 0 30th Jan 2007 04:43 PM
Outlook 2003 Cant send e-mail from Excel 2003 or word 2003 =?Utf-8?B?QW5keQ==?= Microsoft Word Document Management 7 25th Oct 2006 04:33 AM
Does Outlook Standard 2003 have excel 2003 and Word 2003? =?Utf-8?B?ZGVuZWVu?= Microsoft Outlook Discussion 2 6th Sep 2006 01:16 AM
outlook 2003 on sbs server 2003 using exchange 2003 =?Utf-8?B?SmVubiBAIEEgRHJlYW0gQ2F0Y2hlcg==?= Microsoft Outlook Discussion 1 25th Mar 2006 03:44 PM
Outlook 2003 (Exchange 2003) Calendar Requests to Outlook 2003 (PO =?Utf-8?B?Sm9lIFNjaHVybWFu?= Microsoft Outlook Calendar 0 23rd Nov 2004 08:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 PM.