Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: load tbcload.dll file output

Phenom
Phenom

What I did:

 

package ifneeded tbcload 1.4 [list load [file join [file nativename [file dirname [info script]]]/lib/tbcload14.dll]]

NX12.02
Windows 10 Pro
ITC Inc.
Highlighted

Re: load tbcload.dll file output

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi, @Study 

 

I tried it, Error

 

 

img.PNG

Re: load tbcload.dll file output

Phenom
Phenom

The script directory is where the post is running. I had a sub directory under it called lib. Tailor the path to suit your situation.

NX12.02
Windows 10 Pro
ITC Inc.

Re: load tbcload.dll file output

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

66.PNG

Is that right?

 

Re: load tbcload.dll file output

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Can you a screenshot, tbcload14.dll file dir. and you tested post dir

I tested all day

Re: load tbcload.dll file output

Phenom
Phenom

Test this:

 

MOM_output_literal "[list load [file join [file nativename [file dirname [info script]]]/lib/tbcload14.dll]]"

 

Then make sure the dll is in that folder location.

NX12.02
Windows 10 Pro
ITC Inc.

Re: load tbcload.dll file output

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

 

in PB:

MOM_output_literal "[list load [file join [file nativename [file dirname [info script]]]/lib/tbcload14.dll]]"

66.PNG

 

in tcl file:

MOM_output_literal "[list load [file join [file nativename [file dirname [info script]]]/lib/tbcload14.dll]]"

if {[catch {package require tbcload 1.4} err] == 1} {
    error "The TclPro ByteCode Loader is not available or does not support the correct version"
}
tbcload::bceval {
TclPro ByteCode 1 0 1.3 8.3
336 0 4377 536 0 0 2252 0 4 336 336 -1 -1
4377
。。。。。。。

 777.PNG

 99.PNG

 

 

Re: load tbcload.dll file output

Phenom
Phenom

Wherever your post is - this path would be in a folder below called "lib" for the dll. You have the dll in the same directory - so either take lib folder out of the path or create another folder lib and put the dll there.

 

so:

 

...\postprocessor\

all the post files

...\postprocessor\lib\

the dll

NX12.02
Windows 10 Pro
ITC Inc.

Re: load tbcload.dll file output

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

See the test video with a attachment !

I tested for a long time, unsuccessful

 

Tested rev. : NX5.0 NX6.0 NX8.0 NX8.5 NX9.0 NX10.0

Re: load tbcload.dll file output

Phenom
Phenom

I watched the video. It looks like you are trying to encrypt a file then put the call to the dll in that same file (unencrypted.) I have not done that and do not know if it is possible. When I encrypt - I use procomp and I make a tbc file. Then in an unencrypted tcl script I include the dll - then source the encrypted file.

NX12.02
Windows 10 Pro
ITC Inc.

Learn online





Solution Information