|
|
|
| Т.е. скрипт вызывает динамические библиотеки, которые всвою очередь из программы выбрасывают страницы текста и т.д. | |
|
|
|
|
|
|
|
для: vik_away
(16.11.2004 в 10:54)
| | Может в этом случае проще обойтись CGI-программой (просто exe-модуль написанный на С/С++) и вообще не трогать PHP, для которого нужны достаточно специфические библиотеки...
Или вы хотите использовать W32API-функции? Это пример из мануала
<?php
// Define constants needed, taken from
// Visual Studio/Tools/Winapi/WIN32API.txt
define("MB_OK", 0);
// Load the extension in
dl("php_w32api.dll");
// Register the GetTickCount function from kernel32.dll
w32api_register_function("kernel32.dll",
"GetTickCount",
"long");
// Register the MessageBoxA function from User32.dll
w32api_register_function("User32.dll",
"MessageBoxA",
"long");
// Get uptime information
$ticks = GetTickCount();
// Convert it to a nicely displayable text
$secs = floor($ticks / 1000);
$mins = floor($secs / 60);
$hours = floor($mins / 60);
$str = sprintf("You have been using your computer for:" .
"\r\n %d Milliseconds, or \r\n %d Seconds" .
"or \r\n %d mins or\r\n %d hours %d mins.",
$ticks,
$secs,
$mins,
$hours,
$mins - ($hours*60));
// Display a message box with only an OK button and the uptime text
MessageBoxA(NULL,
$str,
"Uptime Information",
MB_OK);
?>
|
| |
|
|
|
|
|
|
|
для: cheops
(16.11.2004 в 11:10)
| | Нет именно PHP, скрипт должен вызвать функцию из динамической библиотеки (именно C++), передав ей определенный набор параметров. | |
|
|
|