C, VB.net, MySql
-
I have developed one GUI in vb.net but now I want to use C as backend code along with MySql as database. Is it possible to create such a application. I have been using C and MySql under Fedora and I have my GUI ready in vb.net. Can you tell me how can I communicate these thing together? For ex. I have add button on front end, when I click add button, and instead of defining functionality in vb.net I want to send input to C function and then C function will execute and return output.
-
I have developed one GUI in vb.net but now I want to use C as backend code along with MySql as database. Is it possible to create such a application. I have been using C and MySql under Fedora and I have my GUI ready in vb.net. Can you tell me how can I communicate these thing together? For ex. I have add button on front end, when I click add button, and instead of defining functionality in vb.net I want to send input to C function and then C function will execute and return output.
Do you mean that you want the VB frontend running under windows to "do business" on a -most likely separate- machine running Fedora? If yes, i'd say, use a client-server aproach, run a server on the Fedora machine onto which your VB app connects and then sends commands (which are then executed by your C code) and receives results (created by your C code). If you mean that you want the C code to also run on the windows machine, in my oppinion your best bet would be to create a DLL from your C code and then use it in a VB app with your frontend calling methods as needed.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<
-
Do you mean that you want the VB frontend running under windows to "do business" on a -most likely separate- machine running Fedora? If yes, i'd say, use a client-server aproach, run a server on the Fedora machine onto which your VB app connects and then sends commands (which are then executed by your C code) and receives results (created by your C code). If you mean that you want the C code to also run on the windows machine, in my oppinion your best bet would be to create a DLL from your C code and then use it in a VB app with your frontend calling methods as needed.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<
-
Yes I want to use first approach means I will use client-server approach. But can you tell me how can I do this?
Look into sockets under linux[^] and sockets under windows[^], i'd use TCP/IP or UDP depending on your needs. For VB related questions, target the VB forums here on CodeProject. For the basic client-server aproach[^], Google is your friend.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<