R
RFleming
I am not trying to come across as trying to get all my questions
answered without doing any work, I am just hoping for someone(s) to
suggest the best places and terminology to use when trying to get my
answers.
I am a fairly advanced Visual Basic 6 programmer. I decided to give
VB 2005 a try (I gave up on .net but decided to try again). I picked
a fairly simple program code wise (about 100 lines of code) but one
that uses an activeX control I wrote, several APIs, declares and
types, and a Hook (call back function) for a window.
I was able to load the project into VB 2005 Express and it converted
it, but has several issues. The first one I came across and cannot
solve is several of my API declares uses Any, for example
Declare Function FormatMessage Lib "kernel32" Alias
"FormatMessageA" (ByVal dwFlags As Integer, ByRef lpSource As Any,
ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByVal
lpBuffer As String, ByVal nSize As Integer, ByRef Arguments As
Integer) As Integer
I looked on MSDN and the LpSource is defined as LCPVOID????? That is
where I got stuck. I did searches on VB 2005 API Viewer, and many
others but came up with zero.
I really would like to learn, but I don't have the 5 years it took me
to get where I have been for 4 years now with VB 6. Anyone willing to
through some good books, suggest things I am overlooking like maybe
APIs are not called APIs in VB 2005?? Anyhow I appreciate anyone
willing to point me in a good direction!
Thanks
Ryan
answered without doing any work, I am just hoping for someone(s) to
suggest the best places and terminology to use when trying to get my
answers.
I am a fairly advanced Visual Basic 6 programmer. I decided to give
VB 2005 a try (I gave up on .net but decided to try again). I picked
a fairly simple program code wise (about 100 lines of code) but one
that uses an activeX control I wrote, several APIs, declares and
types, and a Hook (call back function) for a window.
I was able to load the project into VB 2005 Express and it converted
it, but has several issues. The first one I came across and cannot
solve is several of my API declares uses Any, for example
Declare Function FormatMessage Lib "kernel32" Alias
"FormatMessageA" (ByVal dwFlags As Integer, ByRef lpSource As Any,
ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByVal
lpBuffer As String, ByVal nSize As Integer, ByRef Arguments As
Integer) As Integer
I looked on MSDN and the LpSource is defined as LCPVOID????? That is
where I got stuck. I did searches on VB 2005 API Viewer, and many
others but came up with zero.
I really would like to learn, but I don't have the 5 years it took me
to get where I have been for 4 years now with VB 6. Anyone willing to
through some good books, suggest things I am overlooking like maybe
APIs are not called APIs in VB 2005?? Anyhow I appreciate anyone
willing to point me in a good direction!
Thanks
Ryan