Computing desk | ||
---|---|---|
< November 29 | << Oct | November | Dec >> | December 1 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I'm wondering, where in a .exe file is the "icon" that will be visualised by windows is stored ? And also which tools can be used to put an icon on an exe file (I never touched any compiler so far, is it an option in Visual C++ ?). - Esurnir (talk) 04:26, 30 November 2007 (UTC)
I use ResHacker [[1]]
http://www.angusj.com/resourcehacker/
59.93.35.12 13:27, 30 November 2007 (UTC)
I'm relatively new to C, and I'm just starting to get into some of the really odd areas of the language. As part of an experiment with C and gcc, I need to use asm("...")
to modify the internal name of a function. My code looks something like this:
/* ASM_USES_UNDERSCORES is defined elsewhere. */
#if ASM_USES_UNDERSCORES
#define EXT_C(sym) _ ## sym
#else
#define EXT_C(sym) sym
#endif
/* Example usage: asm_prototype(void, f, (int a)); */
#define _asm_prototype(type, name, params, extcName) type name params asm(#extcName)
#define asm_prototype(type, name, params) _asm_prototype(type, name, params, EXT_C(name))
Unfortunately, this doesn't work: the preprocessor quotes the EXT_C
literally, giving me prototypes that look like this:
void f(int a) asm("EXT_C(f)");
... which is obviously not what I intended! Since I can't use ## with double quotes, how should I convince the preprocessor to quote this properly? (Sorry if it's a dumb question, most of my C experience has come from fiddling.) --Aaron Rotenberg (talk) 05:47, 30 November 2007 (UTC)
#define Str(x) #x #define _asm_prototype(type, name, params, extcName) type name params asm(Str(extcName))
I have a ploblem with my mp4 player... actually it has a capacity of 4GB.. but after i format (FAT) more than 3 times that device, now it shows capacity of 0.99 MB.. when it was formated first(FAT- 64 cluster) i could get only 12 songs..but it shows more than that...when accessing the 13 th song it shows a message "Format Error". can anyone suggest a software for formatting that device and to get actual capacity.?
..version... XID_91N51_V5 2007-09-17 9.0.50 2005-01-09 —Preceding unsigned comment added by 202.177.162.187 (talk) 12:48, 30 November 2007 (UTC)
I would suggest you to consult your owner's manual for the device, find out what format to use, and reformat the device. Formatting the device a certain number of times typically should not render it useless. Could we have more detals on what type of storage (flash?) your device uses? Thanks. --Kushalt 04:49, 3 December 2007 (UTC)
Hello. Is pressing Shift+Ctrl+Alt+W on Windows 2000 or XP to disable keystroke loggers a hoax? Thanks in advance. --Mayfare 17:31, 30 November 2007 (UTC)
I'm trying to get a new power supply for my machine and wanted to ask some advice here on the subject. The machine is an A64 machine with 2 hard drives and a floppy, so it needs the ATX style connector, one of those 4 pin connectors, and the relevant number of "Molex" connectors. Beyond that I don't really know what factors to discriminate with. 68.39.174.238 19:37, 30 November 2007 (UTC)
I was wondering a couple things about the programming of Wikipedia.
I guess initially, from my research I'm pretty sure that Wikipedia is programmed in PHP. As I'm learning about PHP and MySQL programming (and Apache thrown in (which is surprisingly amazingly difficult to learn)), Wikipedia is an amazing site to learn from.
I was wondering, for the "Show changes" button on the "editing page" for Wikipedia articles, what do they do, or how could it be implemented in PHP to compare changes in this fashion? Even if it's not in PHP, how could it be accomplished in PHP?
Obviously, with a "submit" button and a form, or three submit buttons and a form, I'm assuming that each button is given its own value in "POST", and that value is initially used to trigger the compare function. Though on a side note here, I'm not sure how GET values are passed in a POST form submission, unless they're written directly into the form "action" attribute?. Then it's to the page comparisons. I'm assuming that the current data is retrieved from "a database" (even if it's not, for my method I'll have to assume it's a MySQL database for example), then this is where I'm really wondering what happens. Perhaps use of the strstr() function, checking for literal errors, which would even check for case-changes. Or a slower and more complex Regular Expression, which I'm not sure would be applicable to this function. However even with strstr(), I'm not quite sure how this would be implemented, looking for changes (to be highlighted in red), then continuing past them and counting the additional (somehow deemed "already existing") parts after the "changes" - "un-changed". This is where I'm really wondering how it's done, perhaps in some sort of loop or something?
Thanks so much for your help!-TAz69x 23:32, 30 November 2007 (UTC)