0
голосов
2ответов
502 просмотров

code porting from 32bit to 64bit

I am trying to port 32bit code to 64bit linux machine. Are there any compiler flags for 64bit posrting warning on Linux. There are +w2 -m64 flags for SUN. Could anyone give me information for flags similar to this one? Thank you in advance,

1
голосов
1ответов
1077 просмотров

ml64 - warning A6004: procedure argument or local not referenced

I have a function written for th e x64 microsft macro assembler in visual studio 2005. The function recieves 3 arguments: theFunction PROC firstP:QWORD, secondP:QWORD, thirdP:QWORD the x64 calling convention state the the first 4 arguments will reside in registers rcx, rdx, r8 & r9. When I...

0
голосов
1ответов
113 просмотров

VS2008 pro + seven pro 64bits

I recently installed W7 pro 64bits on my laptop, and then VS2008 pro with x64 compatibility. If i build any project, will it be built with 32 or 64 bit compatibility natively? And then, is it possible to change from 32 to 64 (or from 64 to 32) ? 'Cause most of my clients only runs 32bits appli...

10
голосов
3ответов
1852 просмотров

Size of 64-bit dll 50% larger than 32-bit

I have a VC++ project (2005) that generates both 32-bit and 64-bit dlls. The 32-bit dll is 1044 KB whereas the 64-bit version is 1620 KB. I'm curious why the size is so large. Is it just because of the larger address size, or is there a compiler option that I'm missing?

1
голосов
9ответов
2603 просмотров

C++ Array size x86 and for x64

Simple question, I'm writting a program that needs to open huge image files (8kx8k) but I'm a little bit confused on how to initialize the huge arrays to hold the images in c++. I been trying something like this: long long SIZE = 8092*8092; ///8096*8096 double* array; array = (double*) mall...

2
голосов
2ответов
2744 просмотров

Installing Coldfusion 8 32 bit on a 64 bit machine - any problems?

We are planning to upgrade our test server and to do so we were planning on buying a 64 bit machine from Dell running Windows 2008 x64 Web edition. However, for now we would like to continue to use 32 bit Coldfusion 8. Is there anything to stop us doing this, or do we have to move to 64 bit Co...

40
голосов
1ответов
6859 просмотров

Silent failures in C#, seemingly unhandled exceptions that does not crash the program

In a winforms app, in a form's Load event, add the following line: throw new Exception(); and run the application. It ran without a problem. This is called a silent failure, you can try to add messageboxes before and after, and you'll soon find out that instead of crashing the application, the...

1
голосов
2ответов
2270 просмотров

VS2008 Remote Debugging problems from 32-bit Windows XP client to 64-bit Windows 2008 Server

We are having an issue with remote dedubbing using Microsoft Visual Studio 2008 on a 32 bit XP client machine and a 64 bit Windows Server 2008 Virtual Machine on Hyper-V. When we debug the web project locally we can correctly see the modules loaded in the modules window (Ctrl + Alt + U) with the ...

3
голосов
3ответов
463 просмотров

Numeric String (arbitrary size) -> Multiple Integers

I'm running into a problem because my database has BIGINT data (64-bit integers) but the version of PHP I'm running is only 32-bit. So when I pull out value from a table I end up with a numeric string representing a 64-bit integer in base 10. What I would ideally like to do is use the 64-bit in...

36
голосов
8ответов
33904 просмотров

How can I use a single Visual Studio solution to build both x86 and x64 at the same time?

I've got an x86 Visual Studio solution with many project files in it. Some of the DLL files are designed to work as plug-ins to other applications on a user's system. We're expanding some of the DLL files to be able to support 64-bit applications. I'd like to set up the solution/projects so that...

13
голосов
4ответов
3032 просмотров

How to also prepare for 64-bits when migrating to Delphi 2010 and Unicode

As 64 bits support is not expected in the next version it is no longer an option to wait for the possibility to migrate our existing code base to unicode and 64-bit in one go. However it would be nice if we could already prepare our code for 64-bit when doing our unicode translation. This will mi...

6
голосов
1ответов
2025 просмотров

Translate inline assembly to support x64

I have a small inline assembly code written in my C code. The asm goes through an array and if needed, move values from a different array to a register. In the end, an interrupt is called. The code is similar to this: cmp arrPointer[2],1h jne EXIT mov AX, shortArrPtr[2] EXIT: int 3h This all w...

4
голосов
4ответов
26098 просмотров

Register type library x64 regtlib

I'm running Windows 7 x64, and need to register a type library file (.tlb). I've done this previously (on a Vista x64 machine) but neglected to take notes as to how I achieved it... There is no regtlib.exe / regtlibv12.exe on the system. I have copied across the regtlibv12.exe from a Windows X...

0
голосов
1ответов
1456 просмотров

Invalid Class String Error when creating C++ Project in Visual Studio 2008 with Vista x64

After going through this Problem (connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=329986) that was related with registry permissions, now again, Visual Studio comes with another error. I have the same error as this guy, I have searched all the internet and it seems nobod...

1
голосов
1ответов
847 просмотров

Javascript Error while opening Infopath templates from within .Net webbrowser control on 64-bit Vista machines

We have some browser enabled Infopath 2007 templates hosted on Windows Sharepoint server (Windows 2003 machines). We use a couple of 'Rich Textboxes' in these templates and these templates are made available to the end user via .Net windows application that used the WebBrowser control. The appl...

