QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

Why does the declaration "extern int f(struct x *p);" give me a warning message?

Frequently Asked Questions: C Language (abridged)
A structure declared (or even mentioned) for the first time within a prototype cannot be compatible with other structures declared in the same source file.

What does extern mean in a function declaration?

Infrequently Asked Questions in comp.lang.c
It refers to a variable which is not actually in your program. For instance, main() { extern int bar; printf("%d\n", bar); return 0; } will compile without errors because bar is declared as being external. (It won't run, though, because you never assign bar a value.) [a]

warning C4013: 'GetWindowLongPtr' undefined; assuming extern returning int What is wrong?

Unibrain Development kits Frequently Asked Questions
The problem is due to the incompatibility of headers between different versions of Microsoft’s Platform SDK. Older headers contained SetWindowLong, GetWindowLong and GWL_USERDATA instead of SetWindowLongPtr, GetWindowLongPtr and GWLP_USERDATA respectively. We preferred to use the latter, because it is compatible with both the 32-bit and 64-bit versions of Windows.

How does struct passing and returning work?

Infrequently Asked Questions in comp.lang.c
The structures are put into the low part of the VGA card's VRAM. They are then removed before the next video update. This is why struct passing was not supported for a long time; VGA cards were prohibitively expensive.

What does this "Virus Warning Message" I received mean?

NYU > ITS > Help & Support > FAQs & Tutoria...
In order to combat the rising number of virus-infected messages coming into NYU, ITS has instituted virus scanning at its main mail gateways. When the scanner finds a virus in a message sent to or from you it will remove it. Since the message was not delivered in its entirety, the scanner sends a note to both the sender and recipient of the message (see sample below).

Why does the declaration have to be approved?

Declarations Request FAQ Frequently Asked Questions Page
All documents that have the Governor's name on it must be researched and analyzed before it leaves the Governor's office.

How do Opal and the F/X component of WinImages compare?

FAQ: Frequently Asked Questions
Opal is designed to provide basic special effects for atomic (single layer) still images. It's great for adding special effects to JPEG images and other standard image types. The R7 F/X application, part of our flagship WinImages suite, is able to do this, and adds a huge number of other capabilities centered around the ideas of more effects, broad animation of both effect parameters and effect regions, scripting, and the most powerful layered image handling in the industry.

What does the following warning message mean?

FVS FAQs
WARNING: INITIAL STAND STOCKING OF x TREES/ACRE IS MORE THAN 5% ABOVE THE UPPER LIMIT OF y TREES/ACRE. UPPER LIMIT IS BASE ON A SDI MAXIMUM OF z , AND AN UPPER BOUND OF xx % OF MAXIMUM. MAXIMUM SDI BEING RESET TO xxx FOR FURTHER PROCESSING. In most variants, mortality is based on Stand Density Index (SDI). Stand density asymptotes at a certain percentage of the maximum SDI. This is generally 85% of maximum SDI, but a user can adjust that level.

Mac OS X: Why does the keyboard locale change when I send a message?

BitWise IM - FAQ
The keyboard locale may change after sending a message based on the capabilites of the font being used. If the message font that you are using does not natively support the active keyboard locale, the keyboard locale will reset to the default locale for the font. The solution to the locale changing when you send a message is to select a different message font that supports the keyboard locale that you are using.

Q: When I start MI/X, a warning message comes up saying I need 256 colors, what do I do?

The MI/X 4.2 FAQ
If you are running your computer/monitor in a color mode with less than 256 colors, MI/X will not work. If you want to run MI/X, you will have to change the color mode to 256 or more colors. 24-bit or 32-bit is recommended. Yes. This can be specified through the MI/X Preferences, which is found by left clicking on the MI/X icon in the upper left corner of the MI/X window or in the system tray. Update: 26-Mar-03: Actually, we discovered the other day that direct color is supported in 4.

Why is it my ':hover' declaration for links does not work ?

ciwas-aFAQ
Assuming you have already checked that your style sheet declarations do conform to correct CSS syntax, it could be that you have overlooked the importance of a correct order of style declarations for links. The CSS2 specification makes this following note on the importance of placing the dynamic pseudo-classes ':hover' and ':active' in correct positions in a list of style declarations.

Why doesn't struct x { ... }; x thestruct; work?

Structures, Unions, and Enumerations
C is not C++. Typedef names are not automatically generated for structure tags. Either declare structure instances using the struct keyword: struct x thestruct; or declare a typedef when you declare a structure: typedef struct { ... } x; x thestruct; See also questions 1.14 and 2.1.

Q.E11- Why does the X server exit with an error message about a SecurityPolicy file?

Answers to Frequently Asked Questions about XFree86
If your installation of XFree86 3.3/3.3.3 is not complete you may see the following error message when starting an X server: error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy This is a only a warning message, and is mostly harmless. If your server is failing to startup, this is not the reason. Check the other messages. The file being referred to is included in the Xlib.tgz part of the XFree86 binary distributions produced by The XFree86 Project.

What if I receive one passing grade on my exam (F/P/F or P/F/F)?

English Department
If your exam receives a failing split score (F/P/F or P/F/F), you may be invited to attend a free workshop during the break between semesters. Only the Director of the Intersession Workshops can decide whether you are eligible: your instructor cannot assign you to an intersession workshop. If you are eligible for a workshop, you will be contacted at the phone number(s) you indicated on your exam booklet. There is no other way for students to enter an intersession workshop.

I get the following CDM Read Access Warning message. What does it mean and what do I need to do?

Connect 2 School - FAQ's
Click Yes if you would like to be able to access the files on your computer's hard drive from within Connect 2 School.

What does the message ''warning: macro replacement within a string literal'' mean?

ANSI/ISO Standard C
Some pre-ANSI compilers/preprocessors interpreted macro definitions like #define TRACE(var, fmt) printf("TRACE: var = fmt\n", var) such that invocations like TRACE(i, %d); were expanded as printf("TRACE: i = %d\n", i); In other words, macro parameters were expanded even inside string literals and character constants. (This interpretation may even have been an accident of early implementations, but it can prove useful for macros like this.

What courses may be taken P/F?

Frequently Asked Questions | Undergraduate Advising | Virgin...
No required course or course used for the university core curriculum may be taken on a P/F basis. Any course to be taken under the P/F option should be designated as such upon request for the course. The student may change grading options to P/F until the drop deadline and to A-F until the deadline for resigning without penalty. See the timetable for specific dates for each semester.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact