.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

C++ Q&A: Deleting Managed Objects, Wrapping a Library, and More

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

More Related Resource Links

RPC and C++: Build a Template Library for Distributed Objects Containing Multiple Interfaces

  

Building a C++ template library for developing distributed object-oriented applications using Remote Procedure Calls (RPC) allows the programmer to design RPC applications that are composed of components that implement multiple interfaces. This article demonstrates the use of techniques such as assembly-level thunks to build machine code on the fly, and C++ features such as templates, conversion operators, virtual destructors and virtual function tables. Along the way, familiar C++ interfaces and classes are transformed into a distributed application. The benefits of using distributed objects rather than raw remote procedures, which include writing fewer lines of code, is explained.

Ajai Shankar

MSDN Magazine November 2000


How to maximize use of managed metadata in the document library?

  
We are creating new Intranet portal based on SharePont 2010 and we have document library with 100-200 documents. Old Intranet is based on previous version of SharePoint. End-users did not like the usability of the document library as it was hierarchical. Users needed to know, which was the folders and its subfolder to find out where is the document. We are currently investigating if we can solve this problem by using managed metadata. We know how to define term set and how to give metadata to the document, but we don't know what is the most usable way to utilizem them in the document library. Let say that end-user would like to see all documents that has managed metadata "User Guide". How to configure document library so that users see only those documents. Not all our users are skilled and we have to provide very intuitive way to search relavant documents to them. Some predefined metadata dropdown would be great.Kenny_I

Can Managed Metadata columns be edited in the DataSheet View of a Library or List?

  
Hi, I like to mass set document properties in a library using DataSheet View, the properties are columns based on Managed MetaData values. When I open the doc library in Datasheet view, those columns become read-only. I made sure the library does not require 'Check Out' and also tested it in other views then the AllItems view. Can someone confirm what is the expected functionality and or if there is a bug?

Can Managed Metadata columns be edited in the DataSheet View of a Library or List?

  
Hi, I like to mass set document properties in a library using DataSheet View, the properties are columns based on Managed MetaData values. When I open the doc library in Datasheet view, those columns are read-only. I made sure the library does not require 'Check Out' and also tested it in other views then the AllItems view. Can someone confirm what is the expected functionality and or if there is a bug? Should I be able to edit them in 2010 and were they editable in 2007 version. Please help. thanks. I came across this other post which suggests that functionality is not available ? pls someone confirm. Mass-editing metadata when documents are uploaded (individually or in bulk) to MOSS 2010  

Can SharePoint 2010 Tag Cloud webPart show managed keywords tags only from Document Library

  
Can SharePoint 2010 Tag Cloud webPart show managed keywords tags only from a specified Document Library ? Also can i add multiple document libraries tagged for a single tag cloud webpart?

C# project doesn't work with interaction with Managed C++ library

  

I have 2 projects in solution:

1. C# WinForms - Exe
2. Managed C++ - DLL

On machine where Visual Studio installed all works, but when i try to run it on Virtual Machine where only .NET framework installed I have following error message:

System.IO.FileLoadException: Could not load file or assembly 'ZTEInterface, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)File name: 'ZTEInterface, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) at POCUI.WDSClientDlg.WDSClientDlg_Load(Object sender, EventArgs e)

 

Please help me to solve it


Possible bug in SP2010 - Managed metadata column and STP document library template

  

Hello I have a problem with managed metadata on two different servers and would like to ask you to try it.

I assume you have managed metadata service running.

1, Open some document library in some site
2, Create column - managed metadata type and select some termset and set it as required.

3, Upload a document and fill in metadata when you will be asked.

4, Then edit properties and check, that metadata are there.

5, Save this library as template.

6, Deploy document library from this template and try steps 3+4.

My problem is, you can select metadata, but they are not saved. e.g. when you check document properties managed metadata are not there.

Can you confirm this behavior ?
Thank you very much.

Tomas

P.S.: one more weird thing. If you do metadata filling using office 2010 compatible application. Metadata remain there, but they are not visible in document library properties.


Tomas Paulas MCP,MCSA,MCSA-Messaging

Object reference not set to an instance while deleting picture library Sharepoint

  

Hi

Whenever we try to delete a picture library I receive object reference not set to an instance, with

Object reference not set to an instance of an object.   at Microsoft.SharePoint.ApplicationPages.ListEditPage.OnLoad(EventArgs e)
   at ASP._layouts_listedit_aspx.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Has anyone come across this error? Is there an issue with Sharepoint installation?

Regards,

RK


Radhakrishna

Deleting items simultaneously in two different site library

  

Hi experts,

