Hello, my name is John McPherson, and I write C code for the U.S. Department of Labor. I am in the process of converting C code for a lot states from a 32-bit system to a 64-bit system. Some states have been converted, and most have gone smoothly, but one state is having a major problem. I have isolated the problem to one paticular module, and the code of this module follows: #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include <time.h> #include "maff.h" #include "maffdef" int i,j,k; int creg_(int kky,int kkq) { /* this s/r determines the regular tax …

Member Avatar
Member Avatar
+0 forum 11

I'm working on a program that requires some very low level optimization. My question is, when precision isn't an important factor, how can I automatically use the most efficient floating point type for whatever architecture the program is being run on? As far as I'm aware, floats are more efficient on 32 bit systems, and doubles are more efficient on 64 bit systems. Is there some sort of keyword or macro I can use which always uses the native data type for the machine it's being run on? Thanks, appreciate any help.

Member Avatar
+0 forum 0

Okay, so I am learning Assembly and I started with 32bit and `bswap` seemed to work fine. Now I have this code main.c #include <stdio.h> #include <stdlib.h> extern int asm_proc(void); void print_bits(unsigned long long bits) { for (int i = 0; i < sizeof(unsigned long long) * 8; i += 1) { printf("%i", (bits & 0x0000000000000001 ? 1 : 0)); bits >>= 1; if((i+1) % 8 == 0) printf("\n"); } printf("\n"); } int main() { print_bits(asm_proc()); return 0; } main.asm BITS 64 section .text global asm_proc asm_proc: mov rax, 01h cpuid mov rax, 0ffffffffffffffffh bswap rax ret but the `bswap` …

Member Avatar
Member Avatar
+0 forum 3

file FMLRSVCWebpp.war does not exist ,what should i do ????

Member Avatar
Member Avatar
+0 forum 1

Hi all, I have a Windows 7 64 bit client that is running a 32 bit of software and so needs a 32 bit ODBC connection to the database. I of course ignored the Administrative Tools > ODBC manager because that will open the 64 bit and instead went to c:\windows\syswow64\odbcad32.exe to input the system DSN connection. I went through the wizard and when I went to select the database got a message to say the server could not be accessed. I checked on the DB server that the SQL service was running, that the firewall had all necessary ports …

Member Avatar
+0 forum 0

Sir, Is there a way to install 64bit printer driver on a 32bit based Windows XP of hp laserjet 1010 ?

Member Avatar
Member Avatar
+0 forum 4

Hi. I have a c# project created in Visual Studio 2010. The project runs successfully on Windows XP 32bit but I get an error when building on Windows 7 64bit. The error is as follows: Could not load referenced assembly "C:\WINDOWS\system32\stdole.dll". Caught a FileNotFoundException saying "Could not load file or assembly 'C:\WINDOWS\system32\stdole.dll' or one of its dependencies. The system cannot find the file specified.". When I change the path of the assembly from C:\WINDOWS\system32\stdole.dll to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\stdole.dll, the project builds successfully. Can someone please shed some light on this? Thanks

Member Avatar
+0 forum 0

Hello; I got some kind of infection or something last week, which caused my virus software not to update, and finally my computer to totally crash and would not reboot. I successfully recovered my system from an image (it was one level up of messy from actual system restore - which never works, why is that?). Now explorer.exe crashes and restarts whenever I right click on files in explorer (not folders, they work as normal). This is true whether I click a file in a folder, or a file appearing over the Windows button. I need the right click for …

Member Avatar
Member Avatar
+0 forum 11

SO guys I am supposed to be making a program that will check for a palindrome but, I can not get my code to work. It seems to be stuck on the cmp part. I am not sure if this is even right I dont have much experience with masm. Any help would much be appreciated segment .data s DB 'malayalam' s_size DW 9 pal db "is a plaindrome",0x0a,0 segment .text global main extern printf main: lea rdi, [s] ;move string into rsi mov rsi, rdi ;set rsi to rdi add rsi, s_size ;add the 9 to rsi dec rsi …

Member Avatar
Member Avatar
+0 forum 2

I am an amateur programmer that helps build some solutions for my company. I have an application that I did not originally create, but I have done a lot of modification. I think it was originally built VB 2005 and converted to VB 2010 where I have done most of my modification. It ran fine for people in when they had 32 bit systems, but they now cannot run it on 64 bit systems. This applications finds information in text files and moves it into an Access database. I have a sister application that I built in VB 2010 that …

