I got these errors after i ran the import wizard then tried to use that code on a current project im not sure how I need to fix this I tried using Space(255) but that didn't go so well
the VB6.FixedLengthString is not defined
Dim
sFilePath As New VB6.FixedLengthString(255)
the VB6 is not declared Is there a way to fix this
GetModuleFileName(VB6.GetHInstance.ToInt32, sFilePath.Value, Len(sFilePath.Value))
' This function will determine the path of the current app
conversion problem vb6 to vb 2005 express
Salman Maredia
fixed the problem myself like this
Dim sFilePath As New VB6.FixedLengthString(255) became this
Dim sFilePath As New Microsoft.VisualBasic.Compatibility.VB6.FixedLengthString(255)and this GetModuleFileName(VB6.GetHInstance.ToInt32, sFilePath.Value, Len(sFilePath.Value)) became this
GetModuleFileName(Microsoft.VisualBasic.Compatibility.VB6.GetHInstance.ToInt32, sFilePath.Value, Len(sFilePath.Value))
hope I did this right
ZackL
GOOD AFTERNOON,
IM USING this procedure in VB6.0
iRet = LSConnect(HWND, app.hInstance, iMachineType, hLSConnect)
But when I use convert to VB 2005,
iRet = LSConnect(HWND, VB6.GetHInstance.ToInt32, iMachineType, hLSConnect)
My question is how will a make the source code without referencing in VB6
Can you give sample source code for this particular problem