• 0

vb.net and vb6 help


Question

hello everyone,

My problem is a tricky one. I want to make an application in vb.net which could get the results from an external exe file and display them in the vb.net application. the trick is that we have to use vb6 to make the other application.

the vb6 app should itself send data to the vb.net app on some even and the .net app would accept it. if we make a sort of a listener in the vb.net app using a timer then i guess the overhead would be huge. but the question is that how do i make the vb6 app send a signal to the vb.net app that its ready to transmit data.

cheers !

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

There are several ways to achive this. One easy way is for the VB.NET app to use the File Watcher class to look for a when a file is created in a specific folder (ie: C:\input) The VB6 app would create the file in it's own space then move the file to the VB.NET folder (do NOT create in that folder as the File Watcher class will run when the file is created)

You can also make your .NET app a DCOM app and then call that resource inside VB6.

There are other solutions (of course) but becuase you were not specifc enough about how much data, how often the transfer, and even why this transfer is happening (let alone why a VB6/.NET combo approach is nessasary) I can't give you more info.

Good luck

Peace,

James Rose

Link to comment
Share on other sites

  • 0

Use Winsock... Make a stable TCP/IP Connection to the .net software (server) From the vb6 app (Client)

If u need help doin this ask me (I dunno much.net but my VB is good)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.