473,774 Members | 2,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ ActiveX python javascript communication trouble.

I'm investingating a c++ api, Panda3d.com, that has a python binding.
I want to convert this api into an ACtiveX control so it will run on
the web. When I do so I want to use Microsoft Script Control to call
api routines from Javascript in the browser.
Let's say I write up a game in python with my own functions. Then I
embed it in a web page and I want to call my functions from javascript?
How can I do it. Script control allows you to bind api functions to
javascript, but not the functions in my python file.

Adobe Atmoshere a 3D application that ran in a web page, had a
javascript binding. You could write code in a javascript file, and it
would be interpreted during start-up. After that, I could send function
calls in the form of a string from the browser to atmosphere. How did
this work? Is the api aware of the python functions and variables
after it is loaded up?

Confused,
Dan

Jul 19 '05 #1
1 1849
> I'm investingating a c++ api, Panda3d.com, that has a python binding.
I want to convert this api into an ACtiveX control so it will run on
the web. When I do so I want to use Microsoft Script Control to call
api routines from Javascript in the browser.
Let's say I write up a game in python with my own functions. Then I
embed it in a web page and I want to call my functions from javascript?
How can I do it. Script control allows you to bind api functions to
javascript, but not the functions in my python file.

Adobe Atmoshere a 3D application that ran in a web page, had a
javascript binding. You could write code in a javascript file, and it
would be interpreted during start-up. After that, I could send function
calls in the form of a string from the browser to atmosphere. How did
this work? Is the api aware of the python functions and variables
after it is loaded up?

Confused,
Dan


So what's your question about the C++ language. ActiveX, Javascript,
phython, web stuff are off topic.

Jul 19 '05 #2

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

Similar topics

0
1316
by: DPhelps | last post by:
I have a multithreaded Python shell server (base on the sample code 'pysvr.py') that uses a C-based extension class. The trouble I'm having is that I cannot figure out a way to create a Python object from the C code. I'll detail the methods I've looked at and the troubles I'm having: Method 1) Ideally, I could get PyRun_String to work, however I cannot figure out
2
1545
by: whimsica | last post by:
I'm investingating a c++ api, Panda3d.com, that has a python binding. I want to convert this api into an ACtiveX control so it will run on the web. When I do so I want to use Microsoft Script Control to call api routines from Javascript in the browser. Let's say I write up a game in python with my own functions. Then I embed it in a web page and I want to call my functions from javascript? How can I do it. Script control allows you to...
0
1716
by: Kunal | last post by:
Hi all, I have run into a problem that I can't quite figure out. Here is the situation: I have to capture a signature from a WebForm. (The ASP.NET application is running on a TabletPC) Currently only an ActiveX control is available for WebForms, so I embedded it using the "<object>" tag.
1
1758
by: Nawed | last post by:
We are experiencing a browser freeze when implementing a large number of javascript calls. It seems that there is a random 'hiccup' which loses some data. This causes a disparity between client- and server-side information. Has anyone encountered this issue when sending information from Flash to a database via javascript calls to a webservice?
11
4809
by: tnhoe | last post by:
Hi, I am looking for above. Any recommendation ? The GSM modem is a data card with phone chip in notebook which can send sms directly without going through other sms gateway URL. I only need to programming api/lib to send sms. Regards Hoe
1
1416
by: Rain | last post by:
What do u think is the best way 4 communication between a activeX and a .NET exe..? Thanks!
0
1139
by: Carl Douglas | last post by:
Hi Python fans, I am developing a DLL that is loaded by a host application on windows. I'm using python 2.5. My DLL uses an embedded python interpreter which can access the host application through an API which I have exposed using SWIG 1.3.31. Therefore I have both extended and embedded Python at once: the SWIG generated code is statically linked into my DLL, and one of the
1
1537
by: konstantin.smolin | last post by:
Hi all In my MFC application I need to call Python IDLE, pass some terms (or scripts or values - they are simple strings or memo fields) there so that user may modify/evaluate/interpret it and then return the modified terms back to the application. How can I do it the best way (MFC->IDLE)? As for IDLE->MFC, I'm afraid that copy-paste is the way out... Is it so?
0
981
by: Fredrik Lundh | last post by:
projects.gg.aaron@gmail.com wrote: do you control the other process? can you make it listen to a local socket or a named pipe? </F>
0
10267
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
10106
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
10046
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
9915
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
7463
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
6717
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
5358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4014
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.