so i am using visual basic express edition 2010
i am now able to select an image and displaying it in the picture box.
now i need to run a c code (its exe file) by clicking a button in the vb form.
i was able to this too by procss.start
now when i am doing this the c code needs one input which is the file or image that i am searching and displaying in the picture box.. so that will be the input of the c code.
i want to give that input directly to the c code or rather to its exe file without needing to type it manually.
when i will click the button the exe file will run and the input will be given automatically so i will get the output..
can anyone please help?
i hope i was clear :(
seeking_help
0
Newbie Poster
Recommended Answers
Jump to PostIf your reading the specific file or image from specific location then you could code it in C application which is EXE which your running when clicking button on vb form.
Jump to PostThen you need to ask the user to select image or file using the openfile something like below
Dim objFile As New OpenFileDialog objFile.ShowDialog() Dim filepath As String = "" If Windows.Forms.DialogResult.OK Then filepath = objFile.FileName End If
File path will have the path selected by …
All 6 Replies
Pgmer
50
Master Poster
Featured Poster
seeking_help
0
Newbie Poster
seeking_help
0
Newbie Poster
Pgmer
50
Master Poster
Featured Poster
seeking_help
0
Newbie Poster
Pgmer
50
Master Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.