How can i store multiple .ico files into a .DLL file - dll

How can i store multiple .ico files into a .DLL file that can be opened and read from just like SHELL32.dll.
i am using it for a few .ico files that i am making that a few of my friends might want to use also, and it would be much nicer to use a .dll like SHELL32.dll.
i have:
office 2007 (the built in VB)
Visual studio 2010 express
i might still have some old verstion
of BASIC (command prompt programming)
i have windows 7 home premium 64bit

Create a DLL project in VS10. Edit resources. Add as many icons as you want.

Visual Studio should have a resource compiler that can bundle icons into exe or dll formats. You could probably use a wizard of some kind to create a new dll project, and then just stuff that with the icons.
Visual Studio Express might not be as capable. As an alternative, if you are up for it, MinGW has a resource editor, and MinGW is free.

I am not sure about the limited resource editing capabilities of VS2010 express, as I remember it was painful to add version information to resources under C++ Express Edition.
My quick research resulted in GConvert to be a suitable program that is unfortunately not free.

You could do that very easily using resource compiler tools like Resource Hacker or Resource Tuner. You can save them in .dll or .res formats

Related

Publish WinForm that uses .dll in one file

How can you publish a WinForm that uses a .dll extension into one .exe file? I'm using VB.NET on Visual Studio 2013.
I have tried several methods such as using only the program .exe file from both the Debug and Release folder but these didn't work in isolation - a runtime error happened every time a command from the extension was used, as if it didn't exist.
My problem is packaging the entire program into one file. I don't want to have to use ClickOnce applications because you can't use a custom logo and so it kinda looks bad. I'll use it if there's no alternative.
I realised that the answer was to use the setup.exe file when publishing. Also, changing the logo of a ClickOnce program is possible.

How do I point CodeBlocks and Visual Studio Express 2008-2012 to custom Include and Lib directories?

This is a tricky question... I have put together a compilation of DirectX, OpenGL and Windows SDK Include and Lib files into a single directory called, "AllCode." Inside that are Lib and Lib/x64 Directories, and an Include Directory. Essentially everything from DirectX 7 to now is in there. You can check out the page I have this on here:
http://hi-techheadache.blogspot.com/p/blog-page.html
The point of this is to make it easy to compile and run code from any book. I want CodeBlocks and Visual Studio Express 2008-2012 to be pointed, as it were, to my AllCode directory, so that anytime it needs to refer to any of those files it can. I don't want any errors from missing files! I want to code something from a book like, "Programming A Multiplayer FPS in DirectX" by Vaughan Young and expect that it will compile, link and run without issue! How do I set each IDE up for this?
BTW I'm on a Windows 7 64-bit machine. All drivers updated and installed. Running the latest version of CodeBlocks, Visual Studio Express 2010 SP1 and Visual Studio Express 2012.
You can create an empty project that specifies the required settings. You want to specify include directories, and add libraries to be passed to the linker. You can save the project somewhere, and then make a new copy of it every time you need to start a new project. You could even include some boiler-plate code if appropriate.
Certainly on Visual Studio you can take this approach further and convert the project into a fully fledged template that appears in the new project dialog: http://msdn.microsoft.com/en-us/library/vstudio/s365byhx(v=vs.100).aspx. I expect that CodeBlocks has similar functionality.

Can you create a .exe with Visual Studio

I know that visual studio has A LOT of required files to launch anything through an executable, is there a way I could create an .exe that doesn't require all the excess files like you would with a JAR file? I know they are completely different but I'm just trying to find out what we can do other than installing the application on the users PC. Thanks!
is there a way I could create an .exe that doesn't require all the excess files like you would with a JAR file?
Partly. If you're using VB.Net, you will always need to verify that the machine where you run your executable has the .NET Framework version which you target.
Most systems already have some .NET versions installed, which will allow your .exe to "just work" (provided you don't use any libraries apart from the framework). Targeting an older .NET framework (like 3.5) will allow your exe to work on any system with .NET 3.5, without any other files.

Visual Studio 2012 - Custom prerequisites are not appearing in the Properties > Prerequisites dialog box

I've created my first Office Add-in using Visual Studio. It targets the 4.0 .Net framework and was created using the new VS 2012. I need to distribute/install this project on various 32-bit XP and 64-bit Windows 7 computers around the office. So I configured the project to be installed on XP (which was my first speed bump because I didn't realize VS 2012 needed an update in order to make a solution that was XP compatible). Now that I have a valid win32 application, I am getting another error:
The following error occurred attempting to install 'C:\filepath...\Import Contacts.vsto':
"No application is associated with the specified file for this operation."
After doing some digging, I think I need to install the Microsoft Visual Studio Tools for Office Runtime on the client computer. To do this, I would like to use the prerequisites properties for the project. So I read up on creating custom prerequisites using some noteworthy sites (e.g, Creating Bootstrapper Packages, Application Deployment Prerequisites, Adding Custom Prerequisites, and Creating a Bootstrapper package for Office 2013 in Visual Studio 2012). I created the files according to that last URL (even though I'm not sure it pertains to the package I need just yet), but it is not appearing in the dialog box under Project > Properties > Publish > Prerequisites
If you read the article, it says the VS prerequisites dialog box should automatically update once I restart VS 2012, which I did but to no avail. I know I'll need to use this feature again in the future, so I would really like to know what I'm doing wrong and fix this. Please help! And I promise to quickly give the ACCEPT to whoever helps me fix this problem! Thank you in advance.
I didn't have any problems following the directions given in the web page and got the bootstrapper added to the Prerequisites dialog. However, there are plenty of possible ways to get it wrong. Some possibilities:
Triple-check the folder you added these files to. Be sure that you picked Program Files (x86) on a 64-bit version of Windows and not Program Files. And be sure that you now see the added VSTOR40 folder along with the other existing bootstrapper folders, like ReportViewer and VBPowerPacks.
You do not have write permission to this folder, UAC prevents copying files there. Be sure that you managed to copy them from, say, an elevated command prompt. Right-click the Command Prompt shortcut and click "Run as Administrator".
If you created the .xml files with Notepad then make sure you didn't accidentally saved them with the .txt extension. If necessary, put Explorer in "programmer mode" so you can see the filename extensions. Control Panel + Folder Options, View tab, untick the "Hide extensions for known file types" checkbox. If you now see product.xml.txt then rename the file to product.xml, same for package.xml.txt
If you created the .xml files with Notepad then be sure to save the file in UTF-8 encoding. File + Save As, Encoding combobox.
For all those who still may face similar issue I think that I found the cause of this issue. It seems that copying folder with custom bootstrapper package (and all necessary files in it) does not "refreshes" the list of available packages. Only when i went through this walkthrough and manually created folder in %Programfiles%\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\ for sample package from this walkthrough my package has shown

How to create DLL library on Windows with WxWidgets?

I'm looking for a simple example how to create a DLL library on Windows with WxWidgets.
I need use some wxWidgets API on DLL and it'll called from Delphi.
There is the "dll" sample showing how to do it in your wxWidgets directory or you can view it online at https://github.com/wxWidgets/wxWidgets/tree/v3.1.0/samples/dll
I think the easiest way is to install the free Visual C++ Express Edition, compile the DLL with that (Visual Studio project files are provided with WxWidgets). If it still works like in the old days, then you will also have to import the library for use in delphi with with the implib command.