Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3861 connectés 

 


 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  51  52  53  ..  189  190  191  192  193  194
Auteur Sujet :

[Topic Outil] sauvegardez le contenu de votre presse papier

n°1274238
KangOl
Profil : pointeur
Posté le 28-12-2005 à 22:39:02  profilanswer
 

Reprise du message précédent :
http://www.glassalchemyarts.com/me [...] es/161.jpg


---------------
Nos estans firs di nosse pitite patreye...
mood
Publicité
Posté le 28-12-2005 à 22:39:02  profilanswer
 

n°1274255
nraynaud
lol
Posté le 28-12-2005 à 23:18:48  profilanswer
 

p_boundHolder

n°1275494
Raistlin M​ajere
i bouh at you !
Posté le 01-01-2006 à 03:44:34  profilanswer
 
n°1275500
the real m​oins moins
Posté le 01-01-2006 à 05:23:16  profilanswer
 

nitpicking |?nit?piki ng | informal adjective looking for small or unimportant errors or faults, esp. in order to criticize unnecessarily : a nitpicking legalistic exercise. noun such fault-finding : nitpicking over tiny details.


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1275501
the real m​oins moins
Posté le 01-01-2006 à 05:23:27  profilanswer
 
n°1275547
Arjuna
Aircraft Ident.: F-MBSD
Posté le 01-01-2006 à 14:21:19  profilanswer
 


500 Servlet Exception
 
europe.db.exceptions.DatabaseManagerException:  (class java.sql.SQLException)
: Data source rejected establishment of connection,  message from server:
"Host 'lmweb0206.st1.spray.net' is blocked because of many connection errors.
Unblock with 'mysqladmin flush-hosts'"
 at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:639)
 at com.mysql.jdbc.Connection.createNewIO(Connection.java:1774)
 at com.mysql.jdbc.Connection.<init>(Connection.java:440)
 at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:400)
 at com.caucho.sql.XADataSourceAdapter.getXAConnection(XADataSourceAdapter.java:119)
 at com.caucho.sql.XADataSourceAdapter.getPooledConnection(XADataSourceAdapter.java:141)
 at com.caucho.sql.DBPool.createDriverConnection(DBPool.java:1475)
 at com.caucho.sql.DBPool.createConnection(DBPool.java:1417)
 at com.caucho.sql.DBPool.getPooledConnection(DBPool.java:1353)
 at com.caucho.sql.DBPool.getConnection(DBPool.java:1203)
 at com.caucho.sql.DBPool.getConnection(DBPool.java:1177)
 at europe.db.manager.CommonDatabaseManager.getConnection(Unknown Source)
 at europe.db.manager.CommonDatabaseManager.executeQuery(Unknown Source)
 at europe.db.manager.CommonDatabaseManager.executeQuery(Unknown Source)
 at europe.db.manager.CommonDatabaseManager.executeQuery(Unknown Source)
 at europe.db.service.DatabaseService.executeQuery(Unknown Source)
 at europe.db.service.EBillingDatabaseService.hasActiveOption(Unknown Source)
 at _app._common._error._error__jsp._jspService(/app/common/includeslight.jsp:373)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
 at com.caucho.jsp.Page.subservice(Page.java:506)
 at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
 at com.caucho.server.http.Invocation.service(Invocation.java:315)
 at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:222)
 at com.caucho.jsp.QPageContext.handlePageException(QPageContext.java:648)
 at _app._ads._lii__jsp._jspService(_lii__jsp.java:889)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
 at com.caucho.jsp.Page.subservice(Page.java:506)
 at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
 at com.caucho.server.http.Invocation.service(Invocation.java:315)
 at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
 at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
 at java.lang.Thread.run(Thread.java:595)
 
Resin 2.1.13 (built Thu Apr 1 10:57:42 PST 2004)


 
C'est ce que ça me dit quand je veux aller voir mes mails caramail :o

n°1275602
Raistlin M​ajere
i bouh at you !
Posté le 01-01-2006 à 19:00:44  profilanswer
 

Dormir en sécurité, gratis


---------------
Слава Україні  Feedback
n°1275649
Talladega
Transcendance
Posté le 01-01-2006 à 21:54:10  profilanswer
 

Output format: 44100 Hz, 16 bits per sample, 2 channels
Active buffer size: 2000 ms (352800 bytes)
Device: "Périphérique audio principal"
Mixing: hardware, primary buffer: inactive
 
Buffer playback cursor: 245808 bytes
[=============================================#==================]
Buffer write cursor: 206860 bytes
[======================================#=========================]
 
Data buffered:
Total: 1965 ms (346608 bytes)
Async buffer: 186 ms (32756 bytes)
 
Buffer locks done: 501
Underruns: 0
Time played: 1:03.393 (11182608 bytes)
Time written: 1:05.358 (11529216 bytes)
Total time played: 1w 5d 11:42:37.807
Volume: 0.000000 dB / 0.000000 dB


---------------
Le topic de la Scandinavie | last.fm
n°1275663
red factio​n
Posté le 01-01-2006 à 23:22:24  profilanswer
 

Code :
  1. //------------------------------------------------------------------------
  2. //
  3. // Author      : Jan Horn
  4. // Email       : jhorn@global.co.za
  5. // Website     : http://home.global.co.za/~jhorn
  6. // Date        : 14 April 2001
  7. // Version     : 1.0
  8. // Description : Specular Highlighting on a non-textured torus
  9. //
  10. //------------------------------------------------------------------------
  11. program Specular;
  12. uses
  13.   Windows,
  14.   Messages,
  15.   OpenGL,
  16.   math,
  17.   glExt;
  18. const
  19.   WND_TITLE = 'Specular Highligting by Jan Horn';
  20.   FPS_TIMER = 1;                     // Timer to calculate FPS
  21.   FPS_INTERVAL = 1000;               // Calculate FPS every 1000 ms
  22. var
  23.   h_Wnd  : HWND;                     // Global window handle
  24.   h_DC   : HDC;                      // Global device context
  25.   h_RC   : HGLRC;                    // OpenGL rendering context
  26.   keys : Array[0..255] of Boolean;   // Holds keystrokes
  27.   FPSCount : Integer = 0;            // Counter for FPS
  28.   ElapsedTime : Integer;             // Elapsed time between frames
  29.   // Textures
  30.   MyTextureTex : glUint;
  31.   // Other vaiables
  32.   TorusDL : glUint;
  33.   SeperateSpecular : Boolean;       // if Seperate Specular is Enabled
  34.   Segments : Integer;               // quality of torus
  35.   // Lights
  36.   LightPos : Array [0..3] of GLfloat = (0.0, 0.0, 0.0, 1.0);
  37.   MatDiffuse : Array [0..3] of GLfloat = (0.1, 0.8, 0.8, 1.0);
  38.   MatSpecular: Array [0..3] of GLfloat = (1.0, 1.0, 1.0, 1.0);
  39.   MatShine   : GLfloat = 50.0;
  40. {$R *.RES}
  41. procedure glBindTexture(target: GLenum; texture: GLuint); stdcall; external opengl32;
  42. {------------------------------------------------------------------}
  43. {  Function to convert int to string. (No sysutils = smaller EXE)  }
  44. {------------------------------------------------------------------}
  45. function IntToStr(Num : Integer) : String;  // using SysUtils increase file size by 100K
  46. begin
  47.   Str(Num, result);
  48. end;
  49. {------------------------------------------------------------------}
  50. {  Function to draw a torus         (code by Jason Allen)          }
  51. {------------------------------------------------------------------}
  52. procedure CreateTorus(TubeRadius, Radius : GLfloat; Sides, Rings : Integer);
  53. var I, J : Integer;
  54.     theta, phi, theta1 : GLfloat;
  55.     cosTheta, sinTheta : GLfloat;
  56.     cosTheta1, sinTheta1 : GLfloat;
  57.     ringDelta, sideDelta : GLfloat;
  58.     cosPhi, sinPhi, dist : GLfloat;
  59. begin
  60.   sideDelta := 2.0 * Pi / Sides;
  61.   ringDelta := 2.0 * Pi / rings;
  62.   theta := 0.0;
  63.   cosTheta := 1.0;
  64.   sinTheta := 0.0;
  65.   TorusDL :=glGenLists(1);
  66.   glNewList(TorusDL, GL_COMPILE);
  67.     for i := rings - 1 downto 0 do
  68.     begin
  69.       theta1 := theta + ringDelta;
  70.       cosTheta1 := cos(theta1);
  71.       sinTheta1 := sin(theta1);
  72.       glBegin(GL_QUAD_STRIP);
  73.         phi := 0.0;
  74.         for j := Sides downto 0 do
  75.         begin
  76.           phi := phi + sideDelta;
  77.           cosPhi := sign(cos(phi))*power(abs(cos(phi)),0.1);
  78.           sinPhi := 0.2*sign(sin(phi))*power(abs(sin(phi)),0.1);
  79.           dist := Radius + (TubeRadius * cosPhi);
  80.                                    //abs(cos(phi*2))    '(0.2+ 0.8*abs(sin(phi))* cos(theta1-Pi/4)
  81.           glColor3f((0.2+ 0.8*abs(sin(phi))) ,0.0,0.0);
  82.           //glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi, sinPhi);
  83.           glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, TubeRadius * sinPhi);
  84.           //glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi);
  85.           glVertex3f(cosTheta * dist, -sinTheta * dist, TubeRadius * sinPhi);
  86.         end;
  87.       glEnd();
  88.       theta := theta1;
  89.       cosTheta := cosTheta1;
  90.       sinTheta := sinTheta1;
  91.     end;
  92.   glEndList();
  93. end;
  94. {------------------------------------------------------------------}
  95. {  Function to draw the actual scene                               }
  96. {------------------------------------------------------------------}
  97. procedure glDraw();
  98. begin
  99.   glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT);    // Clear The Screen And The Depth Buffer
  100.   glLoadIdentity();                                       // Reset The View
  101.   glTranslatef(0.0,0.0,-14);
  102.   //glRotatef(ElapsedTime/20, 1, 0, 0);
  103.   //glRotatef(ElapsedTime/16, 0, 1, 0);
  104.        glRotatef(-55, 1, 0, 0);
  105.   glCallList(TorusDL);
  106. end;
  107. {------------------------------------------------------------------}
  108. {  Initialise OpenGL                                               }
  109. {------------------------------------------------------------------}
  110. procedure glInit();
  111. begin
  112.   glClearColor(1.0, 1.0, 1.0, 0.0);     // Black Background
  113.   glShadeModel(GL_SMOOTH);                 // Enables Smooth Color Shading
  114.   glClearDepth(1.0);                       // Depth Buffer Setup
  115.   glEnable(GL_DEPTH_TEST);                 // Enable Depth Testing
  116.   glDepthFunc(GL_LESS);             // The Type Of Depth Test To Do
  117.   glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);   //Realy Nice perspective calculations
  118.   // Turn on OpenGL lighting
  119.   //glEnable(GL_LIGHTING);
  120.   // Create a light
  121.   glLightfv(GL_LIGHT0, GL_POSITION, @LightPos);
  122.   glEnable(GL_LIGHT0);
  123.   glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, @MatDiffuse);
  124.   glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, @MatSpecular);
  125.   glMaterialfv(GL_FRONT_AND_BACK, GL_SHININESS, @MatShine);
  126.   SeperateSpecular :=FALSE;
  127.   Segments :=256;
  128.   CreateTorus(2, 3, Segments, Segments);
  129. end;
  130. {------------------------------------------------------------------}
  131. {  Handle window resize                                            }
  132. {------------------------------------------------------------------}
  133. procedure glResizeWnd(Width, Height : Integer);
  134. begin
  135.   if (Height = 0) then                // prevent divide by zero exception
  136.     Height := 1;
  137.   glViewport(0, 0, Width, Height);    // Set the viewport for the OpenGL window
  138.   glMatrixMode(GL_PROJECTION);        // Change Matrix Mode to Projection
  139.   glLoadIdentity();                   // Reset View
  140.   gluPerspective(45.0, Width/Height, 1.0, 100.0);  // Do the perspective calculations. Last value = max clipping depth
  141.   glMatrixMode(GL_MODELVIEW);         // Return to the modelview matrix
  142.   glLoadIdentity();                   // Reset View
  143. end;
  144. {------------------------------------------------------------------}
  145. {  Processes all the keystrokes                                    }
  146. {------------------------------------------------------------------}
  147. procedure ProcessKeys;
  148. begin
  149.   // Turn on specular highlights if supported
  150.   if (keys[ord('N')]) then
  151.   begin
  152.     if SeperateSpecular then  // If its enabled, then disable
  153.       glLightModel(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR)
  154.     else
  155.     begin
  156.       if isSupported('GL_EXT_separate_specular_color') then
  157.         glLightModel(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR)
  158.       else
  159.         glLightModel(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
  160.     end;
  161.     SeperateSpecular :=NOT(SeperateSpecular);
  162.     keys[ord('N')] :=false;
  163.   end;
  164.   if keys[VK_ADD] then
  165.   begin
  166.     Segments :=Segments*2;
  167.     CreateTorus(1, 3, Segments, Segments);
  168.     keys[VK_ADD] :=false;
  169.   end;
  170.   if keys[VK_SUBTRACT] then
  171.   begin
  172.     Segments :=Segments DIV 2;
  173.     if Segments < 4 then
  174.       Segments :=4;
  175.     CreateTorus(1, 3, Segments, Segments);
  176.     keys[VK_SUBTRACT] :=false;
  177.   end;
  178. end;
  179. {------------------------------------------------------------------}
  180. {  Determines the application’s response to the messages received  }
  181. {------------------------------------------------------------------}
  182. function WndProc(hWnd: HWND; Msg: UINT;  wParam: WPARAM;  lParam: LPARAM): LRESULT; stdcall;
  183. begin
  184.   case (Msg) of
  185.     WM_CREATE:
  186.       begin
  187.         // Insert stuff you want executed when the program starts
  188.       end;
  189.     WM_CLOSE:
  190.       begin
  191.         PostQuitMessage(0);
  192.         Result := 0
  193.       end;
  194.     WM_KEYDOWN:       // Set the pressed key (wparam) to equal true so we can check if its pressed
  195.       begin
  196.         keys[wParam] := True;
  197.         Result := 0;
  198.       end;
  199.     WM_KEYUP:         // Set the released key (wparam) to equal false so we can check if its pressed
  200.       begin
  201.         keys[wParam] := False;
  202.         Result := 0;
  203.       end;
  204.     WM_SIZE:          // Resize the window with the new width and height
  205.       begin
  206.         glResizeWnd(LOWORD(lParam),HIWORD(lParam));
  207.         Result := 0;
  208.       end;
  209.     WM_TIMER :                     // Add code here for all timers to be used.
  210.       begin
  211.         if wParam = FPS_TIMER then
  212.         begin
  213.           FPSCount :=Round(FPSCount * 1000/FPS_INTERVAL);   // calculate to get per Second incase intercal is less or greater than 1 second
  214.           SetWindowText(h_Wnd, PChar(WND_TITLE + '   [' + intToStr(FPSCount) + ' FPS]'));
  215.           FPSCount := 0;
  216.           Result := 0;
  217.         end;
  218.       end;
  219.     else
  220.       Result := DefWindowProc(hWnd, Msg, wParam, lParam);    // Default result if nothing happens
  221.   end;
  222. end;
  223. {---------------------------------------------------------------------}
  224. {  Properly destroys the window created at startup (no memory leaks)  }
  225. {---------------------------------------------------------------------}
  226. procedure glKillWnd(Fullscreen : Boolean);
  227. begin
  228.   if Fullscreen then             // Change back to non fullscreen
  229.   begin
  230.     ChangeDisplaySettings(devmode(nil^), 0);
  231.     ShowCursor(True);
  232.   end;
  233.   // Makes current rendering context not current, and releases the device
  234.   // context that is used by the rendering context.
  235.   if (not wglMakeCurrent(h_DC, 0)) then
  236.     MessageBox(0, 'Release of DC and RC failed!', 'Error', MB_OK or MB_ICONERROR);
  237.   // Attempts to delete the rendering context
  238.   if (not wglDeleteContext(h_RC)) then
  239.   begin
  240.     MessageBox(0, 'Release of rendering context failed!', 'Error', MB_OK or MB_ICONERROR);
  241.     h_RC := 0;
  242.   end;
  243.   // Attemps to release the device context
  244.   if ((h_DC = 1) and (ReleaseDC(h_Wnd, h_DC) <> 0)) then
  245.   begin
  246.     MessageBox(0, 'Release of device context failed!', 'Error', MB_OK or MB_ICONERROR);
  247.     h_DC := 0;
  248.   end;
  249.   // Attempts to destroy the window
  250.   if ((h_Wnd <> 0) and (not DestroyWindow(h_Wnd))) then
  251.   begin
  252.     MessageBox(0, 'Unable to destroy window!', 'Error', MB_OK or MB_ICONERROR);
  253.     h_Wnd := 0;
  254.   end;
  255.   // Attempts to unregister the window class
  256.   if (not UnRegisterClass('OpenGL', hInstance)) then
  257.   begin
  258.     MessageBox(0, 'Unable to unregister window class!', 'Error', MB_OK or MB_ICONERROR);
  259.     hInstance := 0;
  260.   end;
  261. end;
  262. {--------------------------------------------------------------------}
  263. {  Creates the window and attaches a OpenGL rendering context to it  }
  264. {--------------------------------------------------------------------}
  265. function glCreateWnd(Width, Height : Integer; Fullscreen : Boolean; PixelDepth : Integer) : Boolean;
  266. var
  267.   wndClass : TWndClass;         // Window class
  268.   dwStyle : DWORD;              // Window styles
  269.   dwExStyle : DWORD;            // Extended window styles
  270.   dmScreenSettings : DEVMODE;   // Screen settings (fullscreen, etc...)
  271.   PixelFormat : GLuint;         // Settings for the OpenGL rendering
  272.   h_Instance : HINST;           // Current instance
  273.   pfd : PIXELFORMATDESCRIPTOR;  // Settings for the OpenGL window
  274. begin
  275.   h_Instance := GetModuleHandle(nil);       //Grab An Instance For Our Window
  276.   ZeroMemory(@wndClass, SizeOf(wndClass));  // Clear the window class structure
  277.   with wndClass do                    // Set up the window class
  278.   begin
  279.     style         := CS_HREDRAW or    // Redraws entire window if length changes
  280.                      CS_VREDRAW or    // Redraws entire window if height changes
  281.                      CS_OWNDC;        // Unique device context for the window
  282.     lpfnWndProc   := @WndProc;        // Set the window procedure to our func WndProc
  283.     hInstance     := h_Instance;
  284.     hCursor       := LoadCursor(0, IDC_ARROW);
  285.     lpszClassName := 'OpenGL';
  286.   end;
  287.   if (RegisterClass(wndClass) = 0) then  // Attemp to register the window class
  288.   begin
  289.     MessageBox(0, 'Failed to register the window class!', 'Error', MB_OK or MB_ICONERROR);
  290.     Result := False;
  291.     Exit
  292.   end;
  293.   // Change to fullscreen if so desired
  294.   if Fullscreen then
  295.   begin
  296.     ZeroMemory(@dmScreenSettings, SizeOf(dmScreenSettings));
  297.     with dmScreenSettings do begin              // Set parameters for the screen setting
  298.       dmSize       := SizeOf(dmScreenSettings);
  299.       dmPelsWidth  := Width;                    // Window width
  300.       dmPelsHeight := Height;                   // Window height
  301.       dmBitsPerPel := PixelDepth;               // Window color depth
  302.       dmFields     := DM_PELSWIDTH or DM_PELSHEIGHT or DM_BITSPERPEL;
  303.     end;
  304.     // Try to change screen mode to fullscreen
  305.     if (ChangeDisplaySettings(dmScreenSettings, CDS_FULLSCREEN) = DISP_CHANGE_FAILED) then
  306.     begin
  307.       MessageBox(0, 'Unable to switch to fullscreen!', 'Error', MB_OK or MB_ICONERROR);
  308.       Fullscreen := False;
  309.     end;
  310.   end;
  311.   // If we are still in fullscreen then
  312.   if (Fullscreen) then
  313.   begin
  314.     dwStyle := WS_POPUP or                // Creates a popup window
  315.                WS_CLIPCHILDREN            // Doesn't draw within child windows
  316.                or WS_CLIPSIBLINGS;        // Doesn't draw within sibling windows
  317.     dwExStyle := WS_EX_APPWINDOW;         // Top level window
  318.     ShowCursor(False);                    // Turn of the cursor (gets in the way)
  319.   end
  320.   else
  321.   begin
  322.     dwStyle := WS_OVERLAPPEDWINDOW or     // Creates an overlapping window
  323.                WS_CLIPCHILDREN or         // Doesn't draw within child windows
  324.                WS_CLIPSIBLINGS;           // Doesn't draw within sibling windows
  325.     dwExStyle := WS_EX_APPWINDOW or       // Top level window
  326.                  WS_EX_WINDOWEDGE;        // Border with a raised edge
  327.   end;
  328.   // Attempt to create the actual window
  329.   h_Wnd := CreateWindowEx(dwExStyle,      // Extended window styles
  330.                           'OpenGL',       // Class name
  331.                           WND_TITLE,      // Window title (caption)
  332.                           dwStyle,        // Window styles
  333.                           0, 0,           // Window position
  334.                           Width, Height,  // Size of window
  335.                           0,              // No parent window
  336.                           0,              // No menu
  337.                           h_Instance,     // Instance
  338.                           nil);           // Pass nothing to WM_CREATE
  339.   if h_Wnd = 0 then
  340.   begin
  341.     glKillWnd(Fullscreen);                // Undo all the settings we've changed
  342.     MessageBox(0, 'Unable to create window!', 'Error', MB_OK or MB_ICONERROR);
  343.     Result := False;
  344.     Exit;
  345.   end;
  346.   // Try to get a device context
  347.   h_DC := GetDC(h_Wnd);
  348.   if (h_DC = 0) then
  349.   begin
  350.     glKillWnd(Fullscreen);
  351.     MessageBox(0, 'Unable to get a device context!', 'Error', MB_OK or MB_ICONERROR);
  352.     Result := False;
  353.     Exit;
  354.   end;
  355.   // Settings for the OpenGL window
  356.   with pfd do
  357.   begin
  358.     nSize           := SizeOf(PIXELFORMATDESCRIPTOR); // Size Of This Pixel Format Descriptor
  359.     nVersion        := 1;                    // The version of this data structure
  360.     dwFlags         := PFD_DRAW_TO_WINDOW    // Buffer supports drawing to window
  361.                        or PFD_SUPPORT_OPENGL // Buffer supports OpenGL drawing
  362.                        or PFD_DOUBLEBUFFER;  // Supports double buffering
  363.     iPixelType      := PFD_TYPE_RGBA;        // RGBA color format
  364.     cColorBits      := PixelDepth;           // OpenGL color depth
  365.     cRedBits        := 0;                    // Number of red bitplanes
  366.     cRedShift       := 0;                    // Shift count for red bitplanes
  367.     cGreenBits      := 0;                    // Number of green bitplanes
  368.     cGreenShift     := 0;                    // Shift count for green bitplanes
  369.     cBlueBits       := 0;                    // Number of blue bitplanes
  370.     cBlueShift      := 0;                    // Shift count for blue bitplanes
  371.     cAlphaBits      := 0;                    // Not supported
  372.     cAlphaShift     := 0;                    // Not supported
  373.     cAccumBits      := 0;                    // No accumulation buffer
  374.     cAccumRedBits   := 0;                    // Number of red bits in a-buffer
  375.     cAccumGreenBits := 0;                    // Number of green bits in a-buffer
  376.     cAccumBlueBits  := 0;                    // Number of blue bits in a-buffer
  377.     cAccumAlphaBits := 0;                    // Number of alpha bits in a-buffer
  378.     cDepthBits      := 16;                   // Specifies the depth of the depth buffer
  379.     cStencilBits    := 0;                    // Turn off stencil buffer
  380.     cAuxBuffers     := 0;                    // Not supported
  381.     iLayerType      := PFD_MAIN_PLANE;       // Ignored
  382.     bReserved       := 0;                    // Number of overlay and underlay planes
  383.     dwLayerMask     := 0;                    // Ignored
  384.     dwVisibleMask   := 0;                    // Transparent color of underlay plane
  385.     dwDamageMask    := 0;                     // Ignored
  386.   end;
  387.   // Attempts to find the pixel format supported by a device context that is the best match to a given pixel format specification.
  388.   PixelFormat := ChoosePixelFormat(h_DC, @pfd);
  389.   if (PixelFormat = 0) then
  390.   begin
  391.     glKillWnd(Fullscreen);
  392.     MessageBox(0, 'Unable to find a suitable pixel format', 'Error', MB_OK or MB_ICONERROR);
  393.     Result := False;
  394.     Exit;
  395.   end;
  396.   // Sets the specified device context's pixel format to the format specified by the PixelFormat.
  397.   if (not SetPixelFormat(h_DC, PixelFormat, @pfd)) then
  398.   begin
  399.     glKillWnd(Fullscreen);
  400.     MessageBox(0, 'Unable to set the pixel format', 'Error', MB_OK or MB_ICONERROR);
  401.     Result := False;
  402.     Exit;
  403.   end;
  404.   // Create a OpenGL rendering context
  405.   h_RC := wglCreateContext(h_DC);
  406.   if (h_RC = 0) then
  407.   begin
  408.     glKillWnd(Fullscreen);
  409.     MessageBox(0, 'Unable to create an OpenGL rendering context', 'Error', MB_OK or MB_ICONERROR);
  410.     Result := False;
  411.     Exit;
  412.   end;
  413.   // Makes the specified OpenGL rendering context the calling thread's current rendering context
  414.   if (not wglMakeCurrent(h_DC, h_RC)) then
  415.   begin
  416.     glKillWnd(Fullscreen);
  417.     MessageBox(0, 'Unable to activate OpenGL rendering context', 'Error', MB_OK or MB_ICONERROR);
  418.     Result := False;
  419.     Exit;
  420.   end;
  421.   // Initializes the timer used to calculate the FPS
  422.   SetTimer(h_Wnd, FPS_TIMER, FPS_INTERVAL, nil);
  423.   // Settings to ensure that the window is the topmost window
  424.   ShowWindow(h_Wnd, SW_SHOW);
  425.   SetForegroundWindow(h_Wnd);
  426.   SetFocus(h_Wnd);
  427.   // Ensure the OpenGL window is resized properly
  428.   glResizeWnd(Width, Height);
  429.   glInit();
  430.   Result := True;
  431. end;
  432. {--------------------------------------------------------------------}
  433. {  Main message loop for the application                             }
  434. {--------------------------------------------------------------------}
  435. function WinMain(hInstance : HINST; hPrevInstance : HINST;
  436.                  lpCmdLine : PChar; nCmdShow : Integer) : Integer; stdcall;
  437. var
  438.   msg : TMsg;
  439.   finished : Boolean;
  440.   DemoStart, LastTime : DWord;
  441. begin
  442.   finished := False;
  443.   // Perform application initialization:
  444.   if not glCreateWnd(800, 600, FALSE, 32) then
  445.   begin
  446.     Result := 0;
  447.     Exit;
  448.   end;
  449.   DemoStart := GetTickCount();            // Get Time when demo started
  450.   // Main message loop:
  451.   while not finished do
  452.   begin
  453.     if (PeekMessage(msg, 0, 0, 0, PM_REMOVE)) then // Check if there is a message for this window
  454.     begin
  455.       if (msg.message = WM_QUIT) then     // If WM_QUIT message received then we are done
  456.         finished := True
  457.       else
  458.       begin                               // Else translate and dispatch the message to this window
  459.    TranslateMessage(msg);
  460.         DispatchMessage(msg);
  461.       end;
  462.     end
  463.     else
  464.     begin
  465.       Inc(FPSCount);                      // Increment FPS Counter
  466.       LastTime :=ElapsedTime;
  467.       ElapsedTime :=GetTickCount() - DemoStart;     // Calculate Elapsed Time
  468.       ElapsedTime :=(LastTime + ElapsedTime) DIV 2; // Average it out for smoother movement
  469.       glDraw();                           // Draw the scene
  470.       SwapBuffers(h_DC);                  // Display the scene
  471.       if (keys[VK_ESCAPE]) then           // If user pressed ESC then set finised TRUE
  472.         finished := True
  473.       else
  474.         ProcessKeys;                      // Check for any other key Pressed
  475.     end;
  476.   end;
  477.   glKillWnd(FALSE);
  478.   Result := msg.wParam;
  479. end;
  480. begin
  481.   WinMain( hInstance, hPrevInst, CmdLine, CmdShow );
  482. end.

n°1275665
the real m​oins moins
Posté le 01-01-2006 à 23:29:17  profilanswer
 

k lol


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
mood
Publicité
Posté le 01-01-2006 à 23:29:17  profilanswer
 

n°1275666
Raistlin M​ajere
i bouh at you !
Posté le 01-01-2006 à 23:32:40  profilanswer
 

#
, 0, PM_REMOVE)) then // Check if there is a message for this window
#
   begin
#
     if (msg.message = WM_QUIT) then     // If WM_QUIT message received then we are done
#
       finished := True
#
     else
#
     begin                               // Else translate and dispatch the message to this window
#
     TranslateMessage(msg);
#
       DispatchMessage(msg);
#
     end;


---------------
Слава Україні  Feedback
n°1275668
red factio​n
Posté le 02-01-2006 à 00:03:30  profilanswer
 

c quoi votre probleme ?

n°1275767
mareek
Et de 3 \o/
Posté le 02-01-2006 à 11:02:38  profilanswer
 

FileSystemObject


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1275992
Arjuna
Aircraft Ident.: F-MBSD
Posté le 02-01-2006 à 17:54:46  profilanswer
 

CHARINDEX(as_txn_code,'int.inf.too.sup.tva.221.rec')>0

n°1275999
mareek
Et de 3 \o/
Posté le 02-01-2006 à 18:03:16  profilanswer
 

1 to 9


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1276356
mareek
Et de 3 \o/
Posté le 03-01-2006 à 13:57:33  profilanswer
 

[quotemsg=1276341,392246,41922]


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1276394
Arjuna
Aircraft Ident.: F-MBSD
Posté le 03-01-2006 à 14:40:20  profilanswer
 

Code :
  1. #include <stdio.h>
  2. #include <ut_def.inc>
  3. #include <ut_bdd.inc>
  4. #ifdef VMS
  5. #include <descrip.h>
  6. #endif
  7. int main(argc,argv)
  8. int  argc;
  9. char *argv[];
  10. {
  11. #ifdef VMS
  12. struct dsc$descriptor_s sym_desc;
  13. struct dsc$descriptor_s val_desc;
  14. long numbase;
  15. long codsoc;
  16. char valeur[10];
  17. /*****************************************/
  18.         /* 14/02/01 par VJF                      */
  19.         /* Affichage de l'information de version */
  20.         /*****************************************/
  21.         if (argc>=2)
  22.                 ut_version_printver(argc,argv);
  23. if (argc < 4)
  24. {
  25.  printf("Utilisation\n" );
  26.  printf("-----------\n" );
  27.  printf("\n" );
  28.  printf("*    U_bdd_numero.exe \"SYMBOLE\" \"BASE\" \"code_societe\"\n" );
  29.  printf("\n" );
  30.  printf("Affecte au symbole \"SYMBOLE\", le numero de la base associée à la société\n" );
  31.  printf("dont le numéro est passé en parametre\n" );
  32.  printf("\n" );
  33.  printf("\n" );
  34.  printf("* ou U_bdd_numero.exe \"SYMBOLE\" \"SOCIETE\" \"code_societe\" \"table\"\n" );
  35.  printf("\n" );
  36.  printf("Affecte au symbole \"SYMBOLE\",le code société associé à la table \"table\"\n" );
  37.  printf("quand on est connecté à la société numéro \"code_societe\"\n" );
  38.  printf("\n" );
  39.  printf("Renvoie -1 en cas d'erreur quelconque.\n" );
  40.  exit(1);
  41. }
  42. sym_desc.dsc$w_length  = strlen(argv[1]);
  43. sym_desc.dsc$a_pointer = argv[1];
  44. sym_desc.dsc$b_class   = DSC$K_CLASS_S;
  45. sym_desc.dsc$b_dtype   = DSC$K_DTYPE_T;
  46. val_desc.dsc$a_pointer = valeur;
  47. val_desc.dsc$b_class   = DSC$K_CLASS_S;
  48. val_desc.dsc$b_dtype   = DSC$K_DTYPE_T;
  49. if ((strcmp(argv[2],"BASE" ) == 0) || (strcmp(argv[2],"base" ) == 0))
  50. {
  51.  sscanf(argv[3],"%ld",&bdd.soc);
  52.  if (bdd_numbase(&numbase) == ut_bon)
  53.  {
  54.   sprintf(valeur,"%ld",numbase);
  55.   val_desc.dsc$w_length  = strlen(valeur);
  56.   lib$set_symbol(&sym_desc,
  57.           &val_desc,
  58.           NULL);
  59.   exit(1);
  60.  }
  61.  else
  62.  {
  63.   strcpy(valeur,"-1" );
  64.   val_desc.dsc$w_length  = strlen(valeur);
  65.   lib$set_symbol(&sym_desc,
  66.           &val_desc,
  67.           NULL);
  68.   exit(1);
  69.  }
  70. }
  71. if ((strcmp(argv[2],"SOCIETE" ) == 0) || (strcmp(argv[2],"societe" ) == 0))
  72. {
  73.  sscanf(argv[3],"%ld",&bdd.soc);
  74.  if (bdd_codsoc(argv[4],&codsoc) == ut_bon)
  75.  {
  76.   sprintf(valeur,"%ld",codsoc);
  77.   val_desc.dsc$w_length  = strlen(valeur);
  78.   lib$set_symbol(&sym_desc,
  79.           &val_desc,
  80.           NULL);
  81.   exit(1);
  82.  }
  83.  else
  84.  {
  85.   strcpy(valeur,"-1" );
  86.   val_desc.dsc$w_length  = strlen(valeur);
  87.   lib$set_symbol(&sym_desc,
  88.           &val_desc,
  89.           NULL);
  90.   exit(1);
  91.  }
  92. }
  93. strcpy(valeur,"-1" );
  94. val_desc.dsc$w_length  = strlen(valeur);
  95. lib$set_symbol(&sym_desc,
  96.         &val_desc,
  97.         NULL);
  98. #else
  99. char masque[10];
  100. long numbase;
  101. long codsoc;
  102. if (argc < 3)
  103. {
  104.  printf("Utilisation\n" );
  105.  printf("-----------\n" );
  106.  printf("\n" );
  107.  printf("*    U_bdd_numero.exe \"BASE\" \"code_societe\"\n" );
  108.  printf("\n" );
  109.  printf("Renvoie le numero de la base associée à la société dont le numéro est \n" );
  110.  printf("passé en parametre\n" );
  111.  printf("\n" );
  112.  printf("\n" );
  113.  printf("* ou U_bdd_numero.exe \"SOCIETE\" \"code_societe\" \"table\"\n" );
  114.  printf("\n" );
  115.  printf("Renvoie le code société associée à la table \"table\" quand on est connecté \n" );
  116.  printf("à la société numéro \"code_societe\"\n" );
  117.  printf("\n" );
  118.  printf("Renvoie -1 en cas d'erreur quelconque.\n" );
  119.  exit(1);
  120. }
  121. #ifdef WINDOWSNT
  122. strcpy( masque , "%ld\n" );
  123. #else
  124. strcpy( masque , "%ld" );
  125. #endif
  126. if ((strcmp(argv[1],"BASE" ) == 0) || (strcmp(argv[1],"base" ) == 0))
  127. {
  128.  sscanf(argv[2],"%ld",&bdd.soc);
  129.  if (bdd_numbase(&numbase) == ut_bon)
  130.  {
  131.   printf(masque,numbase);
  132.   exit(1);
  133.  }
  134.  else
  135.  {
  136.   printf(masque,-1);
  137.   exit(1);
  138.  }
  139. }
  140. if ((strcmp(argv[1],"SOCIETE" ) == 0) || (strcmp(argv[1],"societe" ) == 0))
  141. {
  142.  sscanf(argv[2],"%ld",&bdd.soc);
  143.  if (bdd_codsoc(argv[3],&codsoc) == ut_bon)
  144.  {
  145.   printf(masque,codsoc);
  146.   exit(1);
  147.  }
  148.  else
  149.  {
  150.   printf(masque,-1);
  151.   exit(1);
  152.  }
  153. }
  154. printf(masque,-1);
  155. #endif
  156. exit(1);
  157. }


 
Beurk. Ce que c'est moche le C :o

n°1276558
red factio​n
Posté le 03-01-2006 à 20:19:35  profilanswer
 

vb c mieux [:petrus75]


Message édité par red faction le 03-01-2006 à 20:24:29
n°1276566
the real m​oins moins
Posté le 03-01-2006 à 20:48:28  profilanswer
 

(?o?O)


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1276613
ritzle
Posté le 03-01-2006 à 22:05:11  profilanswer
 

Arjuna a écrit :


Beurk. Ce que c'est moche le C :o


ouais sérieux le C++ c'est bien mieux

n°1276743
mareek
Et de 3 \o/
Posté le 04-01-2006 à 10:57:58  profilanswer
 

NetScheduleJobEnum


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1276759
mareek
Et de 3 \o/
Posté le 04-01-2006 à 11:26:32  profilanswer
 

http://www.atmarkit.co.jp/bbs/phpB [...] &forum=7&7


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1276765
Raistlin M​ajere
i bouh at you !
Posté le 04-01-2006 à 11:39:36  profilanswer
 

Population race: Xillor size: 47806 M


---------------
Слава Україні  Feedback
n°1276833
souk
Tourist
Posté le 04-01-2006 à 13:59:07  profilanswer
 
n°1276890
Arjuna
Aircraft Ident.: F-MBSD
Posté le 04-01-2006 à 14:54:16  profilanswer
 

