Hide Table of Contents
PostMessageToApplication Method (ISldWorks)

Posts a message to the application that invoked this method.

.NET Syntax

Visual Basic (Declaration) 
Sub PostMessageToApplication( _
   ByVal Cookie As Integer, _
   ByVal UserData As Integer _
) 
Visual Basic (Usage) 
Dim instance As ISldWorks
Dim Cookie As Integer
Dim UserData As Integer
 
instance.PostMessageToApplication(Cookie, UserData)
C# 
void PostMessageToApplication( 
   int Cookie,
   int UserData
)
C++/CLI 
void PostMessageToApplication( 
&   int Cookie,
&   int UserData
) 

Parameters

Cookie
Cookie specified in ISwAddin::ConnectToSW
UserData
Additional message-specific information defined by the application

Example

You must be a SolidWorks subscription customer to access the SolidWorks API forum's documents.

  1. Open https://forum.solidworks.com/community/solidworks/api?view=documents.
  2. Log in.
  3. Click SolidWorks > API to open the SolidWorks API forum.
  4. Click the Documents tab.
  5. Locate the C++ 32-bit and 64-bit Add-ins Post Messages After Every Selection document and download either the 32-bit or 64-bit version of the C++ project.

Remarks

If your application must be x64 compatible, then use ISldWorks::PostMessageToApplicationx64.
 

See Also

Availability

SolidWorks 2010 SP1, Revision Number 18.1


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   PostMessageToApplication Method (ISldWorks)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.