I have create a workflow to copy item (documents)  in site A library to site B library, its worked fine when i run the workflow, both library can contains same documents.

But the problem is, i can't set the workflow to deleting both items. I create a delete item workflow but it doesnt work for both, it can only work for 1 library. Is there possibility for me to create a workflow that can delete both item when i run the workflow in designated library, for example, from Site A, i run a workflow to delete a document in Site A, which will delete in Site B too.

I have googled but i can't find the best way, might as well you familiar with the works and can guide me.

Thanks so much! 


Deleting Document from Library

  
When you delete a publishing document from a document library is the associated .aspx page that is created suppose to be deleted automatically as well.  I ask this because in our enviroment it does not. When I try to delete the .aspx page the system tells me to delete the original document first which I have already completed. Please advise on how this process is suppose to work if anyone knows, It would be much appreciated.

Working with Managed and Unmanaged Objects

  

Hello,

I'm working on an application where Managed objects I create need to have an unmanaged counterpart. This is because the managed side is C#/WPF for GUI/general object management, and the other side has huge amount of raw data, which needs to be processed efficiently (hence the need for C++/unmanaged code)

So I know I can access an unmanaged DLL using PInvoke / DLLImport, but really this equates to calling a 'Function' on the unmanaged side. Surely that function can create objects etc... on the unmanaged side, but how would I go about creating an unmanaged 'object' when creating a managed one? Should I call the unmanaged 'constructor/destructors' in the managed constructor/destructors as 'functions' (using DLLImport)?

The reason I ask is because I'm a bit confused about DLLImport works: I can call an unmanaged function of an unmanaged object with DLLImport without even creating the object, as if the function was not part of an object. It sounds a bit odd to me that I can call a function of an unmanaged object without creating it, so somehow it must get created in the process or an object function is acting just like an independent (non-object) function.

I want to be able to managed those objects and their lifetime, and I'm not sure h

Concerns while writing C++/CLI warpper for C# Managed library

  

I need to call managed C# library functions from unmanaged C++ code. I chose C++/CLI simple wrapper above C# library for interoperability to work. I have some questions related to that:

1. What I understand from reading numerous sites that in C++/CLI - a function would entirely be compiled to either managed or unmanaged code. Also, there is a performance penalty whenever we cross the managed/unmanaged boundary. I have the requirement to copy a tree (it represents a folder hierarchy) data structure from C# managed to C++ unmanaged. Everywhere it is said that while working in mixed mode - we must try to be chunky, rather than chatty. So, I want to cross the managed/unmanaged boundary only once to transfer the data. One way of doing this is to serialize the tree in string/buffer and parse that string/buffer in C++ unmanaged to get the tree back - but it seems overkill to me. Since I already have the objects in C# managed memory I am looking for better way of copying that tree to unmanaged C++ directly. Another way I was thinking is to write a function in C++/CLI in which I copy the entire tree into C++ counterpart structure - but for this I will need to call 'new' to allocate memory from unmanaged heap. So my questions are


a> If a function is entirely compiled into managed code - and if

Upload a File to a SharePoint Document Library - Part I

  
The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

A flexible charting library for .NET

  
ZedGraph is a class library, Windows Forms UserControl, and ASP web-accessible control for creating 2D line, bar, and pie graphs of arbitrary datasets. The classes provide a high degree of flexibility - almost every aspect of the graph can be user-modified. At the same time, usage of the classes is kept simple by providing default values for all of the graph attributes. The classes include code for choosing appropriate scale ranges and step sizes based on the range of data values being plotted. Moreover, ZedGraph is compatible with .NET 2.0, and VS .NET 2005.

Adding Client-Side Confirmation When Deleting

  
The JavaScript confirm(string) function displays its string input parameter as the text inside a modal dialog box that comes equipped with two buttons - OK and Cancel (see Figure 1). The confirm(string) function returns a Boolean value depending on what button is clicked (true, if the user clicks OK, and false if they click Cancel).

Enterprize library 4.1 getting output parameter after adding record in db, plz guide

  

Hi,

I need to get output parameter (flag) from db after saving record in database. I am using Microsoft Enterprise Library 4.1 for DB. I am inserting record using I Data reader.

Please guide

Thanks


Need help with objects and arrays

  

I have an objuct that I declared like this:

    Class DailyStats
        Dim _day As String
        Dim _hour As String
        Dim _impressions As String
        Dim _clicks As String
        Property Day() As String
            Get
                Return _day
            End Get
            Set(ByVal value As String)
                _day = value
            End Set
        End Property
        Property Hour() As String
            Get
                Return _hour
         

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend