Need Basic Information
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Need Basic Information

  1. #1
    Join Date
    Jan 2012
    Location
    India
    Posts
    135

    Need Basic Information

    I am studying C# and Windows Form Programming. I am using Visual Studio Express 2010.

    I want to ask .. In C# programming .. we don't need .h file ? We don't need function declarations ? I am confused.

    I added a class directly , wrote functions ( methods) in that and used them directly .... The program runs successfully

    Thanking u,

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,197

    Re: Need Basic Information

    Your best bet for this kind of information is to find a simple online C# tutorial.

  3. #3
    Join Date
    Jan 2012
    Location
    India
    Posts
    135

    Re: Need Basic Information

    Thankx a lot Arjay Sir .. I have read a lot of C# Tutorials and also studying books of APress and Manning publication. But there is no one to guide me , so asking my judgement in the forum. I have worked on c and vc++ for last 10 years and have a habit of Doc-View architecture. So finding all this new.
    Thanks once again and always do suggest useful links and books.

  4. #4
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,005

    Re: Need Basic Information

    No header files are needed in C#. The declaration of the signature at method implementation is enough. Not clear about the specifics, but the method signatures are all just contained in the compiled assemblies. Actually, if you think about it, header files were always a bit of a kludge: (a) they violate the Single Source of Truth principle, and (b) better to just have explicit documentation than to try to work it out from the header.

    If you're linking against a C/C++ assembly, you may want to look into extern and dllimport: http://msdn.microsoft.com/en-us/library/e59b22c5.aspx
    Best Regards,

    BioPhysEngr
    http://blog.biophysengr.net
    --
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

  5. #5
    Join Date
    Jan 2012
    Location
    India
    Posts
    135

    Red face Re: Need Basic Information

    Thank u BioPhysEngr Sir,

    I felt very courageous .. fighting all alone with C# .. It is no doubt wonderful experience but need to verify what I felt.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center