Page 1 of 3 123 LastLast
Results 1 to 15 of 43

Thread: c++/cli for cross platform

  1. #1
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972

    c++/cli for cross platform

    A couple friends of mine have finally talked me into looking at using .nets c++/cli 's managed codes ability(?) for cross platform development. I had always been a nay sayer on c++/cli as much as I am against c# compared to pure Java. So I have been doing some reading this past week and am still unconvinced it's a good direction to go for cross platform development especially if I'm using OGL, possibly wxWidgets, and a ton of gpu optimizations.
    Just wondering if anybody here had any comments pro or con on this route for CG app development (yes it's for my Oto Taca app)
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  2. #2
    Fórum áss clówn Hopper's Avatar
    Join Date
    Jan 2005
    Location
    Austin
    Posts
    3,393
    In our shop, we don't consider C++ to be cross platform whatsoever. Even with GNU there's a ton of compiler directive manipulation and make file nightmares. We only use C++ for console utilities that have to be small and platform specific so we can use dynamic libs. Everything else is Java, even on our AIX clusters. JBoss clustering rocks ... but I guess that doesn't help you much now does it ...

    We don't do graphics either, but just thought I'd give you my point of view.

    A few of our guys have tried using the .NET cross platform stuff and it blows. It's not cross platform at all. Try writing a simple app and throw it over to an HPUX or AIX box and see what happens.
    Playing guitar is an endless process of running out of fingers.

  3. #3
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    I wouldn't bother with it, mainly because I don't see the point.

    I found C++/wxWidgets to be perfectly cross platform for what I do (which is graphics oriented) - and low level enough as well (I'm old-school).

    @Hopper: Cmake is great for cross platform makefiles.

    Cheers,
    Mike

  4. #4
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    I agree with you Mike. I see absolutely no real advantage to going that route but lots of recoding to get it to work with clr/cli. Nice concept but the only thing it saves me really is the lack of need for separate compilers for each platform and with todays emulators there is even ways to improve that issue.

    Hopper, I have done more then my share of Java and agree Java is a great language for particular needs. Oto-Taka is deff not one of those. I need the speed/power that 'I' can leverage with c++. Plus the only other platform's I'm really after is those for Mac users and Linux. Thus making life even easier yet, for me that is.
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  5. #5
    Quote Originally Posted by Lightwolf View Post
    I found C++/wxWidgets to be perfectly cross platform for what I do (which is graphics oriented) - and low level enough as well (I'm old-school).
    Aloha Mike,

    You have me intrigued about wxWidget.
    So I Googled wxWidget and found: this

    What's needed to setup and play with wxWidget?
    wxAll?
    wxMSW?
    all those files listed?
    Is there a user forum?
    Could you help getting me started?

    Somewhere, over the rainbow....

  6. #6
    oooh....

    I found /docs/msw/install.txt

    that's a start.

    Somewhere, over the rainbow....

  7. #7
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    Looks like you found what your after, correct Greg?
    I have links to a few good tutorials and a online book if you want them!
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  8. #8
    Quote Originally Posted by aurora View Post
    Looks like you found what your after, correct Greg?
    I have links to a few good tutorials and a online book if you want them!
    That information would be fabulous.
    I've spent the past week wasting my time googling for information about making a custom control in VSExpress C++

    I'm hoping wxWidget will give me the flexibility to create the GUI I want and make it cross-platform compatible.

    Somewhere, over the rainbow....

  9. #9
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    Heres the book, I'll have to hunt for the other links they are not where I though I stored them.
    http://www.scribd.com/doc/2470492/Cr...with-wxWidgets
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  10. #10
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    Here they are, how about looking in the folder called wxWidgetRefs?
    http://www.codeproject.com/KB/library/wxwidgets.aspx
    [URL="http://wiki.wxwidgets.org/Guides_%26_Tutorials"]http://wiki.wxwidgets.org/Guides_%26_Tutorials[
    /URL]
    http://wiki.wxwidgets.org/Microsoft_Visual_CPP_Guide
    http://www.wxwidgets.org/docs/tutorials.htm
    http://www.roebling.de/download.html
    http://www.zetcode.com/

    I have a few others but they are much more esoteric then these are and one of those is the link to wxDesigner.

    Something else you might want to look at is FLTK. I've used it for almost all of my standalones and for prototyping, mainly becuase I have a ton of personal classes and wizards that helps me work fast with it. But I do think wxWidgets is more sound over all by far. I just have not gotten as comforatble with it as I am with fltk yet.
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  11. #11
    Quote Originally Posted by aurora View Post
    Heres the book, I'll have to hunt for the other links they are not where I though I stored them.
    http://www.scribd.com/doc/2470492/Cr...with-wxWidgets
    Thanks, I'm reading the book now.
    Hey it was originally developed in Scotland!

    ahhhh... Scotland.

    Somewhere, over the rainbow....

  12. #12
    I got wxWidgets compiled and the toolbar sample working.
    Looks great!

    This link was a great help

    Question:

    Can an external program (not a dll) communicate to a LW plugin (perhaps via the Communication Ring or another method) ?

    Somewhere, over the rainbow....

  13. #13
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    Funny you should ask. I have been trying hard to make a mock up do just that. Oto-Taca will be a complete standalone product but basically is designed from my LW and scientific viz plugin/apps. What I would 'like' to have happen is to have a live connection to LW from a non LW-plugin app. So I have had miserable success. The route I have been working on is having the mock-up linked to a mock-up plugin which is also a LW plugin. What I need is a completely communicable abstract layer between the mock-up and LW and one would think sure no problem but alas its a problem. In the end Oto-Taca's ability to work with LW will depend on hopeful changes in LW10 or just simple write files out that can be opened in LW.
    Greg we should ask this question in its own thread so maybe the Dev's can chime in!
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  14. #14
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by GregMalick View Post
    Can an external program (not a dll) communicate to a LW plugin (perhaps via the Communication Ring or another method) ?
    Cross platform?

    Since the HUB API isn't published you'd need to roll your own connection.
    One way would be to use TCP/IP (where have I heard that before? ) - Otherwise, this may be a start: http://en.wikipedia.org/wiki/Inter-p..._communication

    Cheers,
    Mike

  15. #15
    Quote Originally Posted by Lightwolf View Post
    Cross platform?

    Since the HUB API isn't published you'd need to roll your own connection.
    One way would be to use TCP/IP (where have I heard that before? ) - Otherwise, this may be a start: http://en.wikipedia.org/wiki/Inter-p..._communication

    Cheers,
    Mike
    Aloha Mike,

    Thanks for the link. After reading that page, I don't think there's any otherwise about it. TCP/IP looks like the best way to go. All major platforms support it and it would provide support across a LAN/WAN and the internet. Your remark (colored blue) makes me think this must have been discussed to death before. I'll do some searches here and on the lw-plugins forum to see if this has already been dismissed as infeasible.

    I've been doing a lot of pacing (thinking) this morning.

    Somewhere, over the rainbow....

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •