J
James Hetfield
Hello
I'm new to C++.
I am trying to create a setup.dll in VS 2005. The samples in the SDK didnt
work for me:
=> removed the CAB-Project in it, then tried to build the DLL, I got:
1>------ Skipped Build: Project: SetupDLL ------
1>
========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ==========
I dont know why, tried from Smartphone WM 5 and PPC WM 5... the same...
So I have created an own project:
1. New Project = > Visual C++ => Smart Device => MFC Smart Device DLL
2. then I proceed like this here:
http://www.pocketpcdn.com/articles/setupdll.html
3. I added in the codeINSTALL_EXIT-Section:
between AFX_MANAGE_STATE(AfxGetStaticModuleState());
and
return codeINSTALL_EXIT_DONE;
the following:
PROCESS_INFORMATION pi = {0};
CreateProcess(TEXT("\\My Documents\\myapp.exe"), TEXT(""), NULL, NULL,
NULL, 0, NULL, NULL, NULL, &pi);
This is working! But: The DLL is 361KB big (!)
Why is this? What have I done wrong?
Thanks
James
I'm new to C++.
I am trying to create a setup.dll in VS 2005. The samples in the SDK didnt
work for me:
=> removed the CAB-Project in it, then tried to build the DLL, I got:
1>------ Skipped Build: Project: SetupDLL ------
1>
========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ==========
I dont know why, tried from Smartphone WM 5 and PPC WM 5... the same...
So I have created an own project:
1. New Project = > Visual C++ => Smart Device => MFC Smart Device DLL
2. then I proceed like this here:
http://www.pocketpcdn.com/articles/setupdll.html
3. I added in the codeINSTALL_EXIT-Section:
between AFX_MANAGE_STATE(AfxGetStaticModuleState());
and
return codeINSTALL_EXIT_DONE;
the following:
PROCESS_INFORMATION pi = {0};
CreateProcess(TEXT("\\My Documents\\myapp.exe"), TEXT(""), NULL, NULL,
NULL, 0, NULL, NULL, NULL, &pi);
This is working! But: The DLL is 361KB big (!)
Why is this? What have I done wrong?
Thanks
James