Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 43

Thread: c++/cli for cross platform

  1. #16
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    Well right now it s for me since what I want to hook into is HV's more so then particle services and well now you know why my research is so limited in scope.
    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. #17
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by GregMalick View Post
    Your remark (colored blue) makes me think this must have been discussed to death before.
    I should've been more clear... that was a side blow at the Hub

    I think for small amounts of data it is fine, with larger chunks you could also look into a single shared library that shares data across processes.

    Cheers,
    Mike

  3. #18
    Quote Originally Posted by Lightwolf View Post
    I should've been more clear... that was a side blow at the Hub

    I think for small amounts of data it is fine, with larger chunks you could also look into a single shared library that shares data across processes.

    Cheers,
    Mike
    I never use the hub - so that never occurred to me.
    Would you have a link to something about the shared library suggestion?

    Somewhere, over the rainbow....

  4. #19
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by GregMalick View Post
    Would you have a link to something about the shared library suggestion?
    Let me take that back, a DLL would only use memory mapped files/ file mapping as well (all the DLL does is control access to it, but you don't need to use a DLL for that).

    I've collected a few links though:

    If you use boost/C++, this might help:
    http://www.boost.org/doc/libs/1_35_0...erprocess.html

    File mapping (win32, OSX and Linux have a similar mechanisms):
    http://msdn.microsoft.com/en-us/libr...56(VS.85).aspx

    Cheers,
    Mike

  5. #20
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    boost rocks!!!

    OK, so I'm kinda confused are you suggesting TCP/IP is better or ICP? I kinda like the thread communication concept really but since this is kinda new to me what the heck do I know
    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)

  6. #21
    Well the way I'm reading this is that TCP/IP is simply one method you can use to implement an IPC. Since you mentioned massive amounts of shared data, Boost/C++ looks well suited to your needs.

    Communicating across multiple machines on a LAN intrigues me. And since my data is less than 100 bytes, TCP/IP could work well - as long as it could do many messages very quickly.

    I wish there was a comparison of pluses & minuses (especially Speed).

    XML-RPC also looks very interesting.

    Somewhere, over the rainbow....

  7. #22
    The following isn't multi-platform - but still a good read.
    CodeProject

    Somewhere, over the rainbow....

  8. #23
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by GregMalick View Post
    The following isn't multi-platform - but still a good read.
    CodeProject
    And you also have both mechanisms (but with a slightly different API) on Un*x based OSes.

    From what I've seen, Boost abstracts those in a cross platform manner.

    Cheers,
    Mike

  9. #24
    Mike/Aurora,

    The wxWidgets Sockets samples work great.
    But I just realized that the sxWidgets are in C++.
    So is this unusable in a LW Master plugin?

    Another issue is that I need this Master plugin to accept LW-commands from an external program. That means a server listener needs to be established in this plugin. Is that going to kill LW responsiveness?

    I'll also need to embed a client into the plugin in order to send certain LW events back to the external program (that doesn't sound bad, though).

    Any ideas would be greatly appreciated.

    Somewhere, over the rainbow....

  10. #25
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by GregMalick View Post
    Mike/Aurora,

    The wxWidgets Sockets samples work great.
    But I just realized that the sxWidgets are in C++.
    So is this unusable in a LW Master plugin?
    That shouldn't be a (big) problem. All of my plugins are C++.
    Quote Originally Posted by GregMalick View Post
    Another issue is that I need this Master plugin to accept LW-commands from an external program. That means a server listener needs to be established in this plugin. Is that going to kill LW responsiveness?
    Wait for 9.5.
    Quote Originally Posted by GregMalick View Post
    I'll also need to embed a client into the plugin in order to send certain LW events back to the external program (that doesn't sound bad, though).
    Yeha, that would just be a normal master handler.

    Cheers,
    Mike

  11. #26
    Quote Originally Posted by Lightwolf View Post
    That shouldn't be a (big) problem. All of my plugins are C++.
    If I could find a simple LW C++ skeleton, all my plugins would be in C++ too. I'm just not clever enough to figure out how to get a LW C++ plugin going.

    Quote Originally Posted by Lightwolf View Post
    Wait for 9.5.
    I'm in the beta and nothing in the SDK struck me as pertinent to this discussion.

    Quote Originally Posted by Lightwolf View Post
    Yeha, that would just be a normal master handler.
    Huh? Are you saying that master handlers already have the capability of two way communication with a program external to LW? That's news to me.

    Somewhere, over the rainbow....

  12. #27
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by GregMalick View Post
    If I could find a simple LW C++ skeleton, all my plugins would be in C++ too. I'm just not clever enough to figure out how to get a LW C++ plugin going.
    If you want to, hook up at http://forums.db-w.com and I'll grant you access to my/our C++ wrapper for the SDK (still not in shape to be released publicly).
    Quote Originally Posted by GregMalick View Post
    I'm in the beta and nothing in the SDK struck me as pertinent to this discussion.
    Hm, if you are then we should move this discussion (or I'll PM you).
    Quote Originally Posted by GregMalick View Post
    Huh? Are you saying that master handlers already have the capability of two way communication with a program external to LW? That's news to me.
    No, but they can catch events. Sending them out of LW if of course still your responsibility.

    The ComRing also allows for some basic even handling (i.e. have your plugins send out events caught by other plugins, which in turn can send them out).

    Cheers,
    Mike

  13. #28
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    I also use c++ exclusively for my plugins. Once you know the tricks its no problem and you get all the power.

    I think Mike has the right idea of moving this to the OB section as there are a few potentials that we should discuss in that area!
    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. #29
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    OK I have started a new thread entitled App->Plugin->LW comm you should know where to look
    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)

  15. #30
    Quote Originally Posted by Lightwolf View Post
    If you want to, hook up at http://forums.db-w.com and I'll grant you access to my/our C++ wrapper for the SDK (still not in shape to be released publicly).
    Cheers,
    Mike
    If there's a single LW C++ plugin example - that would be awesome.

    Somewhere, over the rainbow....

Page 2 of 3 FirstFirst 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
  •