Modify section header in VS2012 - visual-studio-2012

I am having a Windows driver based solution and working on Visual Studio 2012. I want to modify section the permission flag of section header. I tried to do it with properties->linker but it did not modify the section header when i browser section header using CFF explorer.
I want to remove the write permission from INIT section header(needed for Win10). Can anyone help with that?

I got a workaround for this. We can remove the "/driver" option from linked and then change the section header value in linker option from "init,d" to init,RE!W . Worked as expected for me.

Related

Creating a hotfix, welcome message has wrong information

I'm creating a hotfix based on an installation file. When I run the hotfix, the first dialog box shows "Welcome to the hotfix for App version . Nothing in my hotfix project refers to this wrong number and I don't see a way to override the value it's putting there. The .msi file in the base image folder did have references to the wrong version number, but I changed them. The hotfix file is still showing the wrong version number. Any idea how I can override this or find where it's pulling this wrong version number from? Thanks!
Open Dialog editor in InstallShield (located under User Interface > Dialogs) and find InstallWelcome dialog. See what its text looks like; maybe there is some hardcoded version referred there. If there is no hardcoded version, see what property is being referred to in the text (e.g.[ProductVersion]), and make sure it's a correct property and it's set to the correct value.

Chamilo - Search bar into footer

I have a problem with Chamilo 1.9.8. I want to add Google Search bar to a website into the footer, but I don't know which file I have to edit to insert the code, and where that file is situated.
I have never worked with this system, so I am new in this category, please can you help me?
If it's just a matter of updating the footer, you can find it in 1.9.8 in main/template/default/layout/footer.tpl
Note that, for these changes to take effect, you'll have to delete the template caching in archive/twig/ (just delete the contents of that folder) or click the "Archive directory cleanup" link on your Chamilo administration panel.
You can also find useful tips about modifying the templates in the (unfinished) developers documentation here: https://github.com/chamilo/docs/tree/master/1.9/en/developer.
Note that:
you should update to 1.9.10.2 to avoid security flaws
1.9.10 has a way for you to create a copy of the "default" template and configure it in your configuration file (search main/install/configuration.dist.php for $_configuration['default_template']

Script error: Object does not support property or method in MFC

I just created a simple MFC dialog based application in VS2005. Whenever I am trying to add variable to an edit control I am getting this error.
I am new in MFC. Please help me fix this :(
Using: C++98 with VS2005
Did you add any variable(control/value) to any of your control and fortunately you deleted it?
If so, you have to remove the ID for control in resources.h and app.rc and also variable initialized in .h files and used in your cpp files.
It may also cause this problem. But im not sure.

Why don't I get System.Windows?

When I type:
System.
I am expecting Windows to be one of the options available with the Intellisense, but it is not.
Why not?
Maybe you don't have a reference to the correct assembly. You need to make that yourself if you have a console project for example.
You need to right click the references and add a new one:
System.Windows.Forms
See also How to: Add or Remove References in Visual Studio
You don't have a reference in your project to System.Windows.Forms?
Writing a console app?
Are you working on a Windows Forms project?
If so, you should have a reference to System.Windows.Forms added in your project references.
But for a class library (and probably eg console or ASP.NET project), you won't have this by default.
You need to add reference.
go to -> Add Reference ".Net" -> "System.Windows.Forms".

Add Custom WPFControls to toolbox automatically

I am trying to add a WPF control to the toolbox in VS 2010. I tried setting the ToolboxAutopopulate.This works only within the project. But i want the control to appear every time i open the VS irrespective of the project.
I tried making an entry into the RegEdit after deleting the tdb fils. It somehow doesn't appear in the toolbox still. Can somehow help me?? I don't know what i am missing. If someone wants to know more details i can provide.
The steps i followed were:
Close all running Visual Studio 2008 instances.
Delete *.tbd file located in your \Local\Microsoft\VisualStudio\9.0 folder (for example: C:\Users\\AppData\Local\Microsoft\VisualStudio\9.0 in Vista or 7).
Add a new key to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\ToolboxControlsInstaller
or on x64 OS
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\ToolboxControlsInstaller
The key is named like "QLeftPanel, Version=3.5.30729.1, Culture=neutral, PublicKeyToken=cd45d629e1d8d371", where you replace the WpfCustCtrl and PK token value with your own.
In the key created in step 3, add the following values:
(Default) = "My WPF Controls" This is the toolbox tab name, String
CodeBase = "C:\Users\Aneesh\Documents\Visual Studio 2010\Projects\QSharedLibrary\QSharedLibrary\bin\Debug\QSharedLibrary.dll" This is the path to your control assembly.
WPFControls = "1" This is important!
Try installing your control's design.dll and visualstudio.design.dll into GAC. then, take a backup of your existing tbd and delete the existing. Now, launch the Visual Studio, it will create the new tbd files. Now, It should load.

Resources