none
There is an error when include atlbase.h RRS feed

  • Question

  • I create a project in Windows Driver->Applications->Empty Desktop Application for Drivers with VS2013

    #include <windows.h>
    #include <stdio.h>
    #include <atlbase.h> 
    #include <WiFiConnApi.h>
    
    int main()
    {
    	printf("11111111111111");
    	return 0;
    }


    It compiled successfully. When I run the .exe file, there is a EXIT CODE: -1073741511. There is nothing print.

    But if I comment the line #include <atlbase.h>

    #include <windows.h>
    #include <stdio.h>
    //#include <atlbase.h> 
    #include <WiFiConnApi.h>
    
    int main()
    {
    	printf("11111111111111");
    	return 0;
    }

    There is "11111111111111" printed and exit code is 0.

    How can I use the atlbase.h with no error?

    Monday, June 30, 2014 5:27 AM

All replies

  • Hi,

    According to your code and description, you have trouble with driver development. I will help you move to Windows Hardware WDK and Driver Development forum for a better support.

    And this link may be helpful for you.

    Building a Driver with the WDK

    May


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, July 1, 2014 7:46 AM
  • atlbase.h has no bearing here. How are you rubbing the exe? If on the command line, make sure you are running the exe you just built and not a stale older version

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, July 1, 2014 5:57 PM