Memory: <Memory>
OS Version: <OS Version>
Service Pack: <Service Pack>

n°1276961
mareek
Et de 3 \o/
Posté le 04-01-2006 à 15:54:00  profilanswer
 

L'écran de mon tel portable est mort donc je n'ai pas pu appeler pleins de gens ()


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1276991
theShockWa​ve
I work at a firm named Koslow
Posté le 04-01-2006 à 16:40:33  profilanswer
 

Code :
  1. /*J ƒ‚ƒWƒ…[ƒ‹‚̐” */
  2. #define N_MODULES 2


[:pingouino]
 
Edit : d'ailleurs, au passage, svn traite les fichiers contenant des commentaires en japonais comme des fichiers binaires [:petrus75]


Message édité par theShockWave le 04-01-2006 à 16:43:43
n°1276993
Arjuna
Aircraft Ident.: F-MBSD
Posté le 04-01-2006 à 16:42:43  profilanswer
 

~001

n°1276996
Arjuna
Aircraft Ident.: F-MBSD
Posté le 04-01-2006 à 16:44:50  profilanswer
 

Faut installer l'IME japonnaise et utiliser un éditeur qui sait interpréter le charset, chuis sûr que les commentaires sont en japonnais ou autre langue exotique :)

n°1277003
souk
Tourist
Posté le 04-01-2006 à 16:52:40  profilanswer
 