14
голосов
5ответов
2733 просмотров

Computing high 64 bits of a 64x64 int product in C

I would like my C function to efficiently compute the high 64 bits of the product of two 64 bit signed ints. I know how to do this in x86-64 assembly, with imulq and pulling the result out of %rdx. But I'm at a loss for how to write this in C at all, let alone coax the compiler to do it efficie...

26
голосов
2ответов
22386 просмотров

C# PInvoking user32.dll on a 64 bit system

Is it wrong to pinvoke user32.dll on 64 bit Windows, from a 64 bit app? I've done this successfully a number of times and never had an error, but it seems contradictory. Should I look for user64.dll instead?

0
голосов
1ответов
1568 просмотров

using 32 bit installshield for packaging 64 bit binaries

iam using 32 bit installshield to package 64 bit binaries. everything works fine but default location is pointing to c:\program files(x86)\companyname\productname. even though i've selected 64bit at every possible place, somehow it is defaulting to x86 programfiles folder. Any kind of help would ...

2
голосов
1ответов
1999 просмотров

.NET 2.0 application ('Any CPU') running slow on 64-bit OS/processoer

My Windows application is deveoped on .NET 2.0 Framework and is build using 'Any CPU', development enviroment is 32-bit OS + Visual Studio 2005. Now I am deploying this application on 64-bit processoer + 64-bit OS it is running slow. But if I build using x86 (32 bit), it is working fine without...

1
голосов
1ответов
650 просмотров

What's going to happen if I use OLE Automation to load up a 32 bit control in a 64 bit app?

The .NET application for which I'm responsible uses a third-party control that is only available as a 32 bit COM component. I've been banging my head against walls for a while trying to find a way to allow the component and the app to work together in 64-bit mode. We got some help from the cont...

21
голосов
8ответов
21355 просмотров

Internet Explorer 8 64bit and Selenium Not working

I am trying to get selenium tests to run. Yet every time I try to run a tests that should run IE I get a error on line 863 of htmlutils.js It says that I should disable my popup blocker. The thing is I went to IE tools-> turn of popup block. So it is disabled and I get this error. Is there s...

1
голосов
1ответов
5167 просмотров

Which SQLCMD.exe to use (x64 or x86) -- SQL Server 2008?

I have SQL Server 2008 installed in a Vista x64 machine. When I look for the sqlcmd.exe, i find 2 versions, the x64 and the x86: C:\Program Files\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\sqlcmd.exe Which one should I use ? Is th...

64
голосов
16ответов
127640 просмотров

How do I install SciPy on 64 bit Windows?

How do I install SciPy on my system? For the NumPy part (that SciPy depends on) there is actually an installer for 64 bit Windows: numpy-1.3.0.win-amd64-py2.6.msi (is direct download URL, 2310144 bytes). Running the SciPy superpack installer results in this message in a dialog box: Cannot i...

2
голосов
2ответов
430 просмотров

debugging 64 bit dumps in visual studio

Is there any way to use visual studio to debug a dump of a 32 bit app that was produced on a 64 bit computer. I have got WinDbg working but the output is so jumbled i cant work out whats going on. Visual Studio 2008

6
голосов
2ответов
5821 просмотров

Best Ubuntu setup for 32-bit *AND* 64-bit Qt app development?

I'm developing a qt-based application and i would like to develop both 32 and 64bit version of the application on the same machine, sharing the same sources, scripts, etc.. The machine is an Ubuntu Jaunty 64bit, Intel Core i7, 8gb ram. I'm aware that by running VMWare or VirtualBox could get thi...

58
голосов
4ответов
23548 просмотров

Force x86 CLR on an 'Any CPU' .NET assembly

In .NET, the 'Platform Target: Any CPU' compiler option allows a .NET assembly to run as 64 bit on a x64 machine, and 32 bit on an x86 machine. It is also possible to force an assembly to run as x86 on an x64 machine using the 'Platform Target: x86' compiler option. Is it possible to run an asse...

6
голосов
3ответов
2969 просмотров

How is linux simultaneously 32bit and 64bit? Or is that something handled in glibc?

How is Linux simultaneously 32bit and 64bit? Or is that something handled in glibc? I run CentOS 5.3 and it is a "64 bit" version; although I build things for 64 bit and 32 bit. From what I think I know, Windows supposedly has a 32bit emulator. Does Linux do the same thing? Is it in userspace or...

2
голосов
6ответов
5484 просмотров

Compiling for amd64 under i386 Debian

Cheers, I want to avoid problems with compiling my code on amd64, yet I don't have a 64-bit CPU available and have no hopes of getting upgrade to my machine any time soon. I have no dreams of testing the code (although that should theoretically be possible using qemu-system) but I'd like to at l...

57
голосов
8ответов
35946 просмотров

"Changes to 64-bit applications are not allowed" when debugging in Visual Studio 2008

I'm using Visual Studio 2008, C#. I try to use edit-and-continue (edit the code while debugging), and get this exception: "Changes to 64-bit applications are not allowed" Why is that? Is there a workaround?

7
голосов
3ответов
4118 просмотров

.Net WinForm System Beep on a 64 Bit OS

My application needs to beep when validation fails so the user (who may be several feet away) may hear it. I'd like to use the Console.Beep() but this is unavailable in a x64 environment (see the remarks). There may or may not be speakers in/at the computer, so I can't use System.Media.SystemSoun...