Advertisement
dllbridge

Подключение к "UniMons.exe"

Dec 25th, 2021
1,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.65 KB | None | 0 0
  1. /*
  2. Эти библиотеки уже подключены в файле <dllBridge.h>
  3. - - - - - - - - - - - - - - - - - - - - - - - - - -
  4. #include       <stdio.h>
  5. #include      <string.h>
  6. #include      <locale.h>       Кириллица уже подключена.
  7. #include     <windows.h>
  8. */
  9. #include   <dllBridge.h>
  10.  
  11.  
  12.  
  13.  
  14. // Демонстрация подключения для языка Си
  15. ///////////////////////////////////////////////////////////////////////////////
  16. int main()                                                                   //
  17. {
  18.    
  19.     int res = dllBridge("C:\\dllBridge");                                    //         Путь, где лежит dllBridge.dll
  20.     if( res < 1) printf("%s   \n", szWLError);                               // Печатается причина ошибки подключения.
  21.     else         printf("Successfully connected to \"dllBridge.dll\"\n");
  22.                                                                                  
  23.     printf("Номер Вашей программы, по умолчанию = %d\n", ProgramNumber);
  24.    
  25.     for(int i = 4; i < 25; i += 2)                                           //       Подождём 20 секунд и отключимся.
  26.     {
  27.         Sleep(1000);
  28.         Transit[3][i] = 1000 + i ;          //  Содержимое этого массива просматривайте, через программу "UniMons.exe"
  29.         printf("%d\n",  1000 + i);     
  30.     }
  31.    
  32.    
  33.   __DisConnect(ProgramNumber);   printf("\t   Отключились от \"dllBridge.dll\"");                                                
  34.  
  35. return 0;  
  36. }
  37.  
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement