sevensilly
Member
- Joined
- May 8, 2007
- Messages
- 10
- Programming Experience
- 1-3
Hi Guys,
I'm just getting my feet wet in VB.Net but I consider myself somewhat versed in vbscripting so not all of it is new to me.
What I'm doing is writing a Windows app that I've already written as a vbScript- part of the script uses the FileSystemObject class. So what I've done is referenced scrrun.dll in my project. Consequently, this created a file called Interop.Scripting.DLL.
My question is why did referencing a DLL file produce another one? Is this a .NET requirement? Also, could someone explain to me what you're actually doing when you reference a .NET or .COM object? Would I be correct in saying that that purpose of referencing is to be able to use classes within the referenced library?
Secondly after compiling the project, I copied the executable to a different directory and tried to execute it. It complained because it did not find Interop.Scripting.DLL in the same directory. Is there anyway I can compile this executable so that it doesn't require additional DLL files? Maybe have it just reference SCRRUN.DLL? TIA.
I'm just getting my feet wet in VB.Net but I consider myself somewhat versed in vbscripting so not all of it is new to me.
What I'm doing is writing a Windows app that I've already written as a vbScript- part of the script uses the FileSystemObject class. So what I've done is referenced scrrun.dll in my project. Consequently, this created a file called Interop.Scripting.DLL.
My question is why did referencing a DLL file produce another one? Is this a .NET requirement? Also, could someone explain to me what you're actually doing when you reference a .NET or .COM object? Would I be correct in saying that that purpose of referencing is to be able to use classes within the referenced library?
Secondly after compiling the project, I copied the executable to a different directory and tried to execute it. It complained because it did not find Interop.Scripting.DLL in the same directory. Is there anyway I can compile this executable so that it doesn't require additional DLL files? Maybe have it just reference SCRRUN.DLL? TIA.