Was ist das für eine Programmiersprache?

P

peter5000

Code:
/*
    *  OpenVPN-GUI -- A Windows GUI for OpenVPN.
    *
    *  Copyright (C) 2004 Mathias Sundman <mathias@nilings.se>
    *
    *  This program is free software; you can redistribute it and/or modify
    *  it under the terms of the GNU General Public License as published by
    *  the Free Software Foundation; either version 2 of the License, or
    *  (at your option) any later version.
    *
    *  This program is distributed in the hope that it will be useful,
    *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    *  GNU General Public License for more details.
    *
    *  You should have received a copy of the GNU General Public License
    *  along with this program (see the file COPYING included with this
    *  distribution); if not, write to the Free Software Foundation, Inc.,
    *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
   #include "openvpn-gui-res.h"
   #include <windows.h>
   
   /* Application Icons */
   APP_ICON			   ICON  DISCARDABLE  "openvpn-gui.ico"
   APP_ICON_CONNECTED	 ICON  DISCARDABLE  "connected.ico"
   APP_ICON_CONNECTING	ICON  DISCARDABLE  "connecting.ico"
   APP_ICON_DISCONNECTED  ICON  DISCARDABLE  "disconnected.ico"
   
   /* About Dialog - designed with lcc-win32 resource editor */
   IDD_ABOUTDIALOG DIALOG 0, 0, 260, 135
   STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CENTER
   CAPTION "About - OpenVPN GUI for Windows"
   FONT 8, "MS Sans Serif"
   BEGIN
   	PUSHBUTTON	  "OK", IDOK, 99, 115, 63, 14
 	ICON			APP_ICON_CONNECTED, 204, 11, 8, 21, 20
   	LTEXT		   "", ID_TEXT_OPENVPNGUI, 40, 5, 215, 8
 LTEXT		 "Copyright (C) 2004-2005 Mathias Sundman <info@openvpn.se>", 102, 40, 15, 215, 8
   	LTEXT		   "http://openvpn.se/", 103, 40, 25, 215, 8
       LTEXT		   "OpenVPN - An application to securely tunnel IP networks " \
 				 "over a single UDP port, with support for SSL/TLS-based " \
 				 "session authentication and key exchange, packet " \
 				 "encryption, packet authentication, and packet compression.",
   				    104, 11, 51, 235, 34
 LTEXT		 "Copyright (C) 2002-2005 OpenVPN Solutions LLC <info@openvpn.net>", 105, 11, 87, 235, 11
   	LTEXT		   "http://openvpn.net/", 106, 11, 98, 235, 10
   END
   
 ...

Was ist das für eine Programmiersprache?
Ich habe mir die Source von OpenVPN besorgt um das GUI ins Deutsche zu übersetzen. Jetzt muss ich aber wissen, was ich für einen Compiler brauche.
 
Zuletzt bearbeitet von einem Moderator:
Hier ist noch ein Teil der Source:
Code:
/*
   * Creates a unique exit_event name based on the
   * config file number.
   */
  int CreateExitEvent(int config)
  {
    o.cnn[config].exit_event = NULL;
    if (o.oldversion == 1)
  	{
  	  mysnprintf(o.cnn[config].exit_event_name, "openvpn_exit");
  	  o.cnn[config].exit_event = CreateEvent (NULL,
 											 TRUE,
 											 FALSE,
 											 o.cnn[config].exit_event_name);
  	  if (o.cnn[config].exit_event == NULL)
  		{
  		  if (GetLastError() == ERROR_ACCESS_DENIED)
  			{
 			 /* service mustn't be running, while using old version */
 			 ShowLocalizedMsg(GUI_NAME, ERR_STOP_SERV_ON_OLD_VERSION, "");
  			}
  		  else
  			{
  			  /* error creating exit event */
 			 ShowLocalizedMsg (GUI_NAME, ERR_CREATE_EVENT, o.cnn[config].exit_event_name);
  			}
  		  return(false);
  		}
  	}
    else
  	{
  	  mysnprintf(o.cnn[config].exit_event_name, "openvpngui_exit_event_%d",config);
  	  o.cnn[config].exit_event = CreateEvent (NULL,
 											 TRUE,
 											 FALSE,
 											 o.cnn[config].exit_event_name);
  	  if (o.cnn[config].exit_event == NULL)
  		{
  		  /* error creating exit event */
  		  ShowLocalizedMsg (GUI_NAME, ERR_CREATE_EVENT, o.cnn[config].exit_event_name);
  		  return(false);
  		}
  	}
  
    return(true);
 
Zuletzt bearbeitet von einem Moderator:
ich würde auch sagen c++ und das erste sollte der code fürn dialogfeld aus nem resource file (*.rc) sein, was dir nen simplen about dialog erstellt..steht ja auch so in den comments im qc
 

Neue Beiträge

Zurück