Re: how to use visual c++ to create a project for mozilla

Doug Turner <[email protected]> Wed, 04 Sep 2002 11:43:27 -0700
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Angelo Biddau wrote:
> i'm a new programer
> how create a file c++ and use this file in mozilla or in javascript
> but i'm not a resolve this problem
> thank's for help
> 
> 
> [email protected]
> 


I started to write up a doc on how to do this.  Here is a start.  Let me 
know if it works for you and what were the pitfalls if any.  Clearly, it 
is pretty brief.


1.	Create a new Project of type “Win32 Dynamic-Link Library”
2.	Select “An empty DLL project.” In the wizard.
3.	Select ok to confirm your choices.
4.	Under project settings/Link, add the following libraries to your 
Object/library modules:
	a.	xpcomglue.lib
	b.	string_s.lib
	c.	string_obsolete_s.lib
5.	Under Category “Input”, add a path to where these libraries can be 
found.  For example, c:\mozilla\dist\bin\lib\
6.	Under the C/C++ panel, select Category Preprocessor and include a 
patch to where the Mozilla includes can be found.  For example, 
..\..\..\..\..\dist\include\xpcom,..\..\..\..\..\dist\include\nspr
7.	Under this same panel, Add the following defines:
	a.	XP_WIN
	b.	XP_WIN32
8.	Follow the xpcom/sample code to create a new module


--
Doug Turner
[email protected]