achete un mac

n°1277007
the real m​oins moins
Posté le 04-01-2006 à 16:59:35  profilanswer
 

moi je conseillerais plutot une corde


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1277008
Arjuna
Aircraft Ident.: F-MBSD
Posté le 04-01-2006 à 17:00:59  profilanswer
 

~001
 
tiens, ça n'a pas changé :D

n°1277011
nraynaud
lol
Posté le 04-01-2006 à 17:06:39  profilanswer
 

je fournis le point haut et le tabouret.

n°1277028
souk
Tourist
Posté le 04-01-2006 à 17:22:05  profilanswer
 

Code :
  1. public aspect BalanceChangeSecurityAspect {
  2.  
  3.   private SecurityManager securityManager;
  4.  
  5.   public void setSecurityManager(SecurityManager securityManager) {
  6.      this.securityManager = securityManager;
  7.   }
  8.  
  9.   private pointcut balanceChanged() :
  10.      set(int Account.balance);
  11.  
  12.   before() : balanceChanged() {
  13.      this.securityManager.checkAuthorizedToModify();
  14.   }
  15. }


Message édité par souk le 04-01-2006 à 17:22:33
n°1277029
nraynaud
lol
Posté le 04-01-2006 à 17:23:34  profilanswer
 

la craneuse !

