A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Call DLL code from VBScript code-behind



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 23rd 08, 04:40 PM posted to microsoft.public.outlook.program_forms
Pavel Rosoi
external usenet poster
 
Posts: 21
Default Call DLL code from VBScript code-behind

Hi,

Does is any way to call DLL code from VBScript code-behind? Thank you.

  #2  
Old June 23rd 08, 05:12 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Call DLL code from VBScript code-behind

You'd use CreateObject() to instantiate an object exposed by the DLL, then call that object's publish methods.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Pavel Rosoi" wrote in message ...
Hi,

Does is any way to call DLL code from VBScript code-behind? Thank you.

  #3  
Old June 23rd 08, 05:58 PM posted to microsoft.public.outlook.program_forms
Pavel Rosoi
external usenet poster
 
Posts: 21
Default Call DLL code from VBScript code-behind

Thank you for your answer. Does this work for not COM dll, as Win32 API
native code?

"Sue Mosher [MVP-Outlook]" wrote:

You'd use CreateObject() to instantiate an object exposed by the DLL, then call that object's publish methods.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Pavel Rosoi" wrote in message ...
Hi,

Does is any way to call DLL code from VBScript code-behind? Thank you.


  #4  
Old June 23rd 08, 06:19 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Call DLL code from VBScript code-behind

If I understand your question correctly, no, you cannot call Win32 API methods from VBScript, because VBScript does not support declaring a function from a .dll.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Pavel Rosoi" wrote in message ...
Thank you for your answer. Does this work for not COM dll, as Win32 API
native code?

"Sue Mosher [MVP-Outlook]" wrote:

You'd use CreateObject() to instantiate an object exposed by the DLL, then call that object's publish methods.

"Pavel Rosoi" wrote in message ...
Hi,

Does is any way to call DLL code from VBScript code-behind? Thank you.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remotely call .NET code from Outlook via VBScript Pavel Rosoi Outlook - Using Forms 11 May 30th 08 02:58 PM
how can i call a number without the country code APYDS Outlook - Using Contacts 0 March 28th 07 02:01 AM
Change public VBA variable from form VBScript code Cel Outlook and VBA 1 December 20th 06 01:15 PM
Change public VBA variable from form VBScript code Cel Outlook - Using Forms 1 December 20th 06 01:14 PM
VBScript code that uses the Outlook object model to fetch calendar Safal Outlook - Calandaring 1 November 17th 06 03:12 PM


All times are GMT +1. The time now is 05:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2025 Outlook Banter.
The comments are property of their posters.