JonathanKing
Sun Apr 09 14:20:02 CDT 2006
Ok, well I am going to go off the assumption that my system has been screwed
by visual studio. A google search tells me that I did not uninstall the
components in the correct order. One page that I found told me that if I do
not uninstall the .NET framework beta last, I will "not be a very happy
person." Well, I am there right now. Are there any tools that will help me
completely clean my system of Visual Studio?
"Jonathan King" wrote:
> That will not build either. First it gets stuck saying that it cannot link to
> aygshell.lib. So I tried including aygshell.h. Then it complained that it
> couldn't find aygshell.h. So I copied that header file over to my project
> directory. Then I even had to put in the entire path of the file in the
> include statement to get past that. Now it is saying:
> Compiling...
> Real.cpp
> C:\Documents and Settings\Paul King\My
> Documents\Dev\proj\RealHello\aygshell.h(23) : fatal error C1083: Cannot open
> include file: 'winuserm.h': No such file or directory
> Error executing cl.exe.
> C:\Documents and Settings\Paul King\My
> Documents\Dev\proj\RealHello\aygshell.h(23): Could not find the file
> winuserm.h.
> C:\Documents and Settings\Paul King\My
> Documents\Dev\proj\RealHello\aygshell.h(26): Could not find the file
> vibrate.h.
> Must just be a bad install. Perhaps Kerstin is correct. It installed fine on
> my other computer. I'll just have to put up with using the old slow laptop
> for now. Thank you for everyone's continuing help. Your effort is much
> appreciated.
>
> Jonathan King
>
> "Lao K" wrote:
>
> > Your HelloWorld is still too much for a real "hello world". How about
> > this?
> > - create a new project from scratch
> > - do not ask the wizard to create anything (choosing "Empty Project")
> > - Write the following TRUE helloworld.cpp. No header file, not resource
> > file. Just a CPP.
> > - build to see whether it works.
> >
> > #include <windows.h>
> >
> > // a unique String as a mutex
> > TCHAR* g_szMutex = TEXT("HelloWorld");
> > // WinMain
> > int WINAPI WinMain(
> > HINSTANCE hInstance,
> > HINSTANCE hPrevInstance,
> > LPSTR lpCmdLine,
> > int nCmdShow)
> > {
> > // We only allow one instance to run
> > const HANDLE hMutex = CreateMutex(NULL, false, g_szMutex);
> > if (GetLastError() == ERROR_ALREADY_EXISTS) {
> > goto Exit;
> > }
> >
> > {
> > MessageBox(NULL, TEXT("Hello World!"), TEXT("Demo"),
> > MB_ICONINFORMATION|MB_OK|MB_SETFOREGROUND|MB_OK);
> > }
> >
> > Exit:
> >
> > CloseHandle(hMutex);
> > ReleaseMutex(hMutex);
> >
> > return 0;
> > }
> >
> >
> > ---
> > Lao K
> > Windows Mobile Pocket PC Smartphone Programming Hints and Tips
> >
http://windowsmobilepro.blogspot.com
> >
> >