Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

which is probably a good thing as I'm not very experienced in this .Net stuff yet

 

Anyway - the API Exception class is wrong...the API declaration for FormatMessage should be...

 


#Region "API Declarations"
   <DllImport("kernel32.dll", EntryPoint:="FormatMessageA", _
CharSet:=CharSet.Ansi, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function FormatMessage(ByVal dwFlags As Format_Message_Flags, ByVal lpSource As Int32, ByVal dwMessageId As Int32, ByVal dwLanguageId As Int32, ByVal lpBuffer As StringBuilder, ByVal nSize As Int32, ByVal Arguments As Int32) As Int32

   End Function

#End Region

Printer Monitor for .NET? - see Merrion Computing Ltd for details

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...