Pumpkin Seed HQ |
I took off my clothes and stepped into the shower to find another one sitting near the drain. It was about 2 feet tall and made of metal, with bright camera-lens eyes and a few dozen gripping arms. Worse than the Jehovah's Witnesses.
“Hi! I'm from Google. I'm a Googlebot! I will not kill you.” ... Link Den hat bestimmt schon jeder verlinkt, aber ich kann nur sagen - soooo cool! Wenn mein Geldbeutel sich mal wieder erholt hat wird Lego Mindstorms angeschaft, inkl. Kamera. ... Link Eigentlich wollte ich nur schnell wissen wie opendir() unter Windblows genannt wird und bin dann hier gelandet. Was mir dann zu Gesicht kam erklärt zumindest teilweise warum halbwegs vernünftige Menschen "switchen" oder den Pinguin adoptieren. Hier das "Example" aus der MSDN Sammlung anhand derer man Unix apps nach WIN32 migrieren soll (Achtung massiver nerd content!): void ScanDir(char *dirname, int indent) { BOOL fFinished; HANDLE hList; TCHAR szDir[MAX_PATH+1]; TCHAR szSubDir[MAX_PATH+1]; WIN32_FIND_DATA FileData; // Get the proper directory path sprintf(szDir, "%s\\*", dirname); // Get the first file hList = FindFirstFile(szDir, &FileData); if (hList == INVALID_HANDLE_VALUE) { printf("No files found\n\n"); } else { // Traverse through the directory structure fFinished = FALSE; while (!fFinished) { // Check the object is a directory or not if (FileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { if ((strcmp(FileData.cFileName, ".") != 0) && (strcmp(FileData.cFileName, "..") != 0)) { printf("%*s%s\\\n", indent, "", FileData.cFileName); // Get the full path for sub directory sprintf(szSubDir, "%s\\%s", dirname, FileData.cFileName); ScanDir(szSubDir, indent + 4); } } else printf("%*s%s\n", indent, "", FileData.cFileName); if (!FindNextFile(hList, &FileData)) { if (GetLastError() == ERROR_NO_MORE_FILES) { fFinished = TRUE; } } } } FindClose(hList); } Jetzt ist mir klar warum die (a) Sicherheitslücken bis zum Anschlag haben ... schonmal was von snprintf (vsnprintf) gehört? (b) eine Taschenlampe einblenden muessen wenn der Explorer ein Verzeichnis durchsucht. Echt bitter. ... Link |
Online for 8202 days
Last update: 6/8/11, 1:03 PM
status
Youre not logged in ... Login
recent updates
Pas(s)t! As some people asked
- last year July I pitched the tent of my...
by retrakker (6/7/11, 9:46 AM)
RoundBox Webmail If your workplace
or personal webmail sucks - try RoundBox.
by retrakker (10/7/09, 12:10 PM)
New CX Economy Seats Well,
I was forced to be mostly on OneWorld for the...
by retrakker (9/21/09, 1:32 AM)
Na Herr Doktor ... Zum
Glück darf ich mit meinem PhD in Deutschland (und nur...
by retrakker (8/23/09, 9:00 PM)
Towards a consistent Linux ABI
The Linux ABI Checker seems like a great tool. Ever...
by retrakker (8/21/09, 11:44 AM)
Built-In Slowification people don't realize
how hindering all these automatic and uncontrollable functions in devices...
by retrakker (8/20/09, 8:32 AM)
SIGPIPE 13 by Allan Odgaard
of TextMate While working on the successor to Textmate 1.5...
by retrakker (8/19/09, 9:02 PM)
|