Click here to Skip to main content
15,885,366 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem in CeCreateProcess ? Pin
Le@rner24-May-09 22:16
Le@rner24-May-09 22:16 
AnswerRe: Problem in CeCreateProcess ? Pin
Randor 25-May-09 8:22
professional Randor 25-May-09 8:22 
GeneralRe: Problem in CeCreateProcess ? Pin
Le@rner25-May-09 18:59
Le@rner25-May-09 18:59 
GeneralRe: Problem in CeCreateProcess ? Pin
Randor 25-May-09 19:30
professional Randor 25-May-09 19:30 
GeneralRe: Problem in CeCreateProcess ? Pin
Le@rner25-May-09 19:33
Le@rner25-May-09 19:33 
GeneralRe: Problem in CeCreateProcess ? Pin
Randor 25-May-09 20:30
professional Randor 25-May-09 20:30 
GeneralRe: Problem in CeCreateProcess ? Pin
Le@rner25-May-09 23:15
Le@rner25-May-09 23:15 
GeneralRe: Problem in CeCreateProcess ? Pin
Le@rner26-May-09 18:40
Le@rner26-May-09 18:40 
I m adding aygshell.h and after using SHCloseApps function but one error occured.

error LNK2019: unresolved external symbol _SHCloseApps referenced in function "public: void __thiscall CTestDlg::Test_Func(void)" (?Test_Func@CTestDlg@@QAEXXZ)

//where Test_Func like this

CTestDlg::Test_Func(void)
{
    PROCESS_INFORMATION pi;
CString CMDdata;
    MEMORYSTATUS      MemStats;
    MemStats.dwLength  = sizeof(MEMORYSTATUS);

USES_CONVERSION;

    if (!CeCreateProcess(
            L"Test.exe",
            T2CW((LPCTSTR)CMDdata),
            NULL,
            NULL,
            FALSE,
            0,
            NULL,
            NULL,
            NULL,
            &pi))
    {	

			CeGlobalMemoryStatus((LPMEMORYSTATUS) &MemStats);
			
			if (MemStats.dwAvailPhys < MIN_MEMORY_TO_RUN)
			{
				if (!SHCloseApps(MIN_MEMORY_TO_RUN))		        
				{		        
					AfxMessageBox("Not free memory");
				}
				else
				{
					AfxMessageBox("free memory");
				}
			}

			CeRapiUninit();		

			
    }
    else
    {
	CeCloseHandle( pi.hProcess);
        CeCloseHandle( pi.hThread);
    }
        	
}


To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

GeneralRe: Problem in CeCreateProcess ? Pin
Randor 26-May-09 21:58
professional Randor 26-May-09 21:58 
GeneralRe: Problem in CeCreateProcess ? Pin
Le@rner26-May-09 22:21
Le@rner26-May-09 22:21 
QuestionGetting motherboard serial number Pin
Green Fuze24-May-09 21:40
Green Fuze24-May-09 21:40 
AnswerRe: Getting motherboard serial number Pin
Randor 25-May-09 8:12
professional Randor 25-May-09 8:12 
QuestionHow to set tab index. Pin
birajendu24-May-09 21:39
birajendu24-May-09 21:39 
AnswerRe: How to set tab index. Pin
sashoalm24-May-09 22:01
sashoalm24-May-09 22:01 
GeneralRe: How to set tab index. Pin
birajendu25-May-09 2:16
birajendu25-May-09 2:16 
AnswerRe: How to set tab index. Pin
Hamid_RT24-May-09 22:52
Hamid_RT24-May-09 22:52 
GeneralRe: How to set tab index. Pin
birajendu25-May-09 0:12
birajendu25-May-09 0:12 
QuestionGet Maximized SDI application Pin
Saleem Anwar24-May-09 21:15
Saleem Anwar24-May-09 21:15 
AnswerRe: Get Maximized SDI application Pin
Rajesh R Subramanian24-May-09 21:33
professionalRajesh R Subramanian24-May-09 21:33 
GeneralRe: Get Maximized SDI application Pin
Saleem Anwar25-May-09 1:15
Saleem Anwar25-May-09 1:15 
Questionstructure data to bytes conversion Pin
jalsa G24-May-09 21:02
jalsa G24-May-09 21:02 
AnswerRe: structure data to bytes conversion Pin
CPallini24-May-09 21:12
mveCPallini24-May-09 21:12 
GeneralRe: structure data to bytes conversion Pin
jalsa G24-May-09 21:23
jalsa G24-May-09 21:23 
GeneralRe: structure data to bytes conversion Pin
Cedric Moonen24-May-09 21:35
Cedric Moonen24-May-09 21:35 
GeneralRe: structure data to bytes conversion Pin
jalsa G24-May-09 22:45
jalsa G24-May-09 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.