ollie Posted June 21, 2010 Share Posted June 21, 2010 Hi folks, As the title suggests i'm looking for the vlax-create-object name for Winsock. Any help will be appreciated Cheers, Ollie Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 21, 2010 Share Posted June 21, 2010 Hi Ollie, I thought it was: MSWinsock.Winsock But I could be wrong... Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 21, 2010 Share Posted June 21, 2010 This should get a list of all ProgID's (defun GetProgIDs ( / *error* regPath file id ofile lst ) (vl-load-com) ;; Lee Mac ~ 17.02.10 (defun *error* ( msg ) (and ofile (close ofile)) (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*") (princ (strcat "\n** Error: " msg " **"))) (princ) ) (if (setq file (getfiled "Output" "" "txt" 1)) (progn (foreach desc (vl-registry-descendents (setq regPath "HKEY_CLASSES_ROOT\\CLSID")) (if (setq id (vl-registry-read (strcat regPath "\\" desc "\\ProgId"))) (setq lst (cons (vl-princ-to-string id) lst)) ) ) (setq ofile (open file "w")) (mapcar '(lambda ( x ) (write-line x ofile)) (acad_strlsort lst)) (setq ofile (close ofile)) ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
ollie Posted June 22, 2010 Author Share Posted June 22, 2010 Lee: You are epic; I have been searching for the above function since birth Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 22, 2010 Share Posted June 22, 2010 Thanks Ollie, I try my best Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.