for this i use:
plugin.cpp
plugin.h
npn_gate.cpp
npp_gate.cpp
np_entry.cpp
basic.rc
after succesfull compiling and building dll i receive "npbasic.dll"
after that i copy
to firefox plugin directory.copy /y "npbasic.dll" "C:\Documents and Settings\kohedlo3\Application Data\Mozilla\Plugins\npbasic.dll"
after i run "npbasic.dll test.html" by this firefox 0.52 esr:
Code: Select all
<html>
<body>
<center><h1>Basic Plugin Example for Mozilla Test Case</h1></center>
This test case is to demonstrate the Basic Plugin example. You should see the
plugin window with the black frame aroung it and the browser user agent string
which plugin draws inside the window.
<br><br>
<center>
<embed type="application/basic-plugin" width=600 height=400>
</center>
<center><h1>7777777777777</h1></center>
</html>
</body>
after activation no RESULTS.
I TRUE INSERT debug windows in c++ cole like this:
Code: Select all
NPError NS_PluginInitialize()
{
MessageBox(0,"NS_PluginInitialize","Ололо", MB_OK);
return NPERR_NO_ERROR;
}
also inside function "static LRESULT CALLBACK PluginWinProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)"
changes for output log not occours.
HOW TO DEBUG this c++ code? whats wrong?