473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

No accessible Main

P K
Hello,

I have a console application.
I have 2 or 3 classes.
I also have a class in which I have nothing other than the main function
with the follwoing signature

public shared sub Main

End Sub

I main I create other objects and so on...
but I get an error "No accessible main method with appropriate signature..."
error.
My main is public and shared and in the project properties I have selected
the class having the main as the startup object.

WHAT IS GOING WRONG???

PK
Apr 3 '06 #1
4 1300
Wrong forum; but isn't the signature for Main is :

Public Shared Sub Mail (ByVal args() as String)

End Sub

Apr 3 '06 #2
How can it be 'Mail' ?

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Wrong forum; but isn't the signature for Main is :

Public Shared Sub Mail (ByVal args() as String)

End Sub

Apr 3 '06 #3
Sorry Main..typo

Apr 3 '06 #4
P K
ya i know wrong forum ....but this looks like the most active forum...
FYI ...main is overloaded ..there are signatures with arguments and without
.my project was corrupted I suppose...I recreated a new project and all the
pain....
dunno what went wrong...

thanks though...

"tdavisjr" wrote:
Sorry Main..typo

Apr 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Gunnar Beushausen | last post by:
Hi! I need a class to store the users data (ID, name etc.) that is accessible from anywhere. At application startup the class gets filled with its data about the user. But how can i access...
9
by: Paulers | last post by:
Hello vb.net experts :) I am trying to program an app that resides in the system tray and I am trying to put all my main code in sub Main(). I am getting this errormessage at compile: ...
9
by: TechN00b | last post by:
I'm trying to write a quick commandline app that takes a string from the commandline and returns a formatted md5 hash. Unfortunately the code won't comple and returns an error of "No accessible...
2
by: ajtaylor | last post by:
Hello, Sorry another question on mixed code assemblys. I have a static class library containing a lot of unmanged code. I have created a mixed code assembly which I am attempting to use in a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.