Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
W

whiteboat

@whiteboat
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Making VC++ 6 DLL to work on VB6 App with no UNICODE issue
    W whiteboat

    Yes. But I posted it here also since the main app is VB6 even though the DLL is VC++ 6.

    Visual Basic help c++ winforms announcement

  • Making VC++ 6 DLL to work on VB6 App with no UNICODE issue
    W whiteboat

    Yes. The DLL is not a problem since it is compiled with _UNICODE, UNICODE with no problem. The problem is VB6 translates all DLL calls to ANSI even though it is UNICODE.

    C / C++ / MFC help c++ winforms announcement

  • Making VC++ 6 DLL to work on VB6 App with no UNICODE issue
    W whiteboat

    Currently I am working on an old VB6 app to be compatible with UNICODE.

    This app has SSTab and within this tab, there are user control q1, q2, q3 and so on. For q1, it has the following code:

    Private WithEvents q1 As VBControlExtender
    Private progID As String

    procId = “ALCTX10.CTX10.1”
    Set q1 = Controls.Add(procId, “q1”)
    myTab.tab = 1
    q1.Move borderSize, topMargin, myTab.Width - borderSize * 2, _
    myTab.Height - borderSize - topMargin
    q1.Visible = True

    The procId is referring to VC++ 6 DLL. All user controls are using this DLL.
    For VC++ 6 DLL, I added ",_UNICODE, UNICODE" into the preprocessor definitions under the project setting of VC++ 6.
    And compiled the DLL again and then brought it back to VB6.

    The problem is I am still getting the same UNICODE issue from VB6 app.
    I am using a foreign version of Windows XP so it is not the font problem.
    I can’t just replace this DLL with UNICODE supported TextBox or RichTextBox since there are too many things going underneath the DLL.

    I would appreciate very much if anyone sheds a light on this problem. Thanks.

    C / C++ / MFC help c++ winforms announcement

  • Making VC++ 6 DLL to work on VB6 App with no UNICODE issue
    W whiteboat

    Currently I am working on an old VB6 app to be compatible with UNICODE.

    This app has SSTab and within this tab, there are user control q1, q2, q3 and so on. For q1, it has the following code:

    Private WithEvents q1 As VBControlExtender
    Private progID As String

    procId = “ALCTX10.CTX10.1”
    Set q1 = Controls.Add(procId, “q1”)
    myTab.tab = 1
    q1.Move borderSize, topMargin, myTab.Width - borderSize * 2, _
    myTab.Height - borderSize - topMargin
    q1.Visible = True

    The procId is referring to VC++ 6 DLL. All user controls are using this DLL.
    For VC++ 6 DLL, I added ",_UNICODE, UNICODE" into the preprocessor definitions under the project setting of VC++ 6.
    And compiled the DLL again and then brought it back to VB6.

    The problem is I am still getting the same UNICODE issue from VB6 app.
    I am using a foreign version of Windows XP so it is not the font problem.
    I can’t just replace this DLL with UNICODE supported TextBox or RichTextBox since there are too many things going underneath the DLL.

    I would appreciate very much if anyone sheds a light on this problem. Thanks.

    Visual Basic help c++ winforms announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups