32bit-64bit

How do I convert this program to work on a 64 bit machine?

一笑奈何 提交于 2019-12-11 18:31:50
问题 This code has to work on a 64 bit machine and it currently does not. What do I need to fix inorder for this script to work? Option Explicit ''' ************************************************************************* ''' Module Constant Declaractions Follow ''' ************************************************************************* ''' Constant for the dwDesiredAccess parameter of the OpenProcess API function. Private Const PROCESS_QUERY_INFORMATION As Long = &H400 ''' Constant for the

Using IntPtr with IComparer<T>

*爱你&永不变心* 提交于 2019-12-11 18:18:44
问题 Three related questions here: The IntPtr structure apparently does not implement < and > operators. Is there a way to perform this comparison without converting the structure to an int or long? Why are the < and > operators not implemented on this structure? I am enumerating windows from a 32 bit process. Windows from 64 bit processes also seem to be included, which is fine. How can I tell whether to use ToInt32 or ToInt64 on the IntPtr structure? Context: Windows 7 (64 bit), VS 2010,

Azure AD Password Hash Sync, Seamless SSO and 64-bit WebBrowser .NET control not working

自闭症网瘾萝莉.ら 提交于 2019-12-11 16:49:03
问题 I have a .NET 4.5.2 WinForms application with an embedded WebBrowser. The application is built with AnyCPU and "Prefer 32-bit" disabled, running on Windows 10 64-bit. The machine is not domain joined but not Azure AD joined and Azure AD Connect is used to perform Password Hash Sync (this is not my area of expertise). When the webbrowser navigates to a website which should perform a seamless single sign-on (e.g. myapps.microsoft.com), it doesn't work. It simply times out at the "Trying to sign

firefox extension with js-ctypes on 32-bit and/or 64-bit firefox (version 25.0.1)

时光怂恿深爱的人放手 提交于 2019-12-11 11:51:58
问题 I am creating a firefox extension for linux firefox on 64-bit ubuntu. The extension is a javascript program that calls functions in my shared library (libcog.so) written in C via the js-ctypes mechanism. I got the basics of the extension working, but now that I need to call functions in the libcog.so shared library via the js-ctypes mechanism, several issues are unclear. I can't make the firefox browser tell me whether it is a 32-bit or 64-bit mode application! Later: I think I figured out

Wrong Value after type casting in 32 bit process [duplicate]

不问归期 提交于 2019-12-11 11:08:39
问题 This question already has answers here : Why does this floating-point calculation give different results on different machines? (4 answers) Closed 5 years ago . Please see the following code in C#. float a = 10.0f; float b = 0.1f; float c = a / b; int indirect = (int)(c); // Value of indirect is 100 always int direct = (int)(a / b); // Value of direct is 99 in 32 bit process (?) // Value of direct is 100 in 64 bit process Why do we get 99 in 32-bit processes? I am using VS2013. 回答1: When you

Build allegro 5 for Windows XP

和自甴很熟 提交于 2019-12-11 09:06:09
问题 I've spent all day looking for answers. I haven't found one that works, so im posting a question and asking the great stackoverflow. I have an allegro 5 application that needs to run on a windows xp 32bit machine. Ive made this application in VS C++ 2012. Ive tried to buld the project with the platform toolset vs 2012 windows xp (v110_xp), this didn't work. the problem is that when I try to run the .exe in XP i get a: "the procedure entry point GetTickCount64 could not be located in the

Detecting exe 32/64bit

 ̄綄美尐妖づ 提交于 2019-12-11 08:16:38
问题 How do I manually [without any extra scripts/programs] see if a Windows executable is 32/64 bit? I have been looking around and found what should have been my answer. At 60 bytes in, the numbers below is suppose to appear, as far as I understand. I386 0x014c IA64 0x0200 AMD64 0x8664 Edit After jumping to the PE offset, I still did not see the machine type. I did a Find & did not see any matches [unless its near the bottom for some reason]. 64 86 06 00 is not in the list above, so I dont know

Not able to Upload 64-bit build in Google play Store

百般思念 提交于 2019-12-11 06:33:41
问题 We are trying to upload the 64bit & 32bit build, according to the recent Google policy change. We have included respective abifilter " ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' " in the Build.gradle. We were able to generate the build but when we upload the build to Play console for Beta review. It gives a warning saying " Release is not compliant with 64-bit Google Requirement ". We tried all approach, generating 4 builds ( x86,x86_64,armeabi-v7a,arm64-v8a ), generating two

P/Inovke parameters offset by 32 bits when compiled in 64 bit

会有一股神秘感。 提交于 2019-12-11 05:47:38
问题 Follow up to PInvoke byte array to char not behaving properly in 64 bit. (Stale question and my suspicions were wrong, thus the title and descriptionwas unfitting). I am using P/Invoke to call C++ code from C#. I have both the C# and C++ projects set to build in x64 in the build configurations of VS. when I run this program, the parameters of the P/Invoke call are shifted by 32 bits as follows C# : |Parameter 1|Parameter 2|Parameter 3|Parameter 4| | | | | | V V V V V C++: |Parameter 1

How to avoid 32/64 bit architecture dilemma in Windows and .Net? [duplicate]

落花浮王杯 提交于 2019-12-11 05:05:11
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: What does the Visual Studio “Any CPU” target mean? We have a WPF application that must work on plenty of Windows machines from Windows XP x32 to Windows 8 x64. Our app includes NHibernate and SQLite. We do not need any feature of x64. How can modify application to run without any problem on all architectures? Our app is in .Net 4.0 回答1: Unless you have both the 64bit and 32 bit dll's of your external dependences