Com+

This is a discussion on Com+ within the Game Programming forums, part of the General Programming Boards category; Hey everybody! I have a question about programming large games. If anybody here has worked on a professional game, when ...

  1. #1
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556

    Com+

    Hey everybody! I have a question about programming large games. If anybody here has worked on a professional game, when you are programming these, do you use COM+?
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  2. #2
    Registered User Coder's Avatar
    Join Date
    Aug 2001
    Location
    Cairo, Egypt
    Posts
    128
    As far as I know, Com is used when backward compatibility is needed. This isn't needed for games, all the games I know are either written in a mix of ( C || C++) &&/|| asm
    Muhammad Haggag

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    DirectX is COM but not sure if it is COM+.

  4. #4
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    But to make the files into dll's, don't you need COM?
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    You need a compiler that can do DLLs and supports COM.

    On a side not, that DC Talk is from way back when. They have changed their style quite a bit since.

  6. #6
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    I'm aware of this. I quoted it because of the message, not the modernism.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  7. #7
    Registered User Coder's Avatar
    Join Date
    Aug 2001
    Location
    Cairo, Egypt
    Posts
    128
    Posted by gnu-ehacksBut to make the files into dll's, don't you need COM?
    Posted by BubbaYou need a compiler that can do DLLs and supports COM.
    To write DLL's you don't need any COM knowledge, you just write C functions (no classes, unless you're making extension dll's that contain classes derived from MFC's base classes). In MSVC you just put a __declspec(dllexport) preceding the function's ret in the function proto, and then you build your dll project.

    When using DLL's you can just load the dll using LoadLibrary and then get pointers to your functions in the DLL.

    No COM is done by you in both cases (for an ordinary DLL).

    I belive this COM/DLL question had better go to the Windows/CPP board. nvoigt - as well as other gurus - would have a lot to say about this, definitely (they doen't come here)
    Muhammad Haggag

  8. #8
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    Hey, Coder, think you misunderstood my post or I wrote it funny. I know you don't have to have COM to do DLLs. But for DirectX you have to have a compiler that will support COM objects. That's what I was getting at. Perhaps my post was unclear.

    My Borland can do DLLs, but not COM.

  9. #9
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Just a simple question. I thought COM/COM+ were just Microsoft architectures, like CORBA is the non-Microsoft version and therefore it is not language dependend, am I correct?

  10. #10
    Registered User Coder's Avatar
    Join Date
    Aug 2001
    Location
    Cairo, Egypt
    Posts
    128
    Posted by BubbaHey, Coder, think you misunderstood my post or I wrote it funny.
    I think I'm the one who's mind gone off a little. I didn't notice that you meant DX, sorry

    Posted by Coder(no classes, unless you're making extension dll's that contain classes derived from MFC's base classes)
    Obviously wrong! Right after posting this reply, I stumbled into this :
    http://www.gamedev.net/reference/art...article928.asp
    http://www.gamedev.net/reference/pro...s/rendererdll/

    The first discusses how to use classes in DLL's (using virtual struct methods), the second uses this knowledge to illustrate creating a rendering system that relies on DLL's for switching between DXG & GL

    Posted by ShiroI thought COM/COM+ were just Microsoft architectures, like CORBA is the non- Microsoft version and therefore it is not language dependend, am I correct?
    I have no idea about CORBA, but COM/COM+ are indeed microsoft (windows) specific. Better take this to the Windows board, believe me they'll know better.
    Muhammad Haggag

  11. #11
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >but COM/COM+ are indeed microsoft (windows) specific.

    COM is just a binary standard, it isn't limited to Windows. It's just that it only seems to be used in Windows.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21