Solved

Using VB6 application with Win32 API calls on Win 7 64-bit system

Posted on 2012-03-16
4
923 Views
Last Modified: 2012-03-19
I am having difficulites installing and running custom VB6 applications on win7 64-bit system.
The application was built and deployed using package and deployment wizard.  It uses win 32 API calls to read an initialization file and logon to an odbc database.  The installation appears to go correctly but when running the application it does not seem to read the initialization file and errors ensue.

What am I missing in this scenario
0
Comment
Question by:lambauto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
ID: 37731677
Where is the location of the ini file?
0
 

Author Comment

by:lambauto
ID: 37737754
The ini file is in the program files(x86)/appname/appname.exe  directory.
0
 
LVL 15

Expert Comment

by:eemit
ID: 37737824
Hi lambauto,
according to microsoft:
"Applications should be installed to the Program Files folder by default.
User data or application data must never be stored in this location because
of the security permissions."

The best place to store application configuration data is AppData folder (CSIDL_APPDATA...).
Create subfolders below them for your data.
You'd first create a folder with your company name, then a subfolder below that
with the product name. You can create a further subfolder for each subsequent version.
Put your ini file in that folder.
0
 

Author Comment

by:lambauto
ID: 37738620
Thank you for your help.  This is a really old application and the ini file was in the path deemed appropriate at the time it was written.  You were correct in that the ini file could not be written to by the kernel because of the new security.  I placed the application in a different location and everything went fine.

Thanks for getting me to think about the ini file it was the key.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question