Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, May 2, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: using external dll
chez
Posts: 44
 
using external dllYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Feb 15 9:52 AM

i'm using slx LAN 7.5.3


I don't want to use .net extensions and was wondering how to call a dll when click button on tab.
I've regasm the dll then on button click event added the code below but the object not recognised?
what have I forgotten to do? (the dll should show a .net form)
  Dim editKey
         ' set editKey = Application.CreateObject("DatelSLXCustDial.EditKey")
         set editKey = CreateObject("DatelSLXCustDial.EditKey")
        editKey.SetConnectionDetails dbserver, db, dbuser, dbpwd, dbschema
        editKey.DoEdit()


didn't want to use .net extensions as would need to rewrite the dll which ain't can't do at present.


thanks

[Reply][Quote]
chez
Posts: 44
 
Re: using external dllYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Feb 15 10:13 AM

the dll is com enabled by the way

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: using external dllYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Feb 15 10:34 AM

Do you get an error on CreateObject or on one of the lines that follow?


To ask the obvious, you're sure you've registered the dll as a COM and the "DatelSLXCustDial.EditKey" is the correct clsid?


Does it work outside of the SLX environment as COM on this same machine? Maybe try creating a simple app or vbscript file to test?

[Reply][Quote]
chez
Posts: 44
 
Re: using external dllYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Feb 15 10:53 AM

Hi


created testharness and ran dll from there using code below and it worked outside of slx so object it recognised


private void button1_Click(object sender, EventArgs e)
        {
            DatelSLXCustDial.EditKey EditKey = new DatelSLXCustDial.EditKey();
            EditKey.SetConnectionDetails(txtServer.Text, txtDatabase.Text, txtUser.Text, txtPassword.Text, txtSchema.Text);
            EditKey.SetAccountID(txtAccountID.Text);
            EditKey.DoEdit();
        }



only did regasm "c:\..\datelslxCustDial.dll" do i need to do anything else
if work in test harness it must be registered ok for that to find it -no?



 



 

[Reply][Quote]
chez
Posts: 44
 
Re: using external dllYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Feb 15 4:42 AM

still not working, given up and rewrote dll to work with .net extensions and that works


thanks

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 5/2/2024 11:37:21 PM