Running a VB6 program under XP without Compatibility Mode

I  am programming in VB6, SP6 under Win XP Pro.  My program runs fine in the IDE but when I make an EXE and try to run that, all I get is a Bong sound and nothing else.  Also, the program runs fine in Win 95/98/ME.  I haven't tried on WIn 2000.

If I set the EXE to run in Compatibility Mode, it works fine.

I've tried to display a MessageBox as the very first action (Sub Main) but that won't display so, it appears that the problem is in loading.

I will be most appreciative for any suggestions.

cncfocus
cncfocusAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Erick37Commented:
What do you mean by Compatibility Mode?
0
cncfocusAuthor Commented:
Win XP provides a Compatibility Mode for running legacy programs.  That is one of the Properties of the executable file.

1. Right click on the EXE file name
2. Click Properties
3. Click the Compatibility tab
4. Select Win 98/ME from the drop-down list
0
iHadiCommented:
Hi

Is this problem happening with any program you write or with this specific program
Are you using any external apis or components
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

cncfocusAuthor Commented:
It's just happens to this program.  Yes, I'm using some API's.  I have checked the components version numbers against the components in other programs that run OK and they are the same.

Is there some place on the net where I could find incompatibility information on the API's?
0
Erick37Commented:
Are you using the API through a Type Library reference, or from Declare statements?

0
iHadiCommented:
you can visit the following site to view api list with coments and compability and examples on all apis in visual basic

www.allapi.net
0
iHadiCommented:
If you can post the api's you're using we might help
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cncfocusAuthor Commented:
The following API's are declared in this program.

BitBlt
CallWindowProc
CloseClipboard
CloseHandle
CopyFile
CopyMemory
CreateCompatibleBitmap
CreateCompatibleDC
CreateSolidBrush
DeleteFile
DeleteObject
EmptyClipboard
ExpandEnvironmentStrings
FillRect
FindWindow&
FormatMessage
GetLongPathName
GetShortPathName
GetSystemDirectory
GetVersionEx
GetVersionExA
GetVolumeInformation&
GetWindowLong
GetWindowsDirectory
InternetGetConnectedState
keybd_event
LockWindowUpdate
OpenClipboard
OpenProcess
PlaySound
RegCloseKey
RegCreateKey
RegDeleteKey
RegDeleteValue
RegEnumValue
RegOpenKey
RegOpenKeyEx
RegQueryValueEx
RegSetValue&
RegSetValueEx
SelectObject
SendMessage
SetBkColor
SetClipboardData
SetParent
SetWindowLong
SetWindowPos
ShellExecute
ShellExecute
SHGetFileInfo
ShowCursor
Sleep
WaitForSingleObject

0
Erick37Commented:
Did you find the problem?
0
cncfocusAuthor Commented:
Yes, I posted a note before.  I don't know what happened to it.

The problem was a couple of 3rd party controls (cmax20.ocx and sptbdock.ocx) that are not Manifest compatible.  When I remove the Manifest file, everything works OK except I don't get the XP buttons, scroll bars, etc.

I'll look for replacements for these controls.

I split the points.

Thanks,
cncfocus
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.