Your VC++ project needs to have a define for XP_WIN. The code in
nsCOM.h decides the calling convention based on that flag.

John.

Ryoichi Furukawa wrote:
> 
> Hi,
> 
> I create sample.dll on IDE of VC++6.0(SP3)
> on Windows2000(SP1)
> It's sample xpcom dll included in mozilla/xpcom/sample/.
> (I imported sample codes *.cpp *.h in VC++ IDE project.)
> 
> If I create sample.dll on the command line 'nmake',
> and put it under the bin/component directory.
> When mozilla loads xpconnect-sample.html,
> sample.dll is running. (Good!!)
> 
> But If I create sample.dll on the IDE,
> mozilla crashes everytime.
> 
> A call stack is 'only' this.
> 
> 0012dea0()
> 
> Though source files are no different,
> why sample.dll crashes Mozilla?
> 
> Could you teach me how to use VC++ IDE
> instead of command line build ?
> (ex. need more special include file,
> or set environment variable, etc... )
> 
> Thanks.
> 
> --
> Ryoichi Furukawa
> <[EMAIL PROTECTED]>

Reply via email to