Save
Random Shot: 
 

Welcome to the Sherdog Mixed Martial Arts Forums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

 

Go Back  Sherdog Mixed Martial Arts Forums > General Discussion > Mayberry Lounge > simple question on VB.NET scripts

Reply
 
Sherdog Forums
LinkBack Thread Tools Search this Thread
Old 10-23-2007, 12:39 PM   #1 (permalink)

Brown Belt
 
Join Date: Sep 2003
Location: 510
Posts: 4,617
Status: Timbaland is online now
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
Timbaland is online now  | 
 
   
Reply With Quote

Old 10-23-2007, 05:31 PM   #2 (permalink)

Brown Belt
 
Join Date: Sep 2003
Location: 510
Posts: 4,617
Status: Timbaland is online now
No one can help me here?
Timbaland is online now  | 
 
   
Reply With Quote
Old 10-24-2007, 03:44 AM   #3 (permalink)

White Belt
 
Join Date: Jul 2007
Location: usa
Posts: 79
Status: POedBoy is offline
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?
POedBoy is offline  | 
 
   
Reply With Quote
Old 10-24-2007, 02:01 PM   #4 (permalink)

Brown Belt
 
Join Date: Sep 2003
Location: 510
Posts: 4,617
Status: Timbaland is online now
Quote:
Originally Posted by POedBoy View Post
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.
Timbaland is online now  | 
 
   
Reply With Quote
Old 10-24-2007, 06:22 PM   #5 (permalink)

White Belt
 
Join Date: Jul 2007
Location: usa
Posts: 79
Status: POedBoy is offline
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.
POedBoy is offline  | 
 
   
Reply With Quote
Old 10-24-2007, 07:00 PM   #6 (permalink)

Brown Belt
 
Join Date: Sep 2003
Location: 510
Posts: 4,617
Status: Timbaland is online now
Quote:
Originally Posted by POedBoy View Post
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.
Timbaland is online now  | 
 
   
Reply With Quote
Old 10-24-2007, 08:21 PM   #7 (permalink)
Banned
 
Join Date: Oct 2007
Posts: 10
Status: Nood is offline
why is scrp t cencored?
Nood is offline  | 
 
   
Reply With Quote
Old 10-24-2007, 08:35 PM   #8 (permalink)

Brown Belt
 
Join Date: Sep 2003
Location: 510
Posts: 4,617
Status: Timbaland is online now
I don't know. I even looked it up on urban dictionary to make sure it doesn't mean anything in slang.
Timbaland is online now  | 
 
   
Reply With Quote

Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
A question for my fellow MMA fans... Redd Loc The Wasteland 45 10-20-2007 05:54 PM
diet question FightFan40 Dieting / Supplement Discussion 2 10-09-2007 10:03 PM
NO question now as to what event to order... Putasos The Heavyweights: UFC and WEC 93 04-05-2007 05:49 AM
Here is a good question... IKNOW-WTYDID The Wasteland 17 04-02-2007 11:36 PM


All times are GMT -5. The time now is 02:41 PM.


Powered by vBulletin Version {1. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2008 Sherdog.com | Privacy Policy | Click here to advertise on Sherdog