Re: VB6 Application Configuration

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Danny (dansacsinc.com_at_newsgroup.nospam)
Date: 01/27/05


Date: Wed, 26 Jan 2005 19:15:02 -0800

Yes - I am initializing the common controls. I did however find my problem.
It turns out that the manifest I used had 3 garbage characters at the
beginning of the file.

For some reason they did not cause a problem when the program was compiled
on XP but did when compiled on Windows 2000. I recreated the resource file
from the corrected manifest and the program now compiles and works from
windows 2000.

Thank you.

Danny

"alpine" wrote:

> On Wed, 26 Jan 2005 17:45:02 -0800, "Danny"
> <dansacsinc.com@newsgroup.nospam> wrote:
>
> >I recently added xpstyles to my vb6 applications. I am using a resource file
> >that includes the manifest. My development computer is xp pro using vb6 sp6.
> > Applications compiled on this computer run fine on xp, 2003, 2000 and 98.
> >If I take my source code and recompile the application on my laptop running
> >windows 2000, it compiles correctly and runs on the 2000 machine. It however
> >receives an error when it runs on windows XP. I get "This application has
> >failed to start because the application configuration is incorrect.". If I
> >recompile the application on my xp computer, it runs ok on XP and 2000.
> >
> >I have verified that the ocx's that I use are the same version on both
> >computers. I suspect it has something to do with the resource file's
> >manifest information. There is very little information on the web regarding
> >this error.
> >
> >Can anyone point me in the right direction? I would like to be able to
> >compile my source on my lap and get the same results as my xp computer.
>
>
> Are you initializing the common controls library before loading any
> forms?
>
> HTH,
> Bryan
> ____________________________________________________________
> New Vision Software "When the going gets weird,"
> Bryan Stafford "the weird turn pro."
> alpine_don'tsendspam@mvps.org Hunter S. Thompson -
> Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
>



Relevant Pages

  • Re: MFC and common controls 6
    ... David Webber wrote: ... he edited the manifest resource in my exe to make common controls 6 display buttons etc in XP/Vista style. ... I don't use dockable toolbar in my apps so I never noticed this when I added common control manifest to my VC6 apps. ...
    (microsoft.public.vc.mfc)
  • Re: XP theme and window creation failures
    ... > same one without manifest. ... common controls) are in the common controls dll. ... As for why you can sometimes get away with not calling InitCommonControls ...
    (microsoft.public.win32.programmer.ui)
  • Re: ListView in mscomctl.ocx
    ... comctl32.ocx uses the functions in Windows common controls DLL, ... Windows 98/NT4 common controls, and does not use or rely on the Windows DLL ... if I us the controls from comctl32.ocx and Wright a manifest for the exe I ...
    (microsoft.public.vb.controls)
  • Re: Manifest, VC 6 vs 2003 vs 2005?
    ... > I've added a manifest file to my app so it compiles with VC6 and still ... The cpp compiler has nothing to do with resources. ...
    (microsoft.public.vc.mfc)
  • Re: Determining Win XP vs. Classic styles
    ... :> themed" APIs do not reflect the case where theming is turned on via a ... :> program manifest. ... a VB6 point of view) it won't work on VB6 common controls, ...
    (microsoft.public.vb.winapi)