VisualStudio2005 fails to create SmartDevice MFC apps but works fine with c#

I have VisualStudio 2005 "Standard Edition" and the Windows Mobile 5.0 installed. I can create c# SmartDevice applications fine. I have evc3.0 and evc4.0 installed on my machine too which work fine.

When I try to create any C++ Smart Device applications, I get a "Line 4033" "Object Required" "Do you wish to debug" error in my IDE.

When I click "Debug" and try to debug in Visual Studio 2005 I notice the following:

File : Common.js

Function: ConstructClassName

Line: var bValid = (window.external.dte.VCLanguageManager.ValidateIdentifier(strCandidate).....

window.external.dte is null.

I reinstalled the SDK but no use.

Any suggestions

 

 




Answer this question

VisualStudio2005 fails to create SmartDevice MFC apps but works fine with c#

  • sally_de

    I've recently posted exactly the same prob in microsoft.public.vstudio.development !!!

    My problems are exactly as described here.

    The registry HACK fixes it.

    Thank you very much Surya for a nice clear post.

    (I have no idea how you found Gangadhar's post though :-( )


  • Bartosz

    That registry addition fixed it for me.

    1. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\PreApproved
    2. Add a new entry and name it
    3. {D245F352-3F45-4516-B1E6-04608DA126CC}

    That is I have IE7 installed.

    Cheers


  • Wee Bubba

    It is IE7's fault.

    Finally when I uninstalled IE7 everything started working.

    SmartDevice C++ team, please make a note of this. If it is a known issue then, how can we make sure that this is communicated properly to the developers

    What is the fix for this I want to use both IE7 and VS2005.

     Alternately I found the following in a different post by Gangadhar:

    Note that This has been fixed in Whidbey SP1, however mean while you can have the following as a workaround.

    1. Close VS
    2. Start RegEdit.exe
    3. Find the following registry entry:
    4. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\PreApproved
    5. Add a new entry and name it
    6. {D245F352-3F45-4516-B1E6-04608DA126CC} 
    7. Close RegEdit
    8. Start VS
    9. Try and create a Smart Device C++ project


    Thanks,
    Gangadhar

    Thanks,

    Surya



  • Minherz

    I get a similar error on 2 systems and not on a third.

    When I try to create any C++ SD project, VS beeps, shows and error in the status bar and goes back to specifying the project files location.

    No evc 2,3 on my system. Have evc 4.


  • Rich Steck

    I can import eVC 4.0 projects. So I guess the Wizard files are setup incorrectly. But what would cause that I ran the Windows Mobile 5.0 SDK setup and performed both the uninstall/reinstall and repair. No use.

    How can I setup the VisualStudio to recognize the wizrd files

    Surya.



  • VisualStudio2005 fails to create SmartDevice MFC apps but works fine with c#