[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Calling a C programme

Posted on 2000-04-02
2
Medium Priority
?
184 Views
Last Modified: 2010-05-02
I want to use a C programme in my Visual Basic project.The VB will provide some inputs to the c Prog and then after execution of the C programme it will get the output from the C programme.Which then will be processed for someother calculations.
0
Comment
Question by:ashwani040200
2 Comments
 

Accepted Solution

by:
thomasheilig earned 100 total points
ID: 2679328
Start your C programm with startapp and provide the input values into the commandline or a file.

Write the output values to a file and raed it in in VB.

Write a flag at the end, to signal vb tha everything is done.

The environment is multitasking !!

hth

Thomas
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2679579
You can run the C executable synchronously. To see how that is done find setup1.vbp on your system.

setup1.vbp should come as standard with your VB installation. It is the setup program that will be run when you create a Setup using the Setup wizard (vb5) or Package and Deployment wizard (VB6)

Anyway, depending on what version of VB you're using check out the FSyncShell or SyncShell function defined in that .vbp. That will avoid the multitasking problems thomasheilig is talking about.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question