Are you trying to make the array be different sizes depending on what data you have? If so, I think you would be better using linked lists as you can add extra elements to these on the fly, whereas arrays are fixed size.
Answered my own question by reading the Help!You have to first specify the size in bytes of the structure you are passing to the function.
I wonder why it still worked in 98 though? Weird.
bool IsNTBased()
{
OSVERSIONINFO osinfo; // os version info structure
osinfo.dwOSVersionInfoSize =...
Hi
My program needs to run on all versions of Windows from 95 to XP. It also needs to detect what type of OS it is running on, so I am using GetVersionEx for this.
Trouble is, my app runs fine on 98 but when I test it on XP it crashes with some kind of Access Violation.
Anyone got any ideas on...
You can only get the clock speed of the processor from the Registry if you're using an NT based system, such as NT4, 2000 or XP.
You would need to use C++ with inline assembly code to calculate the clock speed. This can't be done in VB directly.
I found an excellent example on Planet Source Code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.