doses c# dotnet has pointers if yes how can we use it , please give an example
View Complete Post
Two questions:
Hi all
Can someone give me some pointers on how to create this (simplified) workflow?
When an Item is created in a Calendar it should create a task in a Task List. If that task is Approved it should send an email to the person who created the item in the calendar
and if the task was Rejected it should Delete the item in the calendar.
I can get to creating the Task but I am not sure whether I should then have a second WF linked to the task list?
Some help would be greatly appreciated. PS: I am using Sharepoint Designer 2010 with Sharepoint Foundation
Hi again,
So...I'm a little stuck here, with my first server control. I'll just post the whole thing, as I'm sure I've done plenty of mistakes. The main thing for me to find out is if there's a more elegang way to write this.
What I'm trying to accomplish here is to write a panel with custom HTML inside it. Inside the custom HTML, I need to put some server controls I can actually reach. My attempt at finding the span in the code failed, so there's obviously something wrong.
I hope I can get some help, as I can see so many cool usages for this :D
Cheers!
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.UI.WebControls; using System.Web.UI; using System.Web.UI.HtmlControls; namespace ModalPopup { [ToolboxData("<{0}:FacebookPopup runat=server></{0}:FacebookPopup>")] public class FacebookPopup : CompositeControl { protected override void OnInit(EventArgs e) { base.OnInit(e); this.EnsureChildControls(); // << This is it! This makes ViewState work for a CompositeControl } protected override void OnLoad(EventArgs e) { if (!this.Page.IsPostBack) { // Set value once to test whether it's pr
I have a program that needs to create an array of arbitrary dimension. In other words, if you pass 2 to a routine, that routine has to allocate a 2 dimensional array.
So I wrote a routine to do this. Lets assume for simplicity that every dimension has the same number of values. And lets suppose that if we want to get a value out of this array, we pass the indices as an array too.
So for example, if we have a 3 dimensional array, and we want to access array(3,2,7) we pass an one dimensional array that has 3,2,and 7 in it.
I've found a way to do this, but it requires a lot of multiplications to find the index. So I thought of an alternative, which is this:
Select Case n Case 1 dim ArrayN(0) as integer Case 2 dim ArrayN(0)(0) as integer Case 3 dim ArrayN(0)(0)(0) as integer Case Else MsgBox COM interop: issue with C-style array of interface pointers Dear community, I have an issue with COM interop. I need to marshal a C-Style array of interface pointers. I have changed IL to get this array marshaled correctly but I have issues accessing the array elements in the managed code. Below are the IDL as well as my three tries that did not work. Any suggestions? Thanks, dpomt IDL [local] HRESULT Next([in] ULONG cElems, [out] ISomeObject *prgElems, [out] ULONG *pcFetched); \
Dear community,
I have an issue with COM interop. I need to marshal a C-Style array of interface pointers. I have changed IL to get this array marshaled correctly but I have issues accessing the array elements in the managed code. Below are the IDL as well as my three tries that did not work.
Any suggestions? Thanks, dpomt
IDL
[local] HRESULT Next([in] ULONG cElems, [out] ISomeObject *prgElems, [out] ULONG *pcFetched); \
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend