Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Running C code in Visual Basic

Status
Not open for further replies.

klun

Junior Member level 2
Joined
May 1, 2015
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
386
Can I know is there any way to run C code in Visual Basic windows form? I have a runnable C code, and a fully created Visual Basic windows form. So can anyone tell me how to connect C code into visual basic windows form? Thanks in advance!
 

you create a DLL containing the C code and call it from the VB project, see
https://www.codeproject.com/Articles/8215/Creating-and-Calling-C-Function-DLL-from-NET
https://social.msdn.microsoft.com/F...6/calling-c-routines-from-a-vbnet-application

for example, below is a VB From which uses a DLL writen in C++ which communicates with a Bytronic Mechatronics PIC24 based trainer
**broken link removed**

VB.jpg
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top