technical question..

This is a discussion on technical question.. within the C# Programming forums, part of the General Programming Boards category; Hi, I do have 2 files written for Turbo C++, one of them is .h and the other is .lib, ...

  1. #1
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807

    technical question..

    Hi, I do have 2 files written for Turbo C++, one of them is .h and the other is .lib, my question is, how do I use them with C#?

    I really need these files...

    Another question, if I haven't access to the source of these files, so should I forget them, right?

    Thanks

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    If they are written with turbo C then I would forget it...that compiler is an old dos compiler and should only be used for legacy tasks...

    Say what the code inside that lib does and maybe someone can offer you a better alternative

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    You cannot use the source itself. If you have a chance to compile it into a library like a dll file, you can use this like you would use it from any other C++/VB Programm. If you have the source you can convert it to managed C++ and include it in your C# project. It should work that way.

    If you give a short description of what this code does, we might be able to offer a native .NET alternative.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807

    Ok, thanks guys.

    I'll make an .dll and use them with C#, that's ok.
    really thanks.

  5. #5
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807

    Hmm, what do you mean "managed C++"?

    I didn't get it, if you can explain me
    Thanks again..

  6. #6
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Managed C++ is C++.NET. It's C++ that uses the .NET Framework and gets compiled to MSIL Code like C#.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  7. #7
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807

    thanks again nvoigt

    thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 01:14 PM
  2. Technical Specialist - Update Delivery - C Required
    By ISCRecruiter in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 07-21-2008, 10:50 AM
  3. callbacks and threads - technical question
    By Jumper in forum Windows Programming
    Replies: 2
    Last Post: 07-11-2004, 01:09 AM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21