Member Avatar
Member Avatar
+0 forum 10

so... whats up with the x86 thing for 32 bit if 64 bit is x64? sorry for being so brief, im on a cell phone.

Member Avatar
Member Avatar
+0 forum 5

Hi i finally done my first project and thanks to those who help me here in daniweb. Special mentions @Reverend Jim and @TnTinMN. But when i run the setup to install it in another computer which is a 64bit. My project didnt connect to the database which is access. But when i install it in win xp it works fine.

Member Avatar
Member Avatar
+0 forum 5

I previously used 32bit Python 2.7 on Windows Vista. My new PC is Windows8 and 64 bit. I would like Python to work with Microsoft Office Excel. Is the best / simplest way forward to stick with 32 bit Python and 32 bit Excel? Can you mix 32 bit Python and 64 bit Excel?

Member Avatar
Member Avatar
+0 forum 3

I am compiling some source that is linked to two packages. One is OpenCV and the other is a driver library for an infrared camera. The company only provides a 32-bit version of the library via an rpm package. I compiled OpenCV from source and it's libraries are installed in /usr/local/lib64. I am running Fedora 18 64-bit version. Here is my CMakeLists.txt: CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(xeneth_test) SET(CMAKE_MODULE_PATH ${CMAKE_MODULES_PATH} /home/sam/Documents/common/CMakeModules) SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) SET(CMAKE_CXX_FLAGS "-m32") FIND_PACKAGE(Xeneth REQUIRED) INCLUDE_DIRECTORIES(${LIBXENETH_INCLUDE_DIRS}) FIND_PACKAGE(OpenCV REQUIRED) #GENERATE EXECUTABLES ADD_EXECUTABLE(myXenethTest src/myXenethTest.cpp) TARGET_LINK_LIBRARIES(myXenethTest ${XENETH_LIBRARIES} ${OpenCV_LIBS}) When I run make I get: Scanning dependencies of target myXenethTest [100%] Building CXX …

Member Avatar
Member Avatar
+0 forum 2

. Windows-7 - 32-bit upgrade to 64-bit - I have 32-bit Win-7 Home premium. Is there an UpGrade to Win-7 64-bit Home Premium or PRO - **without starting over and paying the full cost** to MicroSoft? . "Branded" versions of Win-7 PRO - these are sold at a much lower cost then the full system is advertised for. Question: Is this "branded" Win-7 **fully installable and usable** for my custom built desktop? . Any disadvantages in going this route? .

Member Avatar
Member Avatar
+0 forum 2

i need turbo c soft for 64 bit..

Member Avatar
Member Avatar
+0 forum 2

**Windows7 - UpGrade ???? I have Win7 Home Premium 32 bit - ordered by mistake - I want the 64 bit version** - or - **Professional 64 bit** - - for more memory use - Is there an **"UpGrade"** for Win7 I can purchase **without** starting over and **paying the full price**? .

Member Avatar
Member Avatar
+0 forum 3

I recently upgraded to Windows7,from Vista. When we opened the box, there were two discs. I wanted to install the 64bit version. When we inserted the disk into the drive it said it couln't install as there was Vista 32bit on the laptop. So after looking around in the Microsoft helps, and reading something about installing from the CD something clicked and so I looked up how to boot from the CD, so you hold the right "F" key when starting the computer. Then go into the "bios" to change the boot sequence. Then with the disk in the drive. …

Member Avatar
Member Avatar
+1 forum 4

type msinfo32 at the run option & press enter then watch carefully system type if it is written "X86-based PC" your processor is 32 bit & if "X64- then 64 bit processor

Member Avatar
Member Avatar
+0 forum 3

Hi I am Luka Mukhavele, a music researcher and performer from Mozambique. I enjoyed working with the xenyx 1204, as it gave me excellent results. However, after I upgraded my system to a windows 7, 64bit everything was over, as the the drivers were incompatible. Since then I have been trying to get the right drivers to use my xenyx, but I bave not been successful. Did anyone ever have any experience? If yes, how did you solve it? Looking forward Luka Mukhavele

Member Avatar
Member Avatar
+0 forum 1

I came across [this](http://www.daniweb.com/software-development/cpp/threads/189901/screen-capture-program) program in the C++ section. How to do something similar in C? Let me elaborate. I want to read the colour values of individual pixels in at the rate of at least about 25Hz. I have a nVidia GeForce GTS450 graphic card and Windows 7 64-bit/Linux Mint 13 64-bit dual booting. I want to write a C program which would perform the said task and pass the values continuously to an Arduino through the USB. I can handle the Arduino part. But how do I get the values in the first place? I know Windows 7 …

Member Avatar
Member Avatar
+0 forum 2

Hello guys, i'm trying to compute the area of a triangle using the Floating-Point stack (FPU87), but i'm having an issue outputting my value. I'm computing the area using Heron's formula: T = sqrt{s * (s - a ) * (s - b) * (s - c) } Note: s = (a+b+c) / 2 I'm outputting: s * (s - a ) * (s - b) * (s - c), from the FPU87 stack just to make sure it did the calculations correctly, but i'm getting "-nan". I know it means "not a number", but as a test I inputted …

Member Avatar
Member Avatar
+0 forum 2

Hey guys, I'm fairly new to assembly & i'm having trouble iterating through an array; i.e. increasing the index as I loop. I'm working under x86-64 in Linux using NASM. There doesn't seem to be much documentation on the 64-bit architecture. Also, the book i'm using seems to code all the examples in C, then disassembles the code into AT&T syntax assembly. Doesn't really help. Description of my code: After taking in the first input & moving it into slot 0 of the array, I ask if there's more input. If there is, I move into the loop. I think …

Member Avatar
Member Avatar
+0 forum 2

GUYs, pls help me in installing openCV in win7 64-bit, i downloaded opencv 2.3 its round about 141mb and it has some cmake files. i got it from here [url]http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.3.1/[/url] and i dont know how to proceed further?

Member Avatar
Member Avatar
+0 forum 1

Hi I have a number of problems trying to sort out a home network of two desktops one running Vista Home Premium another running XP Pro. There are also three laptops: two running XP Pro and one running Windows 7 64bit. All five PCs can access the Internet this is via a Belkin switch connected to a BT Hub. They are all using a Workgroup and have the same name "mshome" They are all visible to each other. The three laptops are connected wirelessly. I have set permissions on a large Pictures file on the Vista desktop so that everyone …

Member Avatar
Member Avatar
+0 forum 1

I am working on a laptop and the processor can support 64bit, but it is only 1.6Ghz (dual core). He said it has been running slow lately (I am sure it is mainly malware) but was trying to get him to put Linux like Ubuntu or Debian. (I am thinking about surprising him by putting Linux on there but how do I do the drivers (especially since there are SD card reader, webcam, etc. But I may go and just install windows 7 back onto it. Which would be better; the 64-bit OS and 4GB or 32-bit and 3GB of …

Member Avatar
Member Avatar
+0 forum 13

I'll prob post this thread in a couple places because of all the things it is and what its capable of...anything for help right? anyhow, here is my problem. I finally got Fallout: New Vegas, works fine but not for long, as soon as i go to start a game, hit new, it starts to load it and goes to BLUE SCREEN OF DEATH!!! yes, haven't had that damn thing in forever. apparently this has been a problem. a file going by the name of ksaudfl.sys, has been one of the instigators in this and there is Paging in a …

Member Avatar
Member Avatar
+0 forum 3

Help! I need to write some code for SIMD, 64-bit Intel X86. I am fluent with Masm; Where can I get a Masm version for 64-bit, and some documentation as to the changes in registers, changes in instructions set, etc? Anybody here has some experience with AVX ? any usefule sources and tips? Thanks

Member Avatar
Member Avatar
+0 forum 5

Hi I have a Dell Precision workstation 490 and increased the initial one GB ram (two 512MB sticks) to five by adding two 2GB sticks after I upgraded the op system to Windows 7 Pro 64bit and I have installed the most recent BIOS. There was no problem, the system recognized five GB of memory. I have bought two 4GB sticks and added them. The system in Setup now only recogizes nine GBs. I took all the memory out and reinserted the two 4GB sticks to check. The system reported no memory fitted! I took them out and reinserted the …

Member Avatar
Member Avatar
+0 forum 2

Hello all. I've previously created a working socket program in C in a 32-bit machine and now I have to transfer it to a 64-bit machine. May I ask if there is anything I have to change in my program to make it work in a 64-bit machine? I did some research on how to do it and from what I've learned, it seems like I'll have no problem transferring the program and make it work except for one function I used. I used [B]htons[/B] in my program in the 32-bit machine and it seems that it has a 64-bit …

Member Avatar
Member Avatar
+0 forum 1

The End.