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!
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
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
https://www.bytronic.net/html/pic24tb.html

VB.jpg
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top