f.martel
19th December 2011, 11:11
Ia Orana !

I generate a dll with ttstpcreatdll from the session tisfc1101m000.
I use this dll in my program.

I have a problem with my code bellow :


dll1101ro.put.Production_Order(i.pdno)
dll1101ro.put.Operation(i.opno)

dll1101ro.find()
pdno.trouv2 = dll1101ro.get.Production_Order()
opno.trouv = dll1101ro.get.Operation()

if pdno.trouv2 = i.pdno and opno.trouv = i.opno then

dll1101ro.put.Start_Date_Remainder(i.rsdt)
dll1101ro.put.Start_Day_Remainder(i.rsdp)
dll1101ro.update(true,o.err)
dll1101ro.end()

if strip$(mess.er) <> "" then
o.err = "?"
o.err = dll0101ro.get.last.message.code()
dll1101ro.end()
endif

endif

dll1101ro.end()


Explanation :

When i test the input data i.rsdt (02/04/2012) and i.rsdp, i have the good value.
After my update (dll1101ro.update), i get tisfcs010.rstd whith the function stpapi.get.field( "tisfc1101m000", "tisfc010.rsdt", value ) and i have the good date (02/04/2012) :)

But when i go on the session tisfc1500m000 for control the modification, no change :eek:

When i control the process after my program, the process tisfc1101m000 is still running !!!

Have you a Idea ?

Thanks

François ... (Sorry for my english :rolleyes: )

PS: i read this two post #1 (http://www.baanboard.com/baanboard/showthread.php?t=16646&highlight=tisfc1101m000) an #2 (http://www.baanboard.com/baanboard/showthread.php?t=27374&highlight=tisfc1101m000) but i don't find solution for my problem.

f.martel
19th December 2011, 15:07
Arg !!!!! I'm stupid ! I'm stupid ! I'm stupid ! I'm stupid !

I find the solution !

I have two dll generate with ttstpcreatdll :

tisfcdll1101ro
tdinvdll1101ro


And they have the same function in the two dll (Ex: dll1101ro.end())

Arg !!!!! I'm stupid ! I'm stupid ! I'm stupid ! I'm stupid !

Why i'm stupid ? Because i don't read warning compilation !!!!

Arg !!!!! I'm stupid ! I'm stupid ! I'm stupid ! I'm stupid !

So, i rename function and no it's work fine !

Arg !!!!! I'm stupid ! I'm stupid ! I'm stupid ! I'm stupid !

mark_h
19th December 2011, 21:58
That is one of the reasons I no longer use the DLL's. :) Not only were some of the function names the same between DLL's, but in one DLL there were multiple function names the same. I can't remember which one it was that I ran into, but it took be several hours one day just to get it to compile.