MSDN Magazine December 2004
View Complete Post
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.
MSDN Magazine November 2000
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
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.
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.
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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Has anyone come across this error? Is there an issue with Sharepoint installation?
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!
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
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
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.
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