Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error# 453 with SelectObject function in vb4.0
Message
 
 
À
Tous
Information générale
Forum:
Visual C++
Catégorie:
Autre
Titre:
Error# 453 with SelectObject function in vb4.0
Divers
Thread ID:
00030940
Message ID:
00030940
Vues:
69
I am using a createPen function & passing its non-zero return value & handle to the device-context of picturebox to the SelectObject function. However, I get the error, " function not found in the specified dll."
Code:

PenWidth = 16
PenColor = QBColor(4)

pic1hdc = Picture1.hdc

'StockObject = GetStockObject(WHITE_PEN)
DrawPen = CreatePen(PS_DASH, ByVal PenWidth, ByVal PenColor)
ThisPen = SelectObject(ByVal pic1hdc, ByVal DrawPen)

Note: DrawPen, PenWidth, PenColor, ThisPen & pic1hdc
were declared as Long


I like to know what am I doing wrong? How can I correct this situation.


Thanks all,

saif
Répondre
Fil
Voir

Click here to load this message in the networking platform