Syndicate content
  • cl.exe has a special option to be told that the input file is a C (/Tc) or a C++ (/Tp) file. This is necessary if you want to use an extension other than the default .c, .cxx and .cpp. For instance, many people use .cc or .c++ for C++ files. Just add the /Tp command line option and your file will be accepted as a C++ file no matter what the extension is.

    Also, in your environment, you can change the editor and Open/Close feature to recognize these files. The Microsoft page available here:

  • Today I started having some problems with my tables.

    I had a default value set to Now() and it would tell me that it was invalid. I removed it and the save worked.

    What would really be the problem though?

    The thing is the compiler is used against ALL your Visual Basic modules and if any one of them fails to compile, then you get the error. I had one error in one module. Definitions of external (DLL) functions such as GetUserName() and GetComputerName() must all appear before any function declation. I had the GetUserName() declaration such as:

    Private Declare Function GetUserName Lib ...
  • Try to recompile Qt with Pavel's instructrions...

    I did not encounter much problems, although the examples failed. It looks like jom would be the problem as some people reported not having problems following the same steps, but using nmake instead of jom.

    The instructions go like this: [Update: the links below all stopped working.]

    1. Visual C++ 2010 contains all necessary SDKs for Qt compilation. However if you plan to use Qt with Phonon you need to install additional software from Qt for Windows Requirements list.
       
    2. Download and extract Qt 4.7.4 Sources. (Or Qt ...
  • Today, as I was trying to run a 64 bit application in Release mode under Windows 7, I got a crash about a NULL pointer. There is the debuggee (<- well known Microsoft spelling of Debugger) error window:

    Unhandled exception in ... Access violation reading location 0x0000...

    Unhandled exception at 0x52740ccf in guikeyboard_test_developer.exe:
    0xC0000005: Access violation reading location 0x0000000000000000.

    So... according to this error, the software access a NULL pointer. It took me some time, but the problem was not a NULL pointer, it was an unaligned memory access. In other words, it is trying to write a a pointer that is not 16 bytes aligned, which is ...

  • I have had a BIG problem with compiling zlib. Now I have my own normal configure.ac file, but the most important part of that compile was for me to find out how on Earth can you generate the dynamic library (.dll and .dll.a files) instead of the static library (.a only file)?!

  • Under X-Windows, I use the QWERTY keyboard because I'm so used to it. But once in a while I want to write something with an accent or a special character. To do that I use the compose key. In my case the compose key is the Caps Lock key. So I push the Caps Lock once, and then two other keys to get the character I want. For example, the c with a cedilla is c with a comma: ç.

    The following is the content of the Compose file available on Linux Ubuntu (/usr/share/X11/locale/en_US.UTF-8/Compose):

    # UTF-8 (Unicode) compose sequence
    # by David.Monniaux
    #
    
    # Part 1 - Manual ...
  • On my sites, I'm using boost to allow much faster access time (close to instantaneous in comparison to hitting Drupal and all the database accesses...)

    The result is great! But it generates some problems when you test a page. It does not get refreshed... Easy, you can clear the cache. Not advisable when your cache is around 10,000 files. A better way, is to go to that page and click on "Flush Page" (available in one of the blocks offered by boost.)

  • Lately, I noticed that I always had a clamav.inoc.net connection. I was wondering why... I did install clamav but I did not recall changing anything in Apache where I'd get requests from the outside that would look like clamav.

    The fact is I also installed freshclam. By default, that gives you a line like this in your netstat -a64 listing:

        tcp   383     0 halk:38272       clamav.inoc.net:www     CLOSE_WAIT

    Most of the time you won't catch it when it is still connected and sending/receiving data. The deamon that accepts the connections is freshclam and it will save the new data ...

  • As I work in consoles every now and then, I run in that one problem:

    Some text is written in Dark Blue over the Black background:

    This is a good example of what I'm talking about.

    And if you can read that text, wow! (without selecting it first.

    So... how could you change the color of that blue to make it readable? There is a way by sending some escape command to the console:

    echo -e "\\e]R\\e]PC6495ed"

    That command changes the color of the blue to a light blue (somewhat "cyan", although not light cyan.)

    The "\\e]R" part is to reset the colors to ...

  • Today I started testing a lot of my JavaScript / jQuery code from a website I am building for a customer. I got an error, at some point, saying:

    SCRIPT5007: Unable to get property 'replace' of undefined or null reference

    The error was in link with the 'replace' function being referenced on an innerHTML of an element. More specifically, one of those XML element (probably the top most one.)

    The fact is that Internet Explorer does not support innerHTML in an XML document. Not to be too surprised about that, XML is not HTML so there is really no reason why innerHTML should be ...

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

Find the page/content you are looking for with our index.