set up help, PLEASE

OK, two questions:

1. Is there a "getting started" guide that shows how to start a project WITHOUT the dotNET dependency

It seems as though the IDE wants to default to .NET

I followed this: http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx
where it describes setting up the PlatformSDK.
I followed it to a "T", and the part where it says:
"From the File menu, click New Project. In the New Project dialog box, expand the Visual C++ node in the Product Types tree and then click Win32. Click on the Win32 Console Application template and then give your project a name and click OK. In the Win32 Application Wizard dialog box, make sure that Windows application is selected as the Application type and the ATL is not selected. Click the Finish button to generate the project.

As a final step, you should test your project by clicking the Start button in the IDE or by pressing F5. Your Win32 application should build and run."

Yes it compiles and runs fine on my machine.

Well, guess what
I sent it to another machine, (all it is, is a window opening, mind you) the other machine pops up a window saying:
"This application failed to start because the application configuration is incorrect"

I don't want .NET

Anybody know whats going on here

2. Can an app made with the Windows Form Designer in C++ beta 2 be compiled without the .NET dependency so as to be able to run without someone getting the framework

Thanks in advance


Answer this question

set up help, PLEASE

  • adisesh

    Hi,

    What type of project are you using Be sure you are not using any projects from the CLR node. This would definitely require the framework to be installed. Also be sure that the /clr compiler option is disabled. using a /clr means that you are using framework objects.

    Also make use of the #pragma unmanaged directive of C++ to ensure that your code is in native format.

    If you're using the Windows Form Designer and not ATL, MFC or Win32 then a framework would be required for the form designer uses the forms v2 objects found in the framework...

     

     

    cheers,

    Paul June A. Domag



  • Barden

    The text bos in my first post, quoted from the C++ Express Beta 2 site, is how I am starting the project.
    Also be sure that the /clr compiler option is disabled. using a /clr means that you are using framework objects.

    Where is this setting located
    I right clicked on the project name and went through the properties dialog there, but found nothing about this "/clr" of which you speak.
    Also make use of the #pragma unmanaged directive

    So, I should place " #pragma unmanaged " at the top of the *.cpp (or the *.h)
    Should I remove the " #pragma once " from the *.h file

    Now the last bit about the form designer...I understand. Windows Form Designer means .NET is required.

    However, am I correct in my understanding that MFC and ATL are mot available in the Express Beta 2 editions
    Or has this been changed

    Thanks.

    btw, I gotta say, the page I linked to in the first post describing how to set up a win32 app is a bit misleading, since indeed there are other things involved.

    EDIT: searching for "clr", "compiler options", and even "compiler" in the help dialog returned 0 results. Switching to "Online help" resulted in an error that tried to say I wasn't connected. Hmmm.

  • Don McCrady

    Hi,

    Ok, I missed the point that you were using C++ Express edition. MFC is indeed not included in the express edition. So, if your targeting winforms, you'll have no choice but to include the framework in your installation. Or simply require the user to install it.

    The new WinForms designer is entirely for the C++/CLI which requires the .net framework...

    If you want your winapps to be framework free. Then you'll have to go back to the old trusted MFC or ATL. Yet it is not included, even in the platform SDK. you'll have to upgrade to VS professional upwards...

     

    cheers,

    Paul June A. Domag



  • SluggoBear

    OK, I can deal without having the Windows forms designer or mfc, for the time being.

    However, now seem to need a DLL along with the app. Specifically, MSVCR80D.dll.
    This is the debug version of the dll, yes
    Please tell me that if I compile it as a "release" instead of debug, I won't need to send anything else along withthe app to the target machine.
    If there is a *.dll to send along, what would that be

    Just want it to be a stand alone, no creepy dependcies window.
    So far all this is, is just a window.


    Secondly, since I'm driving all of this towards a simple menu, I tried Visual Basic.
    Umm...hidden way to make it non-.NET

  • Shwnew

    Hi,

    The only secret to make an application as non-.net is to never use any dll that's .net based. never use ref classes, native .net types such as string, also never use the caret (^) for that is also a .net framework dependent. Just use your plain old native C++ functionalities and your on the go.

    BTW, don't create a setup project in VC++ Express (if its available) coz the deployment project in the express products also uses the .net technology...

     

    cheers,

    Paul June A. Domag



  • richardtearle

    ok I found the bit for the "Common Runtime Language Support" and it is indeed set to "No Common Language Runtime Support"
    So I should be good there.

    Why might it not roll on another machine then
    Are there no DLLs I need to supply

    Any word on grooving with the MFC since I have the PlatformSDK installed

    Thanks.

  • set up help, PLEASE