LEFEVRE Damien .net

1 2 3 4 5 6 7 8 >

Monday 26 September 2011, 09:42

VisualAssist + CUDA

Setup:

  • Win7 Pro x64
  • VS2008
  • VS2010
  • CUDA 4.0
  • VisualAssist

To enable VisualAssist to work with CUDA I did the following:

  • Close all VisualStudio instances
  • Copy C:\Program Files (x86)\Visual Assist X\AutoText\Latest\Cpp.tpl to C:\Program Files (x86)\Visual Assist X\AutoText\Latest\Cu.tpl
  • Run VisualStudio once and close
  • From regedit, open HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\VANet9 (VS2008) and/or HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\VANet10 (VS2010)
  • Add ".cu;" to the ExtSource key
  • Add ".cuh;" to the ExtHeader key

Start VS again and you should be good to go!

Source: Cuda Forum

Tuesday 19 April 2011, 09:36

VisualStudio - Post build commands

A small syntax reminder for the copy post-build command I like to add on certain DLL projects.

Copy $(OutDir)\$(TargetName).lib %TARGET_DIR%
Copy $(OutDir)\$(TargetName).dll %TARGET_DIR%

Tuesday 6 April 2010, 12:51

Move SVN repository into another repository sub-folder

svnadmin dump /path/to/repository > repo_name.svn_dump
svnadmin load --parent-dir new/subdir/for/project  /path/to/new/repository < repo_name.svn_dump

Wednesday 13 January 2010, 12:43

One of the funniest gag ever :D

Check this video WITH the sound :D

http://www.riemurasia.net/jylppy/media.php?id=68397

Sunday 10 January 2010, 15:41

Icons on CMFCPropertySheet missing.

When recently trying to use the CMFCPropertySheet class with CMFCPropertySheet::PropSheetLook_Tree, I ran into the problem that the class does not give any options to customize the look the the tree control on the left side.

With CMFCPropertySheet, it is possible to set a list of icons or an empty list. In both cases there is no options to have the buttons (+ or - square) or the line in the tree.

Here is one way to fix this problem.

[view]

Friday 18 December 2009, 12:48

MFC - Get application directory from anywhere (main exe, DLLs)

[cpp]
BOOL GetApplicationDirectory(CString& _sApplicationDirectory)
{
	TCHAR szPathName[_MAX_PATH];
	if (FAILED(::GetModuleFileName(NULL, szPathName, _MAX_PATH)))
	{
		return FALSE;
	}

	TCHAR szDrive[_MAX_DRIVE];
	TCHAR szDirectory[_MAX_DIR];
	TCHAR szFileName[_MAX_FNAME];
	TCHAR szExtension[_MAX_EXT];

	// Split path
	_tsplitpath_s(szPathName, szDrive, _MAX_DRIVE, szDirectory, _MAX_DIR, 
		szFileName, _MAX_FNAME, szExtension, _MAX_EXT);

	// Make safe path
	_tmakepath_s(szPathName, _MAX_PATH, szDrive, szDirectory, _T(""), _T(""));

	_sApplicationDirectory = szPathName;

	return TRUE;
}

Monday 14 December 2009, 07:19

ZoomBrowser EX installer

Those smart asses from Canon won't ship the ZoomBrowser EX installer, only updaters.

I've got an XP laptop.

So the what you should do is:

Canon does not seem to know what is a multilanguage installer either. So choose carefully alternative downloads for the language you are looking for...

Thank you Canon for wasting my time!!

1 2 3 4 5 6 7 8 >