Syndicate content

Pages with category Development

  • Yesterday I installed VTune on a system at one of the companies I'm working with. It worked like a charm and I could run a few analysis and see problem areas in the system.

    Later I worked on another C++ project in Linux, this morning I woke up on MS-Access, and did a little Drupal after that (PHP). I came back on Visual Studio C++ and... the VTune button is disabled! Not available at all somehow and no error message or anything!?

    Turns out, like yesterday I had to start the VTune version of Visual Studio! Without that special version, it simply doesn't work, but it still appears and ...

  • An RSS feed is very common on all new websites. It has been around for years now. As of today you could listen to thousands of RSS feeds and be totally swamped by all the news...

    But what is an RSS feed?

    The way users know about RSS feed is in the form of a URL. The URL points to a file on a website that includes data. That data file uses the specific RSS or RDF format, which uses XML as the base format.

    So it is in fact very easy to generate an RSS feed. All you have to do is write an XML file with the proper tags and attri as defined on the W3C and AtomEnabled ...

  • Look at the SHGetSpecialFolderPath()1 function! You can actually use names such as "My Documents" and transform them a valid path as you would expect (i.e. C:\Settings & Stuff\username\My Docs\...).

    And yes! If you have no clue about that function, that's not going to be easy to find it...

    Note that there has been talks about creating such functions under Linux. There are some but so far I have not seen too many people using

    • 1. The SH stands for Shell. The explorer windows are considered shells under MS-Windows. Nothing to do with a real good Unix shell, of course.
  • I use gVim all the time, I like that editor very much (emacs is just way too much, if you ask me.)

    But once in a while I install a new server and by default they generally turn off the modeline feature. This is because there are potential security risks in link with that feature (i.e. vim starts running whatever script is defined in the text files that you edit...)

    Anyway, I most often forget about the command to enable my:

    vim: <setup>

    (I most often define the tab stops, corresponding shift width and eventually the syntax of a file.)

    Only, on those new servers, that doesn't ...

  • I had a problem for the last 2 days and had a hard time to determine what it was...

    Now I know how to resolve such a problem, so I wanted to share my finding! It's very simple, but writing about it here may help me later to save time...

    So... I wrote a C++ class for a DLL, this means I want it's public functions to be exported:

    class MY_CLASS_API myClass {
    public:
        ... // declarations and functions
    };
    

    Up to here, nothing strange.

    The MY_CLASS_API is a macro defined in some random header file:

    #if defined(MSWINDOWS)
    #  if MY_CLASS_EXPORTS
    #    define MY_CLASS_API
    
    
  • Introduction

    I just faught for a few hours trying to get the WNetAddConnection2() to work in my program and found out two things that I did not see explained anywhere in the documentation...

    Folder that Works

    I'm not too sure whether that's a new thing at the company I worked in to implement this function or whether that's every time, although I've seen other posts on the Internet with the same sort of path so I would imagine that this is a "normal" Microsoft network feature.

    The fact is that to connect you have to use the name of the server followed by some ...

  • In cmake, you have a cool feature which allows you to create a file.

    First you use a WRITE, then you use the APPEND to add more lines to the file.

    That file may be a shell script, though. In that case, you run in a problem whenever you want to write a variable which uses the curly brackets (as in ${TEST}), because cmake sees those as its own variables.

    There is an example of script that we use in our Snap! development.

    file( WRITE  ${lint_script} "#!${BASH}\n"                                                            )
    file( APPEND ${lint_script} "if test \${3##*.} = ...
  • Today I wanted to check out a set of floating value in my Visual C++ development environment.

    You can use the OutputDebugString() to print a debug string in the VC++ output window when running a software. This is quite handy, but when working in C++, string handling can be tedious. I need to create a message and wrote something similar to this:

    wchar_t msg[128];
    swprintf(msg, "Float: %f\n", my_float);
    ...

    [toc hidden:1]
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.

  • Edgy

    Each version of Ubuntu gets named after a Walt Disney character. Edgy Eft was assigned to 6.10. It is most often abbreviated to just Edgy.

  • IrfanView
  • link
  • loadavg
  • variable