473,765 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Requset a console based c++ library.

Hi All

I need a library which can afford "cisco" console or "juniper" console
style control.
(may be something like autocad's command windows)

On programming running . It can afford a "SHELL" like control internal .

You can type command you defined and execute the "handler".

Is such a library exist?

(after several month trying , I think may be I should give up write such a
lib and found one, It's not complex to write mechanism, but have out of
control- afford parsing keyword tree, string comparing , list help ,time
delay execute...., I spend too much time on it, for after all ,what I want
do is write a console based SMS sender ,not the lib it self)


key9

May 7 '06 #1
2 2233
"key9" <ia*****@126.co m> wrote in message
news:e3******** **@news.yaako.c om...
Hi All

I need a library which can afford "cisco" console or "juniper" console
style control.
(may be something like autocad's command windows)

On programming running . It can afford a "SHELL" like control internal .

You can type command you defined and execute the "handler".

Is such a library exist?

(after several month trying , I think may be I should give up write such
a lib and found one, It's not complex to write mechanism, but have out of
control- afford parsing keyword tree, string comparing , list help ,time
delay execute...., I spend too much time on it, for after all ,what I want
do is write a console based SMS sender ,not the lib it self)


I recommend Python for this. There are two basic ways to do it: 1) write a
shared library in C++ and run it under Python using Boost.Python (which is
what I do) or 2) write the main program in C++ and run Python from there.
The first technique, called "extending" , sounds more like what you want. The
second technique, called "embedding" , is what I would do to add scripting to
a C++ application.

Of course if you don't know Python you will have to learn some, but unlike
C++ it is very easy to learn. Boost.Python takes all the pain out of
connecting up the C++ and the Python console is intuitive and powerful. I'm
in the middle of a project using these tools right now and I couldn't be
happier with it. See www.boost.org

Cy
May 8 '06 #2
Thank you very much , I 'll keep on trying...
May 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
105829
by: Dave | last post by:
Hi, I have done some research, trying to Clear The Screen in java code. The first option was the obv: system.out.print("\n\n\n\n\n\n\n\n\n\n\n\n"); then i heard about this method: System.out.print((char)27 + "[2J");
2
2128
by: Richard Shea | last post by:
Hi - I wondered if anyone had done this before and could provide some suggestions ? I'm interested in supplying extra functionality to a Win32 Console (cmd.exe) - full description below for those interested. I would do this using Python. I'm having difficulty finding anything about Console based programming via MSDN - I just wondered if anyone had done anything like this or alternatively knew where the part of the Win32 API which deals...
43
12161
by: Dom | last post by:
can someone please help me display text in the console cout << "Testing"; in a different colour to the default one
0
1050
by: Liora | last post by:
I have a Web form with a hidden text-box that contain XML data. When the application has been compiled and run at visual studio 2002, I could reach the XML data and all worked fine. Under the new version(vs 2003) I got this error: Server error about a potentially dangerous Requset.Form value from client. (I think it's a new security level)
4
302
by: Derek Strickland | last post by:
Hello world I have a console application that loads several classes. I would like on of my classes to be able to detect input made in the console and take action based on the input. Sounds simple but of course in my class library I can't see the Console object. Anybody know how to do this Thanks Derek
6
12158
by: Roberto Dias | last post by:
Could anyone give me some tips about how to start a menu-based console application using C++ function oriented programming techniques? I'm a FORTRAN-based electrical engineer and a newbie on C++ style, for this, I'm not ready for OOP techniques yet. Thanks a lot, Roberto Dias Recife/PE - Brazil
4
4498
by: Manfred Braun | last post by:
Hi All ! I think, there is a bug in the System.Console class related to use the STDIO streams. I am doing a very simple thing in a console-based program named CS Console.In.Peek(); and the program hungs if no parameters were provided on the commandline. If I use simple redirection like "echo "hallo" | cs.exe"
6
1599
by: David Thielen | last post by:
Hi; This works fine on my development system but fails on IIS on Win 2003. I have requests for filename.txt, filename.rtf, etc that must go to my ASP.NET code. I have the following in my web.config: <httpHandlers> <add verb="*" path="report-create.*" type="ReportCreate"/> <add verb="*" path="report-view.*" type="ReportView"/> <add verb="*" path="template-file.*" type="TemplateFile"/> </httpHandlers>
3
9736
by: Daniel Clark | last post by:
I have a Windows command line based application that only shuts down cleanly if it sees "CTRL-C" on the console. I need to automate the running of this application, but still allow the user sitting at the machine to cancel the process cleanly if he/she needs to. In Unix this would be a tiny shell script that used "kill -15", but under Windows there does not seem to be an easy way to do this, at least that I can find. Below is a test...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.