mscorlib dll faild to add in silverlight application reference - silverlight-5.0

I removed mscorlib library(dll) by mistake from my silverlight application's reference.
Now I am trying to add the same library again,but not able to add.When I click on add button after selecting the library in .net assemblies reference , add item window closes without adding the library.
What could be the problem and solution.
Do I need to re install silverlight?

Just open the silverlight applications .csproject file in notepadd++ and add
tag in tag where all the references are given.Rebuild the solution and its done.

Related

How to create window in dll application with wxWidgets?

I want to make dll application with wxWidgets.Long time I use c++ Builder for making dll application but I also want to work on Visual Studio.Please help!
I search on google about this but did't find any information about this or just have 2 example and one is didn't work and one is in wxWidgets folder and I cant understand how to make it work.

Sitecore 7.2 Command Configuration

I'm trying to get a command working in a new instance of Sitecore 7.2. The command that I've added lives in a different assembly than the main project for this web application. I've added the full path to the file for the command, along with the name of the compiled assembly in the App_Config/Commands.config file.
In Sitecore, I've added the command template under the branches/user defined folder and entered the command name from Commands.config, in the Command field. I've then added the command as an insert option on the appropriate item in Sitecore.
When I log on as an admin and click the command link under the Home tab in the top menu, nothing happens. No error is generated and the pop-up window does not appear - just nothing.
Having configured commands many times before in earlier versions of Sitecore, I can't think of what I'm missing... The only difference this time is that the file for the command is located in a different assembly. Am I missing a step somewhere that is needed, in order for this to work? Did something change in Sitecore 7.2?
It looks like there was an error in the reference to the namespace. Once I updated that, the code ran. The frustrating thing was that Sitecore wasn't generating an error. It just wasn't responding, at all.
I had a similar situation the other day. I had a Visual Studio solution with just one Class Library project and one C# class in the project. I wrote some code in that class, built the solution and moved the DLL into my Sitecore website's bin folder. I tried running the feature in Sitecore and nothing happened. I confirmed I was referencing the DLL appropriately. I then used the debugger in my Visual Studio to attach to my process and sure enough, the method parameters that Sitecore was supposed to set in my method signature were not getting set.
After trying a lot of different things, I decided to add a Web Application to my solution. I then moved the code from the Class Library to the Web Application and updated Sitecore to reference the Web Application DLL instead of the Class Library DLL. All of the sudden, my method parameters were set and the rest of my code worked as expected!
So my suggestion is: if you have the code the in a Class Library right now, move it to a Web Application project and see if that helps.

Custom Wizard (C/C++) VS10

i'm trying to create a template for a project (GTK+), where I don't want to have to include always the header-paths. As far as I understand the only possibility to do that in C is to create a custom wizard.
I already created one, and added "Additional Libraries" (in the function AddConfig()). But I can't seem to find how to add VC++ Directories. I guess I could try to add the header-files directly in the project, but I'd rather just "link" to them.
Thanks.
Such tasks can be solved much easier by means of custom property sheets. A property sheet, once configured and saved, can be added to any C++ project by two mouse clicks in the property manager.

Adding an OpenGL framework in Xcode 4

I'm using Xcode 4 for my C++ programming. I want to add a framework, specifically an OpenGL framework, and I'm not quite used to where things are yet. It says in the help documentation that I should select the target, and from there I get the summery pane where I can add a linked framework/library. When I do that, the summery pane doesn't show up. It does show up when my target is a cocoa application, but since I'm programming in C++, I choose the command line tool, and select the language from there. So, how exactly do I add the OpenGL framework to my target?
maybe go under "build phases" (instead of "summary") and then click "Link Binary With Libraries" and add button then search OpenGL.framework
im not sure 100%, im new to this too :)
The easiest way is to go to your project settings, and under Linking -> Other Linking Flags add:
-framework OpenGL
In your project, create a group 'frameworks' (not really necessary but keeps things organized)
With Finder goto: /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks
Locate the OpenGL.framework folder
Drag and drop the folder into your XCode project (in the frameworks group)
Don't copy the files(!)
Probably you want to copy 'GLUT.framework' as well.

win32 project designer

anyone know of some good software that can help me design the form for my win32 project?
or is there a way to get the form designer in visual c++ for win32 projects?
VS contains a dialog editor. To access it add a resource (.rc) file to your project, open that file and select "Insert Dialog" from the Resource View context menu.
If you don't want to use a dialog from a resource file the only way you can go is just code the child windows creation and allocation by hand.
IMO, there is no such form designer which is not part of an external library package. You will have to use a library which has a form designer with it e.g., MFC/ATL/QT etc.
If you are doing pure Win32 application development without any external library, then I am afraid you will have to code everything by hand.