n°1277050
mareek
Et de 3 \o/
Posté le 04-01-2006 à 17:41:34  profilanswer
 

ah non, moi j'ai fait une formation qui m'a VRAIMENT appris à programmer: un DUT info [:franck75]


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1277061
cyfl
Posté le 04-01-2006 à 17:53:06  profilanswer
 

declare  
  TYPE t_rec_multi IS RECORD
  ( operande1 INTEGER,
    operande2 INTEGER,
    resultat INTEGER);
   TYPE t_tab_multi IS TABLE OF t_rec_multi INDEX BY BINARY_INTEGER;
   tab_multi t_tab_multi;
   
BEGIN
  FOR i IN 1..9 LOOP
     tab_multi(i).operande1 := i;
     tab_multi(i).operande2 := 2;
     tab_multi(i).resultat :=i*2;
    END LOOP;
     
    FOR i IN tab_multi.FIRST..tab_multi.LAST LOOP
      INSERT INTO tmp
        values(TO_CHAR(tab_multi(i).operande1)||' * ' ||
                TO_CHAR(tab_multi(i).operande2)||' = ' ||
                TO_CHAR(tab_multi(i).resultat));
     END LOOP;
END;

n°1277121
Raistlin M​ajere
i bouh at you !
Posté le 04-01-2006 à 19:17:46  profilanswer
 

tu prévois les chutes ? :D


---------------
Слава Україні  Feedback
n°1277130
mareek
Et de 3 \o/
Posté le 04-01-2006 à 19:25:23  profilanswer
 

WinMerge


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1277164
the real m​oins moins
Posté le 04-01-2006 à 20:30:19  profilanswer
 

Eh mec attention, j'suis trop un fou voilà ma mix tape écoute comme j'kill au mic,  
Edifiant marre des vieux MC's, on veut du sang neuf vivifiant  
Je l'connais pas mais j'ai des potes qui ont dit à des potes  
Qu'ont dit potes qu'il prennait des extas et d'la coke  
Ca c'est l'showbiz, ça m'dégoute tu vois


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1277415
Raistlin M​ajere
i bouh at you !
Posté le 05-01-2006 à 02:58:20  profilanswer
 
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  51  52  53  ..  189  190  191  192  193  194

Aller à :
Ajouter une réponse
 

Sujets relatifs
Récupérer le contenu d'une frame[ASP] Récupérer le contenu du buffer
afficher le contenu d'un requette SQL dans 1 DataGrid ou autre ?Recherche un outil de help-desk
effacer le contenu d'une text areaRécupérer le contenu d'un fichier distant. readfile(), include().
Lire une page web (php) à partir de vb pour afficher le contenuoutil de test de charge
(HTML/JS aussi)Recuperation de valeur contenu entre les TAGtype contenu ds un vector
Plus de sujets relatifs à : [Topic Outil] sauvegardez le contenu de votre presse papier


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)