
Visual Basic -->> C++ DLL
Quote:
>Path:
>ottnews!tornews!shlnews!uunet!usc!howland.reston.ans.net!ix.netcom.com!netnews
>Newsgroups: comp.lang.basic.visual.misc
>Subject: Re: BWCC.DLL
>Date: 21 Mar 1995 01:51:19 GMT
>Organization: Netcom
>Lines: 52
>Distribution: world
>NNTP-Posting-Host: ix-har1-08.ix.netcom.com
>Could you please send your declare statement?
Add this function declaration the the general declarations section of a form, or in a .BAS file
if you are declaring other Windows API functions.
Declare Function BWCCMessageBox Lib "BWCC.DLL" (ByVal hWnd As Integer, ByVal Message As String,
ByVal Caption As String, ByVal Style As Integer) As Integer
' hWnd Windows Handle Of Parent Form
' Message The message text for the Message Box
' Caption The "Title" of the Message Box
' Style The type of Icon(s) to display i.e IconStop & OK button
Add this code to a form for a quick example of the BWCC Message Box...
Sub Command1_Click ()
Dim X%
'The 16 for the Style value equates to MB_ICONSTOP with an OK button
'NOTE: If you include an icon in your message box, you reduce the amount of space in
'the message box to display text.
X% = BWCCMessageBox(((Me.hWnd)), "This is a Borland Style Message Box with
an Icon", "Borland Message Box", 16)
X% = BWCCMessageBox(((Me.hWnd)), "This is a Borland Style Message Box
without an Icon", "Borland Message Box", 0)
End Sub
If you want to see what other functions are enclosed in BWCC, go to the CICA
ftp site (or a mirror site). Look in the "/pub/cica/pc/win3/programr/bcpp"
directory (may differ from site to site) and get BWCC.ZIP. This file includes
the C/C++ header file for BWCC.DLL
Brad.
------------------------------------------------------
Opinions expressed are my own and do not represent the
views of the company.