JLinX – Blog

Weblog von Jan Linxweiler

Learn to Program the PS3’s Cell Processor

Filed under: Development,HPC — Jannis at 10:32 am on Friday, March 16, 2007

How to use #ifdef

Filed under: Development — Jannis at 2:07 pm on Thursday, March 15, 2007

#ifdef ABC
   foo();
#elif DEF
   foo2();
#else
   foo3();
#endif

#ifndef GHI || defined(JKL)
   foo4();
#endif

#if !defined(GHI) || !defined(JKL)
   foo5();
#endif

Install Boost on Windows Using VS2005

Filed under: Development,Windows — Jannis at 3:51 pm on Friday, March 9, 2007

Image:Boost.png

(Quelle: boost.org)

To install follow these instructions from the BOOST WIKI

How to Install Boost for Visual C++ Users

An unambiguous guide for Visual C++ users who have never installed 3rd party libraries before. In this example VC++ has been installed to d:\Microsoft Visual Studio 8\ Subtitute your install directory accordingly.

  • Download and extract: boost_[version].exe and boost-jam-[version]-ntx86.zip . You can obtain the most recent versions from SourceForge.
  • Move bjam.exe into the directory you extracted boost to.
  • In a command prompt, navigate to this same directory.
    • If you’ve installed VC++ in the default location – c:\Program Files , run the command: bjam install
    • Users who have installed VC++ in another directory use the command: bjam.exe “-sVC80_ROOT=d:\Microsoft Visual Studio 8\VC” -sTOOLS=vc-8_0 install
    • Add –prefix=d:\Boost\ if you want to install it to another dir besides c:\boost **Boost will begin compiling. When finished, all the necessary files (.hpp .lib and .dll) for using boost will reside in c:\boost

You probably need to set PATH to “c:\windows;c:\windows\system32;c:\windows\wbem” to make it work.

Adding Boost Files to Your Projects
  • Since boost is extremely useful, it’s likely you’ll want to set the default search path for .lib’s and .hpp’s in all your projects. After these next steps you will be able to declare boost headers with this syntax: #include <boost/filesystem/operations.hpp>
    • In MSVC navigate to Tools -> Options -> Projects and Solutions -> VC++ Directories.
    • You should see on the top right corner text that says ‘Show Directories For’
    • Choose ‘Include Files’ and add the directory c:\boost\include\boost-[version]
    • For libs, choose ‘Library Files’ and add the directory c:\boost\lib

That should be it. Try one of the examples detailed in the Boost documents.

Infrared Remote Control for Your Computer

Filed under: Development,Hardware — Jannis at 10:45 pm on Monday, February 19, 2007

The RedRat3 is a USB based infrared remote control input and output device for your computer.

 (Quelle: redrat.co.uk)

Schneller rechnen mit CUDA

Filed under: Development,HPC,Modeling & Simulation — Jannis at 4:00 pm on Sunday, February 18, 2007

Nvidia stellt das Entwicklungskit für seine CUDA genannte Technik zur Beschleunigung wissenschaftlicher Berechnungen zum allgemeinen Download bereit…

(Quelle: heise.de)

Visual C++ Libraries DLL Deployment

Filed under: .NET,Development — Jannis at 9:08 pm on Thursday, February 15, 2007

Ayman Shoukry collected a number of usefull links to the MSDN website depending on the deployment method. Go to Ayman’s WebLog

Articels on MSDN:

Article on Code Project:

 

 

Private Assembly install under app directory.

The VC Libs files can be installed under the app directory as a private assembly. The files required for the private assembly are under <VS install path>\vc\redist. Copy the required sub directories to the app directory.

Pros : App does not have a setup, xcopy deploy, Non admin install, Select the assemblies that the app uses, run from share

Cons : Not suitable when a product installs multiple binaries and these are installed in various directories (assembly has to be duplicated under each directory)

http://msdn2.microsoft.com/ms235291(en-US,VS.80).aspx

(Quelle: Ayman Shoukry’s WebLog)

 

Typische Fehlermeldungen, die auftreten wenn die C++ runtime libraries (CRT DLLs) nicht gefunden werden sind folgende:

  • “The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem”.
  • “Diese Anwendung konnte nicht gestartet werden, weil die Anwendungskonfiguration nicht korrekt ist. Zur Problembehebung sollten Sie die Anwendung neu installieren.”

Wenn das Manifest nicht gefunden wird, wird der Fehler R6034 verursacht:

  • “R6034 – attempt to load C runtime library without using manifest.”

Zitate bzgl. C++

Filed under: Development,Zitate — Jannis at 10:30 am on Wednesday, February 14, 2007

C++ makes it much harder to shoot yourself in the foot, but when you do, it blows off your whole leg.

– Bjarne Stroustrup

In C we had to code our own bugs. In C++ we can inherit them.

-Prof. Gerald Karam

Migrieren von managed Visual C++ 2003 nach Visual C++ 2005

Filed under: .NET,Development — Jannis at 3:10 pm on Tuesday, February 13, 2007

Zu beachten sind auch die Änderungen beim Deployment.

Patterns Home Page

Filed under: Blogs & Links,Software Engineering — Jannis at 9:34 pm on Sunday, February 11, 2007

This is the central source of information on patterns.

Hillside.net

Dependency Inversion Pattern

Filed under: Development,Software Engineering — Jannis at 6:53 pm on Sunday, February 11, 2007

aka Inversion of Control (IoC)

« Previous PageNext Page »