How to write new C++ XPCOM component? Topic is solved

Discussions about the development and maturation of the Unified XUL Platform (UXP).
Warning: may contain highly-technical topics.

Moderator: trava90

Post Reply
User avatar
djgpp
Moonbather
Moonbather
Posts: 64
Joined: 2021-01-26, 05:39

How to write new C++ XPCOM component?

Post by djgpp » 2021-04-18, 04:20

I want to use a piece of C++ code on JavaScript and I know the preferred way to do it is via XPCOM. I have read a bit on the internet but it's still not very clear to me.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 9926
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: How to write new C++ XPCOM component?

Post by New Tobin Paradigm » 2021-04-18, 07:52

I don't know why you think we have any more technical knowledge than can be obtained by yourself on your own.

We collectively have experience but not every individual has the same experience as another. I believe none of us have written a cpp xpcom component from scratch though but some have worked with them even heavily modified one. I, however, have written a javascript xpcom component from scratch before though.. Once.

But back to the point, we all have access to everything that can be known or attained whether our individual skill set lets us to take effective advantage of it at any particular time or if we have had to do it yet is another question.

Personally, I am pretty useless with cpp. It doesn't click for me and Mozilla cpp is a unique thing sometimes.

Also, being conceptually vague is only going to result in conceptual and theoretical answers.
I'M COMBINING THE FORCE FIELD WITH ENERGY POWER!
Image

User avatar
Kris_88
Fanatic
Fanatic
Posts: 127
Joined: 2021-01-26, 11:18

Re: How to write new C++ XPCOM component?

Post by Kris_88 » 2021-04-18, 20:10

djgpp wrote:
2021-04-18, 04:20
I know the preferred way to do it is via XPCOM.
You can use ctypes instead.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 9926
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: How to write new C++ XPCOM component?

Post by New Tobin Paradigm » 2021-04-19, 02:04

You can but it is sloppy and if the scale of what they want to accomplish is what I think it is.. It won't be sufficient.
I'M COMBINING THE FORCE FIELD WITH ENERGY POWER!
Image

Post Reply