Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Pages closes after DLL actions
PostPosted: May 30th, 2007, 3:54 pm 
Offline

Joined: April 1st, 2005, 6:59 pm
Posts: 98
Location: Maastricht, The Netherlands
Opus: V7
OS: Mac OS X 10.7.2 | Windows 8 Dev
System: i5 2.7 | 8G Ram | 1 T HD
Hello,

After running this DLL and push the button OK, the page closes???



Code:
function Mess(){

var UserDLL = LoadDLL( SYSTEM_WINSYS_DIR + "User32.dll");

if (UserDLL)

{

var UserAnswer = UserDLL.CallFn( "MessageBoxA", true, "slong", "hwnd", 0, "string", "Paneel verwijderen uit order?", "string", "Confirm Exit", "ulong", 36 );

if (UserAnswer==6)

{
deleteorderregel()
SearchOrderklant()
SearchDB3()
for (loop = 0; loop < regelnummer; loop++)
{
   txtclone[loop].DestroyClonedObject();
   txtclonerecept[loop].DestroyClonedObject();
    txtpaneel[loop].DestroyClonedObject();
}
}
}
}



Hope someone can help,

Regards,

Ronnie


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 30th, 2007, 4:58 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Comment out the DLL call and see if it still vanishes - I suspect it's more likely your DestroyClonedObject() functions are being called on invalid object s and causing an error. Or one of the other functions has an Exit() in it.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 31st, 2007, 1:26 pm 
Offline

Joined: April 1st, 2005, 6:59 pm
Posts: 98
Location: Maastricht, The Netherlands
Opus: V7
OS: Mac OS X 10.7.2 | Windows 8 Dev
System: i5 2.7 | 8G Ram | 1 T HD
Hi,

Thanks....solved.

Regards,

Ronnie


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 67 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group