win64

Exceptions ignored in form_load for x64

When I throw an exception from form_load in my C# application it doesn't work when the platform is x64. (it acts as expected for x86) When I step through the code, I get to the line where the exception it thrown, then it immediately jumps to timer_Tick. When I create a new project and add this line to form_load: throw new System.Except...

How can my Perl script know it is running under Win64?

How can I have my Perl script detect it's running on a 64-bit Windows machine, even if it's a 32-bit perl? ...

How to get environment variable in 64 bit Windows?

Is there any way to retrieve the environment variable in 64 bit machine. I already have %abc% which returns me variable in 32 bit machine, but doesn't work in 64 bit. My Mistake: How can I get through command line not through programming language? ...

VC++ CLI application 32 - 64 bit CString question

SO, I am in the process of resolving the port of a 32bit app to 64 bit. When I compile for x64 I see a warning come up for the line ` CString sig; sig = "something"; sig = sig.left(strlen(something defined)); <<<<<< ` So, I get the warning for the sig.left where it implicitly converts the strlen value to int. Since in x64 strlen retur...

how to fix the error c2118: negative subscript

Again, porting 32-bit app to 64-bit. I get the negative subscript error on the C_ASSERT statement mentioned below.. C_ASSERT (sizeof(somestruct) == some#define); I also read the http://support.microsoft.com/kb/68475 article but not sure if I know how to fix it in this case. Help is appreciated. Thanks in advance. ...

32bit matlab program, 64bit windows, how do I get 6GB of RAM?

I have some matlab code that will only run on 32 bit windows, but I need atleast 6 gb of ram to run it. In my lab the only machine that has 6gb ram is running 64 bit windows, is there some way to run this code on here? I am thinking of emulating a 32 bit windows and running it on that, will that work? ...

Converting Word doc to tiff

I run Word 2003 in unattended process to convert a word doc file into a tiff. Word is configured to print to Microsoft Office Document Image driver and then pick up the generated file. It works fine on a 32 bit OS. Now we need to migrate this app on a 64 bit OS and it looks like there is no such driver in the Office 2003 installation on...

MySQL ODBC 32 vs 64 bit

I have a 32-bit application that must run on a Windows x64 server using a 64-bit version of MySQL. Should I use a 32-bit ODBC driver or a 64-bit ODBC driver? Or should I install a 32-bit version of MySQL too? ...

How should I name a native DLL distributed in both 32-bit and 64-bit form?

I have a commercial product that's a DLL (native 32-bit code), and now it's time to build a 64-bit version of it. So when installing on 64-bit Windows, the 32-bit version goes into Windows\SysWOW64, and the 64-bit version goes into... Windows\System32! (I'm biting my tongue here...) Or the DLL(s) can be installed alongside the client app...

win32 api programming book

Which is the best book for win32 api for beginners? Many in other posts suggested Charles Petzold's Programming Windows, but isn't that book old. As far as I remember it was written in Win9X, more then a decade ago on a dos based system. Windows has changed a lot since then. Is that book still good? I've also considered QT, but I believ...

libcurl .NET does not want to work on Win64

I wrote multi-threaded FTP uploader on C#.NET using libcurl.NET. Everything works fine on my machine, but when I give application (exe + libcurl.dll + 2 libcurl C# binding DLLs) to my friend who is running Win64, application crashes. After adding exception catcher to whole Main() function, I was able to get readable error message: "An ...

WebKit and npapi and mingw-w64

Hi, The problem is the following: On Windows x64, pointers are 64-bit, but type long is 32-bit. MSVC doesn't seem to care, and even omits warnings about pointer truncation on the default warning level. Since recently, there is a GCC that targets x86_64-w64-mingw32, or better native Windows x64. GCC produces errors when pointers are trun...

Tomcat on Windows x64 using 32-bit JDK

Hoping someone can help. The rub: I can't get Tomcat 5.5 to start as a windows service on 64-bit windows using a 32-bit JDK. the details: I've been running Tomcat 5.5 on Windows Server 2008 (x64) as a service for some time using a 64-bit JDK. I'm being forced to install a 32-bit JDK on this 64-bit machine so I can make use of the Jav...

How to detect if the Windows DWORD_PTR type is supported, using an ifdef?

There are some new integer types in the Windows API to support Win64. They haven't always been suppoprted; e.g. they aren't present in MSVC6. How can I write an #if condition to detect if these types are supported by <windows.h>? (My code needs to compile under many different versions of Microsoft Visual C++, including MSVC6. So I ne...

Why 2 GB memory limit when running in 64 bit Windows ?

I'm a member in a team that develop a Delphi application. The memory requirements are huge. 500 MB is normal but in some cases it got out of memory exception. The memory allocated in that cases is typically between 1000 - 1700 MB. We of course want 64-bits compiler but that won't happen now (and if it happens we also must convert to uni...

Window properties - how are they implemented?

I'm curious if there is anyone around here that has inside information on the implementation details of window properties (SetProp, GetProp, etc.) in Windows. SetProp @ MSDN GetProp @ MSDN For instance, how are storage and lookups done? ...

Win7 64/32 bits c# dll doubt

Hello, is it possible to build a c# dll and tlb files in a win7 64 bits computer and make it work in a win7 32bits computer? Thanks in advance :) Edit: I am using a c++ dll that calls the .tlb file generated in my c# COM interop dll proj. ...

windows 64bit problem

hi there, I have developed a windows application using C# VS 2008 and Sql 2005 express, i have testes the application on my machine and it works fine, my machine is win32 bit, when i tried the application on windows 64bit it keeps giving me an error message on the start of the application,although i installed the sql express on that mach...

Does speed of an C/C++, Windows console application depend on whether the target is 32 or 64 bit?

Supposing that memory is not an issue does targeting a 64 bit OS make a C/C++ Windows console application run faster? Update: Prompted by a few comments/answers the application involves statistical algorithms (e.g., linear algebra, random number draws etc). ...

Problems running a 32-bit Delphi app on a 64-bit Windows platform

I have a Windows 32 bit app written in Delphi that is giving problems when running under Windows Server 2008 64-bit. Details are sketchy ("having all kinds of printing issues" was the best report I could get so far) and the app behaves fine on all the Win64 platforms I have access to, but aside from that, I would have thought that an ap...