.Net Newb convert from vb6

  • Thread starter Thread starter mp
  • Start date Start date
M

mp

Error 4 'timeGetTime' is not a member of 'Win.Multimedia'.

have looked through many objects, cant find this function

is there an index for converting functions etc from vb6 to dotnet?

thanks
mark
 
mp said:
Error 4 'timeGetTime' is not a member of 'Win.Multimedia'.

have looked through many objects, cant find this function

is there an index for converting functions etc from vb6 to dotnet?

Where is the function located in the VB6 project?


Armin
 
win.multimedia
winu.tlb

thanks for asking, it made me realize I haven't registered the tlb after
having to reinstall my os and all programs
but what's weird is the project works fine in vb6 so i don't know how vb6 is
finding the tlb if I didnt' register it
I just went into project references and browsed to the tlb

now I don't recall for sure if i had to register the tlb previously, I've
used it for so long i've forgotten.
 
mp said:
Error 4 'timeGetTime' is not a member of 'Win.Multimedia'.

have looked through many objects, cant find this function

is there an index for converting functions etc from vb6 to dotnet?


Well, there are some concepts in .Net that are so different that VB6
code can not be ugpraded 1:1, for example drawing. Apart from that,
everything should be available, either it's included in the language, in
native dlls, in COM dlls, in the Framework, partially in the "Microsoft
Visual Basic Compatibility" dll. So I dare to say "It should still
work". The next step is to learn, learn, learn, and you'll be able to
replace code by newer methods. For example, instead of declaring an API
function for GetUserName, you can just use Environment.Username.

You've asked for an index: (though, not up to date)
http://msdn.microsoft.com/en-us/library/aa302340.aspx



Armin
 
Thanks again,
Environment.Username took care of that one

will study the index and continue learning

Thanks
mark
 
Thanks again Scott
Will peruse the index armin provided to see if I can eliminate some of this
one by one hunting pecking
:-)

Thanks for all your help
Much appreciated.
mark
 
Scott said:
You want DateTime.Now

Well, not really. Actually there's not replacement (AFAIK).
Environment.Tickcount is probably as close as possible and should do it,
but the difference is the same as between the timeGetTime and
GetSystemTime API functions.


Armin
 
Back
Top