Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C, VB.net, MySql

C, VB.net, MySql

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpdatabasemysql
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kus_hal03
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • K kus_hal03

      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.

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      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.<

      K 1 Reply Last reply
      0
      • C Code o mat

        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.<

        K Offline
        K Offline
        kus_hal03
        wrote on last edited by
        #3

        Yes I want to use first approach means I will use client-server approach. But can you tell me how can I do this?

        C 1 Reply Last reply
        0
        • K kus_hal03

          Yes I want to use first approach means I will use client-server approach. But can you tell me how can I do this?

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          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.<

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups