Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

c++

  • 08-06-2004 02:33PM
    #1
    Registered Users, Registered Users 2 Posts: 1,368 ✭✭✭


    Hey ppl,

    I working on a project at the moment. The project involves interfacing with a data aquisition card.

    I have to develop an application in C++ using MFC's.

    I have some sample code, written in C to interface with the card. I've been working with this C code and have got it working (acquiring the data).

    The problem is I want to incorporate this code into my MFC C++ application, and amn't sure how to do this.

    will i have to rewrite the entire code to incorporate it??

    if anyone has any experience of this kinda thing, id appreciate some advice..

    Thanks,

    king


Comments

  • Closed Accounts Posts: 437 ✭✭casper-


    No .. all will be well. There's nothing stopping you from either

    a) compiling the C code with a C++ compiler (for the most part it will be perfectly valid)

    b) compiling the C code with a library, and then calling the routines from your C++/MFC app

    A ton of open-source libraries already work like this - take a look at libPNG or libTIFF or expat or .... (the list is endless)


Advertisement