Results 1 to 4 of 4

Thread: [RESOLVED] wrapping it up (c++ activex to .net usercontrol)

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    58

    Resolved [RESOLVED] wrapping it up (c++ activex to .net usercontrol)

    Hello
    No idea where to start on this quest, so im open for suggestions.
    I have a huge active x written in c++. I know even less of c++ than of c#, so here's the deal; i wanna convert it to a .net usercontrol

    1; can it be converted directly in any way?
    2; how much code must be changed to convert it (if option 1 fails)

    Its a rather complex thing...

    Any general ideas out on where to begin?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: wrapping it up (c++ activex to .net usercontrol)

    1. No
    2. All of it
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    58

    Re: wrapping it up (c++ activex to .net usercontrol)

    1. Ouch
    2. Doubleouch

    Thx for quick reply and saving me from hundreds of hours with incorrect thinking

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] wrapping it up (c++ activex to .net usercontrol)

    There are tools to convert between various languages but converting unmanaged C++ to any .NET langauge, even managed C++, would be a huge challenge. Basically you just need to forget the code itself and look at the functionality it provides, then implement that same functionality in the most efficient way you can using your .NET lanaguage of choice. If that lanaguage is C++.NET then there may be a fair bit of similarity in some places. If that language is C# then there may still be some similarity, but less.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Click Here to Expand Forum to Full Width