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

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreVisual 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 Dev Shed Forums Sponsor:
  #1  
Old August 9th, 2012, 12:01 PM
AvsH AvsH is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2006
Location: IL, USA
Posts: 584 AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 17 h 51 sec
Reputation Power: 20
Class Library to .exe

I have a class library VB.NET project that works exactly how I want it to. The only thing I want now is to have the program be able to be opened via an .exe for client use.

How do I go about this, since I do not think that Class Library projects can be made into an .exe?

I also need a way to be able to open the project via a command line and be able to read parameters; currently the project does not have any Main as it is not needed for a Class Library.

I have attempted this before (by switching it into a Console Application) and adding a Main but that had failed me.

Reply With Quote
  #2  
Old August 13th, 2012, 10:02 AM
AvsH AvsH is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2006
Location: IL, USA
Posts: 584 AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 17 h 51 sec
Reputation Power: 20
Anyone have any tutorial or advice? I ask this because I have even tried changing the project to Console Application and building a Main yet the Main never executes. This happens even after building a "main" VB.NET module that just contains the Main(), yet that never fires too.

Reply With Quote
  #3  
Old August 13th, 2012, 10:55 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,237 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 14 h 47 m 12 sec
Reputation Power: 4445
I haven't used VB since VB6, but with VB6 you could write a "wrapper" exe that encapsulated your class. You could also make an activex .exe rather than a .dll, but you'd do that if you needed your component to run in a different process.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #4  
Old August 14th, 2012, 12:05 PM
AvsH AvsH is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2006
Location: IL, USA
Posts: 584 AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level)AvsH User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 17 h 51 sec
Reputation Power: 20
I somehow figured out how to do the .exe (or at least make a "Class Library" switch to "Console Application") though I run into a new problem.

I have an RTD server running, or this is the RTD server and I wanted it to be a .exe for ease of the user when I publish the application. Though, what happens is usually when I hit debug Excel opens and then once Excel tries to access the RTD it will start up - it doesn't do this any more. It makes it seem as if the RTD is not registered with the COM for Excel to even know it is there.

Any ideas?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Class Library to .exe

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap