Link to home
Start Free TrialLog in
Avatar of sptech
sptech

asked on

Visual Basic 2008 64-bit application

I wrote a program in VB2008 using a Vista 64-bit system.  I want to deploy my app on an xp machine 32-bit.  I tried xcopy, but nothing happens.  Is there something I should have done with my application to ensure it works in the 32bit world?
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

you have to chose the 32bit as target when compiling.
the 64 compilation will not work as is on a 32 bit machine
is the .Net Framework 3.5 correctly installed on the XP machine?
Avatar of sptech
sptech

ASKER

yes the .net framework 3.5 is instaled on the xp machine.  How do I choose 32bit as target?
Avatar of sptech

ASKER

I looked at the advanced options and I am set to an x86 cpu.  Should this not mean I am 32bit?
you mean, after the xcopy, when you double-click, nothing happens?
does the process not even show up in the task manager?
Avatar of sptech

ASKER

Yes, I get the hour glass for about 3 seconds and then nothing.  I had not checked the task manager, but I will.
yes x86 is the way to go. You should also select "Any CPU".

Could you also add some MessageBox (or other tracing statements) so that you know exactly where the application stops (use of a resource, a 3rd party, database connection, ...)
Avatar of sptech

ASKER

Okay, I will give that a try.
Avatar of sptech

ASKER

I got the application to launch.  I installed VB2008 on my xp machine did a build and used xcopy. I am getting an error that does not show up when I run the application through VB2008, but does show up when I run the executable.
error-message-1.gif
that is a coding error, usually some situation the code is not prepared to.
like, trying to get the data of a column that is not in that table/database ...
Avatar of sptech

ASKER

I thought of that or that I was using a reserved word (in access).  I looked over my columns in the DB and in the application.  I have a yes/no column and in my code I have a " " in case nothing is marked for the column could that be my issue?

txtLName.Text = Recordset.Fields("Lname").Value
        txtFName.Text = Recordset.Fields("fname").Value
        txtPinNum.Text = Recordset.Fields("pin").Value
        txtPhone.Text = "" & Recordset.Fields("phone number").Value
        txtMI.Text = "" & Recordset.Fields("mname").Value
        txtEmail.Text = Recordset.Fields("email").Value
        txtDCExp.Text = Recordset.Fields("date_cert_expires").Value
        txtChal.Text = "" & Recordset.Fields("challenge_phrase").Value
        txtMemo.Text = "" & Recordset.Fields("nmemo").Value
        chbWAH.Checked = "" & Recordset.Fields("work_at_home_or_laptop").Value
ASKER CERTIFIED SOLUTION
Avatar of sptech
sptech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial