|
 |
|
|
|
 |
10-23-2007, 12:39 PM
|
#1 (permalink)
|
Brown Belt
Status:
|
|
simple question on VB.NET scripts
Hey guys. I have a question for the programmers on here. So I have a program written in VB.NET and I am using Microsoft Visual Studio 2005. So I opened the project in VS 2005 and I built it. So building the project created a .dll file in the bin folder. I used the command prompt that came with VS 2005 to register the .dll file properly.
Now here is my question. Once I have registered the .dll file do I have to do anything else like run it? I can't figure out how to run this stupid crap. I get an error when I integrate it with my other program. I don't see anywhere in VS 2005 to run the program. I looked in task manager and I didn't see the program running.
Any help would be appreciated. Thanks.
edit: sherdog apparently censors the word scri*t so I replaced it with the word program
|
| |
|
10-24-2007, 03:44 AM
|
#3 (permalink)
|
White Belt
Status:
|
|
What do you mean by registering the dll? Do you mean you want to stick it the Global Assembly Cache(GAC)?
I don't recall the exact process for doing that-- because I never do it--- but a quick google came up with this: http://support.microsoft.com/kb/315682
Is there a specific reason you need to go through that though? If you just want to make use of the dll you created, all you have to do is reference the dll. In the solution explorer, either right click on your project, and then "Add Reference.." or double click on the My Project item, and a tab will open up, that has a section for References.
Whats the error you were getting?
|
| |
|
10-24-2007, 02:01 PM
|
#4 (permalink)
|
Brown Belt
Status:
|
|
Quote:
Originally Posted by POedBoy
What do you mean by registering the dll? Do you mean you want to stick it the Global Assembly Cache(GAC)?
I don't recall the exact process for doing that-- because I never do it--- but a quick google came up with this: http://support.microsoft.com/kb/315682
Is there a specific reason you need to go through that though? If you just want to make use of the dll you created, all you have to do is reference the dll. In the solution explorer, either right click on your project, and then "Add Reference.." or double click on the My Project item, and a tab will open up, that has a section for References.
Whats the error you were getting?
|
Thanks for the reply man. When I mean by registering the dll I mean register it with Microsoft Windows which is done via command prompt. I am not sure if its the same thing as the GAC and I am still confused as to what the GAC is after reading that link.
I've ran other scripts in VB 6.0 and it was a lot simpler. I could create a .exe file and run that. With VB.NET I am not given this option.
Basically we are using software that runs with these VB scripts. These VB scripts handle the exporting of the information (customized export). Like with these scripts people can choose what type of file they save it as. From here they will link it to the other software by typing in the ProjectName.ClassName into the software. I am just unsure of what to do with the .NET ****** and how to execute it. Thanks.
|
| |
|
10-24-2007, 06:22 PM
|
#5 (permalink)
|
White Belt
Status:
|
|
Is the software calling the scripts created in a .NET language? Or is it a native application( ie, made in vb6 or c++ )
You probably already know this, but vb6 and vb.net are not compatible.
But they can talk to each other through COM interop. Or you can have a program made in one, execute an .exe made in the other( I'm not sure, but it sounds like this is what you're trying to do? ).
If you want to turn your dll into an exe, look in your "My Project" settings again. Under application type you'll have:
Console Application - produces an exe, shows a command prompt
Windows Application - produces an exe, no command prompt, for gui apps
Class Library - produces a dll, contains code other .NET applications can use
If you make an exe, your program *must* include a sub named Main. Its the entry point to your program.
Hope that helps.
|
| |
|
10-24-2007, 07:00 PM
|
#6 (permalink)
|
Brown Belt
Status:
|
|
Quote:
Originally Posted by POedBoy
Is the software calling the scripts created in a .NET language? Or is it a native application( ie, made in vb6 or c++ )
You probably already know this, but vb6 and vb.net are not compatible.
But they can talk to each other through COM interop. Or you can have a program made in one, execute an .exe made in the other( I'm not sure, but it sounds like this is what you're trying to do? ).
If you want to turn your dll into an exe, look in your "My Project" settings again. Under application type you'll have:
Console Application - produces an exe, shows a command prompt
Windows Application - produces an exe, no command prompt, for gui apps
Class Library - produces a dll, contains code other .NET applications can use
If you make an exe, your program *must* include a sub named Main. Its the entry point to your program.
Hope that helps.
|
Thanks for the help. I must say I hate doing technical support. So a brief overview of the situation is that the software I use is made in Russia and I got no training at all on VBScript and they expect me to support it. Well the customer I'm dealing with only has Visual Studio 2005 which will convert VB6 projects to VB.NET when you open them up in there.
All our stupid developers in Russia told me was that the ****** written in VB.NET will run with the software and I need a COM interop. I typed in a line of code which should have let the COM interop work but since I am getting the error still there has to be something wrong with it. I was having problems finding information online on this part that would work. Do you have any suggestions? Thanks.
|
| |
|
10-24-2007, 08:21 PM
|
#7 (permalink)
|
|
Banned
Status:
|
|
why is scrp t cencored?
|
| |
|
| Thread Tools |
Search 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
HTML code is On
|
|
|
|
|
|
All times are GMT -5. The time now is 02:41 PM.
|