How to change the build type to Release mode in cmake?

To change the build type, on Windows, it must be done at build time: cmake –build {DIR} –config Release By default it’s Debug. I’m still looking for a way of changing this default. CMAKE_BUILD_TYPE doesn’t work of course, and tweaking CMAKE_CONFIGURATION_TYPES doesn’t work either, obviously for the same reason, they only apply for Unix makefiles, … Read more

Display varbinary Image in Gridview

The following will show how to retrieve an image from SQL Server and display it in a GridView on an ASP.NET web page. Create a table in the database: CREATE TABLE Surplus([Surplus Id] int not null, Department nchar(50), Category nchar(25), Item nchar(75), Visible bit, TransferableImage varbinary(max), CONSTRAINT PK_Surplus_SurplusId PRIMARY KEY([Surplus Id])); Note: If a table … Read more

Display Start Up Picture

If you’re looking for the simplest way, you can use the .NET Framework’s excellent built-in support for splash screens. You’ll have to put aside any irrational fears that you might have of including something with the name “Visual Basic” in a C# application, but this way will save you from having to roll your own … Read more