14
голосов
7ответов
5067 просмотров

Visual C++ standards compliance

I was wondering if, and to what degree, does Microsoft's Visual C++ compiler conform to the current C (C90/C99) and C++ (ISO/IEC 14882:2003) standards. Unfortunately I'm only able to find partial information on the subject, I may be looking at all the wrong places. Any pointers to related resour...

4
голосов
2ответов
1020 просмотров

Rules to Develop a Delphi Windows 7 App

Where can I find the best set of rules to follow for developing a Delphi application for Windows 7?

2
голосов
1ответов
2310 просмотров

Should a colon character be escaped in TEXT values in iCalendar (rfc2445)?

My understanding from reading the specification (http://www.ietf.org/rfc/rfc2445.txt) is that the ":" character should not be escaped in text values like DESCRIPTION. From the RFC: The "TEXT" property values may also contain special characters that are used to signify delimiters, such...

3
голосов
6ответов
867 просмотров

What is the point of `void func() throw(type)`?

I know this is a valid c++ program. What is the point of the throw in the function declarement? AFAIK it does nothing and isnt used for anything. #include <exception> void func() throw(std::exception) { } int main() { return 0; }

18
голосов
4ответов
4224 просмотров

Do pointers to string literals remain valid after a function returns?

Is the pointer returned by the following function valid? const char * bool2str( bool flg ) { return flg ? "Yes" : "No"; } It works well in Visual C++ and g++. What does C++ standard say about this?

1
голосов
2ответов
1048 просмотров

How to send programmatically an email from another mail client than outlook or outlook express?

From within your application you can send an email by using MAPI functions ("MAPISendMail"). But if there is another mail client installed like "Thunderbird" or "David InfoCenter" the use of MAPI functions does not work, because "Outlook" or "Outlook Express" is not the standard email client. Th...

0
голосов
3ответов
58 просмотров

for attribute - standards wise

How this code should be (asp.net standard)? <label for="jobno">Job#</label> <input id="TextBox_JobID" name="jobno" runat="server"/> <input type="button" value="Show Job" class="fbutt" id="Button_showJob" onserverclick="Button_showJob_ServerClick" runat="server" /&g...

0
голосов
2ответов
193 просмотров

Rendering differences between Firefox 3.0 and 3.5

I'm working on a large site and starting on browser compatibility next week. Just had a glance in some different browsers to have so idea of whats ahead of me and i noticed differences in FF3.5 vs FF3. The site has been built in FF3.5/IE8. So I'm wondering if there are know issues between the tw...

5
голосов
5ответов
4971 просмотров

Declaring fixed-size integer typedef in Standard C

Is there a reliable way to declare typedefs for integer types of fixed 8,16,32, and 64 bit length in ISO Standard C? When I say ISO Standard C, I mean that strictly: ISO C89/C90, not C99. No headers not defined in the ISO standard. No preprocessor symbols not defined in the ISO standard. No t...

6
голосов
4ответов
4296 просмотров

how can I write an ANSI C console screen buffer?

I'm working on making an ASCII based game, and everywhere I look people are saying to use Console.Write() from MSDN, which is dandy and all if you're using Windows, but I'm not. And thus, I'm trying to write a function, or group of functions in C that can alternate between two screen buffers, an...

11
голосов
8ответов
15125 просмотров

What "standard" application return/exit codes should an application support?

Is there such thing as a standard set of application return codes? Things like returning 0 for success 1 for failure, and then so on? I have a Windows Server application that I am adding some return error codes and wanted to stick to standard codes in addition to the app specific ones that I wil...

7
голосов
3ответов
813 просмотров

Potential problem with C standard malloc'ing chars

When answering a comment to another answer of mine here, I found what I think may be a hole in the C standard (c1x, I haven't checked the earlier ones and yes, I know it's incredibly unlikely that I alone among all the planet's inhabitants have found a bug in the standard). Information follows: ...

1
голосов
4ответов
1798 просмотров

ANSI C functions namespace in ISO C++

Consider the following small program: #include <cstdio> int main() { printf("%d\n", 1); std::printf("%d\n", 2); return 0; } What does C++ standard say about importing C library functions into global namespace by default? Can you point me to the relevant C++ standard section...

1
голосов
2ответов
445 просмотров

Standard and Best practice in dealing with Muliple/Complex Columns with Forms

I've want to know what is the best practice or approach in dealing with multiple and complex columns with a form inside. here's an example of the form I'm dealing with How to properly write a HTML markup for this? If I wrap every form element with a 'DIV' for every column it would take a lo...

5
голосов
7ответов
337 просмотров

Is it possible to write a JavaScript library that makes all browsers standards compliant?

I'm not a JavaScript wiz, but is it possible to create a single embeddable JavaScript file that makes all browsers standards compliant? Like a collection of all known JavaScript hacks that force each browser to interpret the code properly? For example, IE6 does not recognize the :hover pseudo-cl...

3
голосов
7ответов
1228 просмотров

How to make and apply standards for UI development?

I work in a small and young team of developers and we have problems that we are not sure how to solve. On previous projects every developer have been working on tasks that were based on use cases. So, upon setting the system architecture, each team member worked on user interface and business lo...

5
голосов
1ответов
760 просмотров

Portable way to achieve ls' -v flag (i.e. sort by version)?

I'm working on a some build scripts that I'd like to depend on only standardized features. I need to sort some files by version. Say the files are bar-1.{0,2,3} bar-11.{0,2,3}. By default, ls gives me: bar-1_0 bar-11_0 bar-11_2 bar-11_3 bar-1_2 bar-1_3 Getting what I want is easy using 'ls -...

25
голосов
4ответов
1346 просмотров

Standard Library Containers with additional optional template parameters?

Having read the claim multiple times in articles - I want to add this question to Stackoverflow, and ask the community - is the following code portable? template<template<typename T, typename Alloc> class C> void f() { /* some code goes here ... */ } int main() { f<std::vecto...

2
голосов
1ответов
682 просмотров

CSS best practice for portlets

I need to redone existing project CSSs' - more than 5 files, which describes all our porlets UI to standard CSS file,called portlet-spec-1.0.css So, I've found one specification for this: http://www.ja-sig.org/wiki/display/UPC/JSR-168+PLT.C+CSS+Style+Definitions This spec. is obsolete,dated by ...

9
голосов
7ответов
7236 просмотров

Source of ISO data in xml format?

I was just wondering if anyone knew of a source of standard ISO data in xml format, such as ISO 3166 (Country codes/names), ISO 4217 (Currency Codes) or ISO 639 (Languages)? If it was in any way 'official' and maintained with any changes to the standards that would be great! UPDATE: I can't us...

4
голосов
4ответов
308 просмотров

Representation of dimension units in a standardized way

Suppose you want to write into a database that something is 30 meters long, or 50 feet, or the temperature was 50 kelvin, the speed was 50 kilometers per hour. How would you represent the units ? To clarify, two points: any kind of units, not a predefined, well defined subset of them. my qu...

0
голосов
2ответов
1043 просмотров

How to link a header in a standards-compliant way?

I have a block of HTML that looks like this: <div id="header"> <h1>title</h1> <h2>subtitle</h2> </div> I'm using a CSS technique to hide all that text and replace it with an image. But I want to link the whole block to the homepage. I can't wrap it i...

1
голосов
6ответов
292 просмотров

How to obtain a string describing the current platform?

I need to check the platform I'm on, meaning: processor, operating system, and operating system version. An example I currently have is i686-apple-darwin10. How can I obtain the similar string on Linux and Windows? I know that the autotools provide a detection script that produces that string, bu...

2
голосов
3ответов
477 просмотров

Expected Behavior: Sort a Paged Table's Column

When a user is viewing a paged table and requests it to sorted by a particular column, what page is shown? Is there a standard expected behavior for this scenario? I can imagine several possible outcomes, but want to know if there is a standard.

12
голосов
8ответов
5181 просмотров

Difference between scanf() and strtol() / strtod() in parsing numbers

Note: I completely reworked the question to more properly reflect what I am setting the bounty for. Please excuse any inconsistencies with already-given answers this might have created. I did not want to create a new question, as previous answers to this one might be helpful. I am working on i...

13
голосов
1ответов
3680 просмотров

Node.TEXT_NODE and IE7

I've some javascript that tests DOM node types against like this: if(node.nodeType == Node.TEXT_NODE) { Of course, it all works fine in Firefox, Safari, and Opera. But Internet Explorer 7 is complaining that Node (with the capital N) is undefined. But that's part of DOM Level 2! Do I ...

3
голосов
4ответов
1054 просмотров

Are there any alternatives to the MVC frameworks for PHP that would be considard best practice?

I'm looking for a good framework for PHP and see most offer the MVC approach, are there any other (or better) design methods/approaches that would be considered more efficient or best practice? MVC is starting to look dated but I wanted to know if it's still considered the industry standard.

117
голосов
5ответов
92055 просмотров

Hex representation of a color with alpha channel?

Is there a W3 or any other noteworthy standard on how to represent a color (including alpha channel) in hex format? Is it #RGBA or #ARGB?

46
голосов
2ответов
23527 просмотров

What differences are expected of XHTML5 versus HTML5?

What differences are expected of XHTML5 versus HTML5? I understand that XHTML5 is the XML form of the language and HTML5 is the SGML form of the language, which means obvious minor syntax differences. Will there be any further differences? Will XHTML5 deprecate completely worthless elements th...

0
голосов
3ответов
244 просмотров

Methods to make a layout compatible with window resize as well as font resize

Is there a good advisory / best practice manual etc. out there which outlines methods to make a page layout fluid in the following two ways: a) The layout should be robust under window resize b) The layout should seamlessly handle font resizes committed by the user Every time I design a page l...