ich erlaube mir mal selbst ( xD ) meinen rechner zu
posten ihr könnte auch ruhig bewerten.
Das "Bewerten" im Rechner-Menü hat ne
überraschung :P
http://staebche.extra.hu/Rechner.exe
Druckbare Version
ich erlaube mir mal selbst ( xD ) meinen rechner zu
posten ihr könnte auch ruhig bewerten.
Das "Bewerten" im Rechner-Menü hat ne
überraschung :P
http://staebche.extra.hu/Rechner.exe
Ist es für C# nicht int.parse() ?Zitat:
Zitat von Technoskull
HEY staebche
jetzt mag cih dich nicht mehr^^
du mochtest mich? danke =)Zitat:
Zitat von Technoskull
und warum jetzt nichtmehr? xD
nein bei # gibt es keine difinition parse nach int.Zitat:
Ist es für C# nicht int.parse() ?
Added after 1 minutes:
also wenn man die zahl 999 haben will dann ist es:abber ich will ja alles über 999Code:if (label1.Text == "999");
Adde mich mal bitte in ICQ (meine Nummer steht in meiner Signatur).Zitat:
Zitat von Technoskull
wenn ich das richtig verstanden habe, willst du ein externes Programm starten.
hoffentlich konnte ich helfenCode:using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.ComponentModel;
namespace dfh
{
class Program
{
static void Main(string[] args)
{
ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe");
startInfo.WindowStyle = ProcessWindowStyle.Hidden; //Hidden, Minimized, Normal oder Maximized (bin mir nicht mehr ganz sicher)
Process.Start(startInfo);
}
}
}
/////////////////////////////////GENAUER
sing System;
using System.Diagnostics;
using System.ComponentModel;
namespace MyProcessSample
{
/// <summary>
/// Shell for the sample.
/// </summary>
class MyProcess
{
/// <summary>
/// Opens the Internet Explorer application.
/// </summary>
void OpenApplication(string myFavoritesPath)
{
// Start Internet Explorer. Defaults to the home page.
Process.Start("IExplore.exe");
// Display the contents of the favorites folder in the browser.
Process.Start(myFavoritesPath);
}
/// <summary>
/// Opens urls and .html documents using Internet Explorer.
/// </summary>
void OpenWithArguments()
{
// url's are not considered documents. They can only be opened
// by passing them as arguments.
Process.Start("IExplore.exe", "www.free-hack.com");
// Start a Web page using a browser associated with .html and .asp files.
Process.Start("IExplore.exe", "C:\\myPath\\myFile.htm");
Process.Start("IExplore.exe", "C:\\myPath\\myFile.asp");
}
/// <summary>
/// Uses the ProcessStartInfo class to start new processes, both in a minimized
/// mode.
/// </summary>
void OpenWithStartInfo()
{
ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe");
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
Process.Start(startInfo);
startInfo.Arguments = "www.free-hack.com";
Process.Start(startInfo);
}
static void Main()
{
// Get the path that stores favorite links.
string myFavoritesPath =
Environment.GetFolderPath(Environment.SpecialFolder.Favorites);
MyProcess myProcess = new MyProcess();
myProcess.OpenApplication(myFavoritesPath);
myProcess.OpenWithArguments();
myProcess.OpenWithStartInfo();
}
}
}
The Blubb
Da du dich nicht bei mir in ICQ gemeldet hast schreib ich das mal hier rein:Zitat:
Zitat von Technoskull
Der Code funktioniert prima unter C++.Code:int atoi(char *x)
{
int y;
for(y=0;*x >= '0' && *x <= '9';x++)
y = 10 * y + (*x - '0');
return y;
}
Also probier damit mal
(ich meine atoi-Funktion lässt sich ohne große Probleme auf C Sharp portieren).Code:if(atoi(label1.Text) > 999)
mfG. BlackBerry
Zitat:
Zitat von Technoskull
Sicherlich gibt es "int.parse()"
Damit wird ein String zu integer geparst
Ich nimm aber immer die "Convert" Funktion her: zb. "Convert.toInt32()"
Dann ersetze doch mal das "==" durch ">" ^^