How can i compile the the source code

36 views
Skip to first unread message

chinimei

unread,
Nov 6, 2008, 3:35:11 AM11/6/08
to jNext discussion group
I am a new comer in jNext and i don't have a lot of experience. I
have download jnext-src-1[1].0.8.2 and i want to add some jNext
plugin. But i don't know which project i need to compile.
I have tried the jnext-2005 in buildall. But it ask me to specify
the Executable Debug Session. I don't know what it should be. so i am
looking forward for your help. Thanks.
My environment is IE and VS2008.

p.s: if i want to add my own plugin, does it work that i setup a new
win32 project under jnext-extension and write my code according to the
style like filereader?

chinimei

unread,
Nov 6, 2008, 4:15:31 AM11/6/08
to jNext discussion group
I see it produce a JNEXT.lib file.
Is this mean that i can use the JNEXT now in the browser or to be more
specific, what can i do with this JNEXT.lib if i want to run those
samples.

Amnon David

unread,
Nov 6, 2008, 3:32:29 PM11/6/08
to jn...@googlegroups.com
You don't need the JNEXT.lib file. What you need is the file named
jnext.ocx. I forgot to change the output folder to which this file is
generated and the Debug configuration currently saves it to c:\Program
Files\Optimistec\JNEXT\ActiveX\jnext.ocx. You can change this location
by opening the properties of the JNEXT-ActiveX project and replacing the
value in Linker->General->Output File field.

under that folder (where JNEXT.ocx is located and registered) you should
create the path plugins\jnext and in the jnext folder you can add the
JNEXT extension DLLs, such as the filereader.

If you install the windows JNEXT setup, you'll see where each files goes.
Hope this helps,

Amnon

chinimei

unread,
Nov 6, 2008, 7:24:58 PM11/6/08
to jn...@googlegroups.com
Thank you very much for your help. I will just have a try. 
 
chinimei

[广告] 金秋最关注楼盘-房不胜房

chinimei

unread,
Nov 9, 2008, 10:17:09 PM11/9/08
to jn...@googlegroups.com
 Hello,Amnon
   I have tried your solution. But i still have some problems. I move dll file into the C:\Program files\Optimistec\JNEXT\ActiveX\plugins\jnext,and move the samples into C:\Program Files\Optimistec\JNEXT. but it still doesn't work. When i try the sample FileReader. It says "Error on Page". I have my C:\Program files\Optimistec\ copied in the attached file and hope you can help me. Thanks
 
   chinimei

[广告] 金秋最关注楼盘-房不胜房

chinimei

unread,
Nov 9, 2008, 10:44:32 PM11/9/08
to jNext discussion group
It seems i couldn't upload my attached file.
I just copied the generated filereader.dll also auth.txt into folder c:
\Program
Files\Optimistec\JNEXT\ActiveX\plugins\jnext and the javascript test
folder into C:\Program Files\Optimistec\JNEXT and run the JS-
Filereader.html in C:\Program Files\Optimistec\JNEXT\javascript
\samples
Then i have the "Error on Page". Hope can state my problem.

Amnon David

unread,
Nov 10, 2008, 6:11:47 PM11/10/08
to jn...@googlegroups.com
when you run the JNEXT setup program, do the examples work ?

chinimei

unread,
Nov 10, 2008, 9:22:23 PM11/10/08
to jn...@googlegroups.com
Yes, It works. And now i can replace the setup dll and ocx with compiled dll and ocx. it works. But when i build the folder like the setup using all my compiled file. It doesn't work. 

[广告] 金秋最关注楼盘-房不胜房

chinimei

unread,
Nov 12, 2008, 9:10:28 PM11/12/08
to jn...@googlegroups.com
Hello Amnon,
 
I find out when the jnext.js run to objJSExt.sendCmd("osname");,it doesn't reply and occurs an error.   
self.getosname = function()
    {
   //     alert("osname");
        var retVal = objJSExt.sendCmd( "osname" );
        alert("retVal: " + retVal);
        return retVal;
    }
I think this is because it doesn't link to the jnext.ocx successfully. And i don't have such problem when i add my Extension dll and wrapper js to the setup folder after i setup the JNEXT.
Only when i use ocx and dll compiled by me, the problem occurs.
I wonder Do i need to register something before i use the jnext.ocx? Now i just put the compiled dll and ocx file like the structure of the setup version. How can they find each other and work.
I am curious to know the answer. Thank you very much.
 
  chinimei

[广告] 金秋最关注楼盘-房不胜房

Amnon David

unread,
Nov 13, 2008, 12:07:24 AM11/13/08
to jn...@googlegroups.com
I'm not sure why this happens - jnext.ocx is the ActiveX control that
communicates with the extension dlls when Internet Explorer is used.

IE uses the the unique id (GUID) of the ActiveX from the Web page and
then Windows uses this id with the help of the registry to lookup the
path from which to load the ActiveX control (standard ActiveX behavior).

When jnext.ocx is loaded by IE, it then uses a relative path to load all
the jnext extension dll files, so if your directory structure is the
same there shouldn't be a problem.

In order to change the path of jnext.ocx it should be registered with
Windows, but this should be done automatically by the build process.
Another method of registering the ocx is using Start->Run... and then
typing: regsvr32 <path of jnext.ocx>

Another possibility is that the relative path to the JNEXT extension dll
files that is used in the source code you have is not the same as the
one used in the Windows setup. In the file
jnext-core\common\nativelogic.cpp locate the following comment:

// Linux NPAPI or Windows ActiveX

and put a breakpoint in the line below it to see what path is actually
being used when IE loads the jnext.ocx control.

hope this helps
Amnon
> ------------------------------------------------------------------------
> [广告] 金秋最关注楼盘-房不胜房
> <http://popme.163.com/link/003985_1010_7027.html>
> >

chinimei

unread,
Nov 13, 2008, 8:57:47 PM11/13/08
to jNext discussion group
Thank You for your kindly help. I have solved my problem at last.

The main problem is i am not aware of the command regsvr32. I don't
know i need to register first, though the visual studio post-compile
has
done it for me. Also i find that in one of my computer which use IE6.0
, only the sample put in the setup folder can be run. And on another
computer
, IE7.0, it doesn't matter where i put the sample file.

Anyway, i know the problem now and feel cool. You see, I do need to
learn
a lot about ActiveX and i am going to write some extension. Thanks.
> > <http://popme.163.com/link/003985_1010_7027.html>- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages