Link to home
Start Free TrialLog in
Avatar of DaveThomasPilot
DaveThomasPilotFlag for United States of America

asked on

Build on Windows 7 Professional, Run on Windows 7 Home Premium

I have vs2010 on a Windows 7 machine and would like to build an application that will run on my Windows 7 Home Premium tablet (Acer Iconia).

I tried a "hello world":

#include <iostream>
int main()
{
	char buf[100];
	std::cout << "Hello World\n";
	gets(buf);
}

Open in new window


It runs on the Windows 7 machine, but on the tablet it is either aborting , or runs to completion.  The window opens and closes  so quickly I can't tell what's happening.

Maybe there's a dll I need on the tablet, but how do I tell what's missing?  Do I have to install a c/c++ runtime, or is that on all windows machines?

It's a 32 bit console application.

Thanks,

Dave Thomas
Avatar of DaveThomasPilot
DaveThomasPilot
Flag of United States of America image

ASKER

Trying the /Mt flag now...
Tried these pre-processor directives, but it din't fix:

WIN32;_DEBUG;_CONSOLE;_MT;%(PreprocessorDefinitions)
ASKER CERTIFIED SOLUTION
Avatar of DaveThomasPilot
DaveThomasPilot
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial