ինչպես կարելիյա կոնսոլնի ծրագրից բացել պատուհան
օրինակ գրեմ open.exe -c:/program file ու program file-ի պատուհանը բացվի
ինչպես կարելիյա կոնսոլնի ծրագրից բացել պատուհան
օրինակ գրեմ open.exe -c:/program file ու program file-ի պատուհանը բացվի
եղավ![]()
ինչիցա որ windows.h գրադարանը օգտագործելուց ծրագիրը շխատումա միայն
այն կոմպերի վրա որտեղ կա visual studio ?
օրինակ ես ծրագիրը
Կոդ:#include <windows.h> #include <stdio.h> #include <tchar.h> void _tmain( int argc, TCHAR *argv[] ) { STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); if( argc != 2 ) { printf("Usage: %s [cmdline]\n", argv[0]); return; } // Start the child process. if( !CreateProcess( NULL, // No module name (use command line) argv[1], // Command line NULL, // Process handle not inheritable NULL, // Thread handle not inheritable FALSE, // Set handle inheritance to FALSE 0, // No creation flags NULL, // Use parent's environment block NULL, // Use parent's starting directory &si, // Pointer to STARTUPINFO structure &pi ) // Pointer to PROCESS_INFORMATION structure ) { printf( "CreateProcess failed (%d)\n", GetLastError() ); return; } // Wait until child process exits. WaitForSingleObject( pi.hProcess, INFINITE ); // Close process and thread handles. CloseHandle( pi.hProcess ); CloseHandle( pi.hThread ); }
Ուրիշ կոմպիլյատոր օգտագործի (Օրինակ՝ MinGW, CodeBlocks IDE-ով (www.codeblocks.org), կամ Open Watcom), կամ էլ էդ կոմպյուտերների վրա պետքա «Microsoft Visual C++ Redistributable Package»–ը ինստալ անես որ աշխատի՝
Microsoft Visual C++ 2005 Redistributable Package (x86)
Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2005 Redistributable Package (x64)
Microsoft Visual C++ 2008 Redistributable Package (x64)
Microsoft Visual C++ 2008 Redistributable Package (x86)
իսկ պատճառը որնա ?
Չգիտեմ, փորձիր եթե ուզում ես, կգրես աշխատումա, թե՝ չէ։ուրեմն վիստայի տակ կաշխատի ?
Ու–հուկամել պետքա 2001 թվի վիսւալ օգտագործեմ![]()
vista i tak kashxati bayc senc ban asem, ete uzumes XP i tak ashxati aveli hesht cev ka, aranc voreve ban instal anelu, parzapes cragir@ stexceluc 1 qaylum nshi ""use MFC in a static library""
ete iharke MFC-ov es satqum, u mekel cankalia kampilacian "RELEAS"-ov anes voch te Otladchikov(Debug).
Այս պահին թեմայում են 1 հոգի. (0 անդամ և 1 հյուր)
Էջանիշներ