LoginSignup
0
0

More than 5 years have passed since last update.

VB6からVB2005への変換で行き詰まってる・・・

Last updated at Posted at 2017-03-15

やりたい事は、VB6をC#に変換させたい。
だけど、VB6からVB2005への変換で行き詰まってる・・・

.lpfn = GetPointer(AddressOf BFFCallback)
の箇所で、
「error BC30581: 'Integer' は、デリゲート型でないため、'AddressOf' 式を 'Integer' に変換できません。」
のエラー。

関連するのは、
/***************************************************************************/
Public Function GetPointer(ByRef lngAddressOf As Integer) As Integer

    コールバック関数のアドレスを返す
    GetPointer = lngAddressOf

End Function
/***************************************************************************/

/***************************************************************************/
Public Function BFFCallback(ByVal hwnd As Integer, ByVal uMsg As Integer, ByVal lParam As Integer, ByVal lpData As Integer) As Integer

    フォルダを指定のメッセージをダイアログへ送信
    If uMsg = BFFM_INITIALIZED Then
        Call SendMessage(hwnd, BFFM_SETSELECTIONA, True, lpData)
    End If

End Function
/***************************************************************************/

ググってるけど、中々解決策が見つからず・・・
誰か、解決方法教えて・・・。

0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0