Re: Why I have error message "not have an entry point defined"?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



> Usually, I do not need to take care of it. The IDE generate what you need.
>
> I do not find a main() method in the class source code.

There's your problem. Depending upon the context, the IDE may or may not
include the Main() function in a C# Windows.Form. C# requires a bit more
understanding and control on the part of the programmer. VB.Net still tends
to hide some things, and "take care of them" for you. Still, you can control
these things in a VB.Net project when you need to. You just have to know how
to find them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"david" <david@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6012BB2B-8756-4D3B-8B29-74902B6BE2A8@xxxxxxxxxxxxxxxx
> The window form client and service are developed by Visual Studio .NET.
> Usually, I do not need to take care of it. The IDE generate what you need.
>
> I do not find a main() method in the class source code.
>
> David
>
> "Kevin Spencer" wrote:
>
>> Does the Form have a Main() method defined? This is the entry point.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> Paranoia is just a state of mind.
>>
>> "david" <david@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:8940A930-68C3-4750-8F9B-EA736AD2D463@xxxxxxxxxxxxxxxx
>> > When I compile a window form client for web service, there is error
>> > message
>> > as follows:
>> > Program
>> > 'D:\usr\winVBcontrol\WinClient4WebServiceFileCS\obj\Debug\WinClient4WebServiceFileCS.exe'
>> > does not have an entry point defined
>> >
>> > Notice: I create a solution (perhaps for VB). In the sulotion, I
>> > created
>> > win
>> > form clients for web service with VB in a window form VB project and
>> > they
>> > worked fine. Now the current one is developed in a C# project under
>> > this
>> > solution. Does it cause the error message?
>> >
>> > Any help.
>> >
>> > Thanks.
>> >
>> > David
>> >
>>
>>
>>


.



Relevant Pages

  • Re: various objects in my VB6 project - Calling IUnknown
    ... didn't know about the IDE setting - ... Frankly, I never coded a module without Option Explicit, but, I've had at ... have guessed the basic types to default to ByVal, but I don't really care ... Unresolved problems within - that's the crux of it. ...
    (microsoft.public.vb.general.discussion)
  • Re: Test cases and static typing
    ... >>As long as I am writing only tests, I don't care. ... >>of writing tests, I want to write as many tests as possible, without ... > And anyway, this would be a question of the IDE, not of static typing. ... OTOH, Lisp certainly doesn't check ...
    (comp.lang.python)
  • Re: Test cases and static typing
    ... >>As long as I am writing only tests, I don't care. ... >>of writing tests, I want to write as many tests as possible, without ... > And anyway, this would be a question of the IDE, not of static typing. ... OTOH, Lisp certainly doesn't check ...
    (comp.lang.lisp)
  • Re: Delphi for Win64 / AMD64?
    ... Don't care whether the IDE is running in 32 or 64bit. ... API hooking, DLL injection ...
    (borland.public.delphi.non-technical)