CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > .NET Programming > C-Sharp Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    C-Sharp Programming Post questions, answers, and comments about C#.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 6th, 2000, 09:50 AM
    Jprisco Jprisco is offline
    Member
     
    Join Date: Apr 2000
    Location: NJ
    Posts: 123
    Jprisco is an unknown quantity at this point (<10)
    C# and mfc

    Im just wondering if you will be able to use mfc in c#.. Im pretty new to programming and have been studying mfc. this is something Ive heard next to nothing about and id like to know as soon as possible if i am wasting my time at this point as I will probably start learning c# as soon as a compiler is available...

    52901368
    Reply With Quote
      #2    
    Old July 6th, 2000, 10:53 AM
    Guest
     
    Posts: n/a
    Re: C# and mfc

    You are definitely wasting your time on MFC. It junky old stuff. Concentrate on new stuff like C# or Java.

    Reply With Quote
      #3    
    Old July 6th, 2000, 11:48 AM
    Dinu Dinu is offline
    Member
     
    Join Date: Jan 2000
    Location: New York, USA
    Posts: 117
    Dinu is an unknown quantity at this point (<10)
    Re: C# and mfc

    But C# is based on MFC library, or am I wrong?

    Dinu Sco*****
    Reply With Quote
      #4    
    Old July 6th, 2000, 12:13 PM
    thegios thegios is offline
    Junior Member
     
    Join Date: Nov 1999
    Location: Bruxelles (Belgium)
    Posts: 10
    thegios is an unknown quantity at this point (<10)
    Re: C# and mfc

    No, u're not wrong. And NO, it's not a waste of time learning MFC: it's the must if wanna develop in win32 env (assuming u're not developing in VB). More, C# uses MFC and VB components: C# does not have its own class library so you will be using the VB and VC++ libraries.

    I've seen things u ppl couldn't believe...
    Reply With Quote
      #5    
    Old July 6th, 2000, 04:44 PM
    Guest
     
    Posts: n/a
    Re: C# and mfc

    C# does not use MFC and VB components... it has the "ability" to use those libraries/components. And no, it is not built on top of MFC as one of the previous posters stated/asked.

    Reply With Quote
      #6    
    Old July 6th, 2000, 04:53 PM
    ALM ALM is offline
    Member +
     
    Join Date: Jun 1999
    Location: Miami, FL
    Posts: 972
    ALM is on a distinguished road (10+)
    Re: C# and mfc

    I believe you're wrong. Where did you read or hear that?

    As far as what I've read, C# will have access to a new "Common Language Subset" library which will also be available to C++ and VB.

    Regards,
    Alvaro

    Reply With Quote
      #7    
    Old July 6th, 2000, 06:35 PM
    Guest
     
    Posts: n/a
    Re: C# and mfc

    So then its safe to say that you can use normal class libs currently used in vc++ (MFC,ATL) in this new c#???


    Reply With Quote
      #8    
    Old July 6th, 2000, 09:22 PM
    jfergason jfergason is offline
    Junior Member
     
    Join Date: Jun 2000
    Posts: 12
    jfergason is an unknown quantity at this point (<10)
    Re: C# and mfc

    I'm pretty sure that you will be able to use mfc in your C# programs. Although I wouldn't recommend learning C# as it is essentially a subset of C++ but more restrictive in the fact that it binds you to the Windows Operating Environment.

    Reply With Quote
      #9    
    Old July 6th, 2000, 11:25 PM
    Jprisco Jprisco is offline
    Member
     
    Join Date: Apr 2000
    Location: NJ
    Posts: 123
    Jprisco is an unknown quantity at this point (<10)
    Re: C# and mfc

    Thats a very good point that I kind hace overlooked.....Does this mean that C# will only be usefull on the windows platform???
    Another question is how valueable is it to be able to program for different platforms...
    Im still new to programming and hoping one day to get into the field I need to know what is most important , or valuable things to know /study
    I appreciate the great reponse and the info that you have all provided....
    J.Prisco

    52901368
    Reply With Quote
      #10    
    Old July 6th, 2000, 11:51 PM
    Guest
     
    Posts: n/a
    Re: C# and mfc

    When I was an undergraduate at SDSU (San Diego State University) they taught C++. After 4 years I return for some Masters classes and now Java has taken the place of C++. Right now I would say Java is a sure bet for at least the next few years to come. Take a look at the want ads in many of the hot programmers areas such as Silicon Valley, Dallas, Austin, etc and you'll see a lot of companies asking for Java programmers.

    Reply With Quote
      #11    
    Old July 7th, 2000, 03:42 AM
    Guest
     
    Posts: n/a
    Re: C# and mfc

    Certainly not. You connot use MFC and especialy ATL or WTL with C# cause it does NOT support many features used in this libraries. With C# you can ONLY use COM-ojects like in VB.

    Reply With Quote
      #12    
    Old July 7th, 2000, 09:35 AM
    aamirdogar aamirdogar is offline
    Member
     
    Join Date: Jun 1999
    Location: Pakistan
    Posts: 77
    aamirdogar is an unknown quantity at this point (<10)
    Re: C# and mfc

    How do u say that it is only for windows.

    thing is that it is portable and when u can port some code then where does the dependencies comes in.

    Aamir

    Reply With Quote
      #13    
    Old July 7th, 2000, 06:22 PM
    Guest
     
    Posts: n/a
    Re: C# and mfc

    So what is knowlege of mfc or atl good for outside of c++??


    Reply With Quote
      #14    
    Old July 8th, 2000, 12:23 AM
    Karmus Karmus is offline
    Junior Member
     
    Join Date: Aug 1999
    Location: Los Angeles, CA
    Posts: 18
    Karmus is an unknown quantity at this point (<10)
    Re: C# and mfc


    Im just wondering if you will be able to use mfc in c#.. Im pretty new to programming and have been studying mfc. this is something Ive heard next to nothing about and id like to know as soon as possible if i am wasting my time at this point as I will probably start learning c# as soon as a compiler is available...


    I'm pretty sure you are confused right now, so I'll try to clarify some things.

    First, C# is not tied in to the Windows environment. Why? C# was submitted to ECMA, an standards committee, by Microsoft. C# will be a subset of C++, like C++ is a subset of C. So anything like MFC or Win32 functions *should* work when using a MS C# compiler.

    Second, MFC is just an encapsulation of the Win32 API. The Win32 API is just a set of functions itself, not defined as the libraries to C#, therefore it's incorrect to say that MFC and Win32 is a standard library of C#. In fact, the API's themselves are just functions of C code and assembly language.

    The purpose of C# is to create an extension to current C++ standards, enabling programmers to do more things or make things easier.

    Yes, C# can work cross-platform if you conform to future C# standards (and standard libraries) set by ECMA. You will need to just recompile codes on other platforms, just like C and C++. Of course, if you use Win32 API functions (or COM, or MFC, etc.), it is not cross-platform compatible.

    One word of advice, you may want to try to learn Win32 API first before MFC. Why? You'll figure that a lot more things you need to do will require the API functions, in addition to MFC, which is just an encapsulation of it. Of course, if you are not really interested on what goes on inside of MFC, you can just learn MFC.

    Frank

    Reply With Quote
      #15    
    Old July 8th, 2000, 03:36 AM
    ravish ravish is offline
    Member
     
    Join Date: May 1999
    Posts: 216
    ravish is an unknown quantity at this point (<10)
    Re: C# and mfc

    May be just the programming experience of C++. I dont think in anyway C# will be related to MFC. But things developed using MFC can be used in c#. It will be a new language as C++ came from C,and before we assume something let us see how it develops. It might be too early to assume, we shall wait till PDC, I beleive we will know more about it then.
    Ravi

    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > .NET Programming > C-Sharp Programming


    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

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:18 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009