Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Combining C# and C++..
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
deville75




PostPosted: Fri Jan 19, 2007 1:49 pm   Post subject: Combining C# and C++..

Okay, abcde..z told me that it was possible to combine c# and c++ somehow, so I was wondering if anyone knew how. Basically I have a program in C++ that was already made and given to me. The program uses a driver to communicate with a device connected to the USB device. The program therefore uses a lot of functiosn from a header file that was given with the device. The program (tctest1.cpp) basically recieves data from the device (thermocouple) and outputs the temperature the device is reading. It does all this in a DOS command window. What I need to do is basically make this program pretty. I've been using Win32 API, but abcdef...z says that Visual C# Express Edition is a lot easier, with its' Visual Form editor.

So is it possible to somehow combine the C++ program and my C# application? Even something like copying the values the DOS Command Window the C++ program uses and ouputing it onto C# app would be cool.

I'm using MS Visual C++ for C++ and Visual C# Express Edition.
Sponsor
Sponsor
Sponsor
sponsor
deville75




PostPosted: Fri Jan 19, 2007 3:38 pm   Post subject: Re: Combining C# and C++..

Ok I change my question. I'm going to continue to use Win32 API for now, since I know more with that as of now. Right now I have a device (connected to USB) I'm reading from and I want to output the values on a Dialog Box. How do I do this? The values are stored and have to be stored in a Float64[] array. In my DialogBox I have a few Text Fields. How do I link those text fields to my variables?
wtd




PostPosted: Fri Jan 19, 2007 3:47 pm   Post subject: RE:Combining C# and C++..

Perhaps the question you really have is: how do I turn a value of type Float64 into whatever passes for a string when doing Win32 programming?
deville75




PostPosted: Sun Jan 21, 2007 10:47 am   Post subject: Re: Combining C# and C++..

No I just figured that out actually.. it's sprintf.. so thats working, but do you know how I can link a textbox to the variable? All I've been able to do is use the SETTEXT message to set the window bars text to the value.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: