C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-15-2003, 07:58 AM   #1
dp_goose
Guest
 
Posts: n/a
Question Run vbscript from C++ console application

Is it possible and how do I go about running a vbscript from a console application?

Thx

Goose
  Reply With Quote
Old 05-15-2003, 08:14 AM   #2
&TH of undefined behavior
 
Fordy's Avatar
 
Join Date: Aug 2001
Posts: 5,183
Code:
system("wscript MyScript.vbs");
__________________
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
Albert Einstein (1879 - 1955)


Board Rules
Fordy is offline   Reply With Quote
Old 05-15-2003, 08:25 AM   #3
dp_goose
Guest
 
Posts: n/a
Unhappy

Sorry, but I didn't make myself clear before.

I actually have a string that I want to pass to it and get data returned back. It so that the translation/processing can by modified easily with out having to recompile.
  Reply With Quote
Old 05-15-2003, 09:00 AM   #4
&TH of undefined behavior
 
Fordy's Avatar
 
Join Date: Aug 2001
Posts: 5,183
You can maybe do this with Console Handles using a few APIs, or perhaps through COM, but it will be a fair bit of work..

Perhaps you can put the data you want to pass in a file....run the script...the script reads the files, makes changes, exits...and your prog opens the file and reads the changed data
__________________
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
Albert Einstein (1879 - 1955)


Board Rules
Fordy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Win32 Console Application Problem. kevinawad C++ Programming 10 11-07-2008 03:35 PM
Console application - input handling Something C++ Programming 4 06-09-2007 02:19 PM
Running a console application maxorator C++ Programming 4 10-03-2005 04:23 AM
My First Network Console application aroticoz Networking/Device Communication 3 07-14-2005 03:49 AM
Few problems with console application GaPe C Programming 12 04-03-2002 01:19 PM


All times are GMT -6. The time now is 01:53 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22