The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
c++ for web
Discuss c++ for web in the C Programming forum on Dev Shed. c++ for web C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 15th, 2003, 06:56 PM
|
|
Junior Member
|
|
Join Date: Apr 2003
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
c++ for web
hey, this isn't really a c++ question, but i was wondering if there is a way to put an executable inside a web page, as in it'll run in a window in the browser. is this possible, or would i have to go to java to do that?
|

May 15th, 2003, 07:20 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
Putting it in a Java applet would certainly be a tried-and-true way.
Another way would be to write an Active-X object, which you can do with Visual C++. However, as I understand it, there are a couple problems using Active-X:
1. I think that only a Windows machine could use it. I could be wrong about this, so anyone who knows better please correct me.
2. As I understand it, an Active-X object can do anything, so I view them as gaping security holes. I refuse to allow an Active-X object to run on my browser and I am sure that many other people feel the same way.
The new .NET framework may offer some other options. I've steered clear of that hype so far.
|

May 15th, 2003, 07:24 PM
|
|
Junior Member
|
|
Join Date: Apr 2003
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
thanks, im not really sure what active-x is, so i guess i'll just have to learn java. i was planning on doing that anyway, so this just gives me another reason! thanks again for the feedback, i was just hoping there was some simple way, cuz i wrote a tic tac toe prog and wanted to put it up on my site if possible...oh well!
|

May 15th, 2003, 07:42 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
Active-X is based on COM and OLE, which are two Microsoft ideas. Basically, Component Object Model involves creating a software object that another program can load in at run-time, almost like a DLL, and use. If you have done Visual Basic, those VBX objects that you could get from third-party vendors and insert into your program as a new control were fore-runners of Active-X.
Transitioning from VC++ to COM can be a fairly steep learning curve, though I've read that Active-X can be picked up part-way along that slope.
If you are already proficient with Visual C++ and MFC programming, then research further into Active-X before you give up on it completely.
If you still decide to go with Java, it does have some advantages:
1. Its syntax is very much like C/C++, so the learning curve won't be as steep.
2. It should be able to run on practically any browser in the world, no matter what OS. Similarly, if you distribute a Java class (a compiled program), then it should be able to run on any machine regardless of OS, just so long as it has a Java interpreter. That's about as close to universally-executable code as you can get.
3. It's free.
The only part that's really different is in creating graphical interfaces. However, it seems to be related to Tk.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|