-
32bit > 64bit??
Hey forumz,
I have an application I've built on an XP system that is not working for Windows 7 systems. When it comes to multiple operating system functionality, IM A NOOB, for now... maybe you can help me with that? yes :thumb:
Alright.. after reading several posts, and searching multiple topics... I believe these can, or would be the issue with the compatibility.
Here's some code:
Possible Issue #1: (Start-Up API's, Code)
Code:
Public Declare Function RegisterHotKey Lib "user32" (ByVal hwnd As IntPtr, ByVal id As Integer, ByVal fsModifiers As Integer, ByVal vk As Integer) As Integer
Public Declare Function UnregisterHotKey Lib "user32" (ByVal hwnd As IntPtr, ByVal id As Integer) As Integer
Private Declare Function FindWindowA Lib "user32" Alias "FindWindowA" (
ByVal lpClassName As String, _
ByVal lpWindowName As String) As IntPtr
Private Declare Sub SetCursorPos Lib "user32" (ByVal X As Integer, ByVal Y As Integer)
Declare Function a_a Lib "user32.dll" Alias "mouse_event" (ByVal dwFlags As Int32, ByVal dX As Int32, ByVal dY As Int32, ByVal cButtons As Int32, ByVal dwExtraInfo As Int32) As Boolean
Private Declare Auto Function SendMessageKeyUpDown Lib "user32" Alias "SendMessage" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As IntPtr
Possible Issue #2: (References)
Code:
These Are The References Used By The Application:
Reference Name: Microsoft.VisualBasic.PowerPacks.vs
Reference Type: .NET
Version: 10.0.0.0
I Use The Rectangle Shape, And Line Shape On Some Forms
If anyone has any experience with these issues, and could help me resolve them,
it would be greatly appreciated. Please provide code if possible, Thanks.
-
Re: 32bit > 64bit??
try setting your target cpu to x86:
Project-->Properties-->Compile-->Advanced Compile Options-->Target CPU
-
Re: 32bit > 64bit??
The target framework is .net framework 4 client profile, is this what should be changed? there's a .net framework 4. :X
-
Re: 32bit > 64bit??
no not the framework. you're in the right screen. exactly where the taget framework option is depends whether you have pro or express edition.
-
Re: 32bit > 64bit??
oh.. its express edition. :X
tools > options > projects and solutions > general > show advanced build options
ill try it :)
-
Re: 32bit > 64bit??
didnt resolve the issue.. :(
people who have tried to use it on windows 7 etc have said it doesn't do anything, which isn't
helpful in resolving the issue lol.
i built it on windows xp sp3 and use intptr, and int32 commands.
ive suggested putting the file into the program files (x86) directory to be executed as 32bit,
right clicking to change compatibility to windows xp sp3,
running it as an administrator,
and it still dont work... lol
it is likely one of the dll calls from above, i believe (not positive)
/ resolution? (program runs perfect on xp sp3) :/
-
Re: 32bit > 64bit??
wait... if i change x86... to new > any CPU that may fix it yes!! :) :)