Jump to content
  • Advertisement
Sign in to follow this  
chrisliando

[.net] From VB to Visual C++

This topic is 3779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How to change this function to Visual C++ Whidbey? Public Sub AddControl(ByVal RTFControl As Object) Dim objControlSubClass As New clsWindowSubClass(RTFControl.Handle,RTFControl, Me) aControls.Add(objControlSubClass) End Sub I was confused, because New is a VB keyword but it can be used as a function name here. And also, as the parameter, it use Object type as the data type but when I tried to find property Handle, I could not found it. So, what type I should use? Thanks.. The clsWindowSubClass: Public Class clsWindowSubClass Inherits System.Windows.Forms.NativeWindow Private objWindow As Object Private objParent As clsRTFScrollSync Public Sub New(ByVal Handle As IntPtr, ByVal Window As Object, ByVal Parent As clsRTFScrollSync) objWindow = Window objParent = Parent MyBase.AssignHandle(Handle) End Sub Protected Overrides Sub WndProc(ByRef WindowMessage As _ system.Windows.Forms.Message) MyBase.WndProc(WindowMessage) objParent.SyncScrollBars(MyBase.Handle, Me, _ objWindow, WindowMessage) End Sub End Class

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!