Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Margaret Duddy
  
 
 
 Margaret Duddy
 Tags
Subject: RE: Any tips for migrating from XP to Win7
Thread ID: 395425 Message ID: 395430 # Views: 66 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Windows 7 and VFP
Date: Tuesday, January 14, 2014 8:33:24 PM         
   


> I am about to upgrade my main development system from XP Pro to Windows 7 pro. Any pearls of wisdom to share?
>
> TIA for your help,
> Margaret


Hi,

I migrated from XP into Windows 7 now over 3-4 years ago. I did not have any issues with:
- Visual FoxPro
- Visual Studio's 10 Ultimate
- Made no changes to any source code anywhere other than some very specific cases where
I had to determine if the computer was running a 32-bit versus 63-bit operating system.
ie: Customer deemed that they needed to know if 32 or 64 bit operating system.

Code below can test this for you:
* --- Is64Bit.prg
* --- Syntax: ?Is64bit()    or    llIs64BitOS = Is64bit()	
* --- First determine if IsWow64Process function exists in the OS we're running under
DECLARE Long GetModuleHandle IN WIN32API STRING lpModuleName
DECLARE Long GetProcAddress IN WIN32API Long hModule, String lpProcName
llIsWow64ProcessExists = (GetProcAddress(GetModuleHandle("kernel32"),"IsWow64Process") <> 0)
 
llIs64BitOS = .F.
IF llIsWow64ProcessExists 
	DECLARE Long GetCurrentProcess IN WIN32API 
	DECLARE Long IsWow64Process IN WIN32API Long hProcess, Long @ Wow64Process
	lnIsWow64Process = 0
	* IsWow64Process function return value is nonzero if it succeeds 
	* The second output parameter value will be nonzero if VFP application is running under 64-bit OS 
	IF IsWow64Process( GetCurrentProcess(), @lnIsWow64Process) <> 0
		llIs64BitOS = (lnIsWow64Process <> 0)
	ENDIF	
ENDIF	
RETURN llIs64BitOS





Pete "the IceMan", from the Great White North of Canada.
www.marathongriffincomputers.com

ENTIRE THREAD

Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:12:13 PM
RE: Any tips for migrating from XP to Win7 Posted by Ali Koumaiha @ 1/14/2014 8:27:50 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:38:26 PM
RE: Any tips for migrating from XP to Win7 Posted by Marcio Souza @ 1/14/2014 8:30:24 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:37:59 PM
RE: Any tips for migrating from XP to Win7 Posted by Pete Sass @ 1/14/2014 8:33:24 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:37:32 PM
RE: Any tips for migrating from XP to Win7 Posted by Stefan Wuebbe @ 1/14/2014 8:51:58 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 9:09:35 PM
RE: Any tips for migrating from XP to Win7 Posted by Tony Vignone @ 1/14/2014 11:06:39 PM
RE: Any tips for migrating from XP to Win7 Posted by Stefan Wuebbe @ 1/15/2014 9:12:53 AM
RE: Any tips for migrating from XP to Win7 Posted by Tony Vignone @ 1/15/2014 6:00:26 PM
RE: Any tips for migrating from XP to Win7 Posted by Stefan Wuebbe @ 1/15/2014 7:03:00 PM
RE: Any tips for migrating from XP to Win7 Posted by Russell Hill @ 1/15/2014 3:46:59 AM
RE: Any tips for migrating from XP to Win7 Posted by Tore Bleken @ 1/15/2014 9:12:18 AM
RE: Any tips for migrating from XP to Win7 Posted by Russell Hill @ 1/15/2014 11:47:02 AM
RE: Any tips for migrating from XP to Win7 Posted by Tore Bleken @ 1/15/2014 11:58:20 AM
RE: Any tips for migrating from XP to Win7 Posted by Russell Hill @ 1/15/2014 10:53:33 PM
RE: Any tips for migrating from XP to Win7 Posted by Tore Bleken @ 1/16/2014 9:12:38 AM
RE: Any tips for migrating from XP to Win7 Posted by Tony Vignone @ 1/16/2014 12:55:49 AM
RE: Any tips for migrating from XP to Win7 Posted by tom knauf @ 1/16/2014 2:32:13 PM