thanks, thanks , thanks friend :-D ;)
raforaez
Posts
-
performance in VS 2005 -
performance in VS 2005Hi : I listen that in VS.Net 2005 exists a new tool (that compiles all an web application) ... and to avoid delays during the conversion of MSIL to native CPU code can you orient or give me some links to me on this subject? Thanks :-D
-
Optional parameter in C#!no friend !!!!!! .Net framework 1.1 doesn´t support optional parameters in VB.Net is never recommendable you can use flags in the methods... or overload
-
COM+ & .NEt parameters by referencethis is the Signature of the method in VB 6.0 : Public Function b_GenerarTck(ByVal cAgencia As String, _ ByVal cSector As String, _ ByVal cTicketera As String, _ ByVal cTTckBase As String, _ ByRef OUT_cTicket As Variant, _ ByRef OUT_dTicket As Variant, _ ByRef OUT_fGenerado As Variant, _ ByRef OUT_hGenerada As Variant, _ ByRef OUT_nEsperaMinima As Variant, _ ByRef OUT_dTTicket As Variant, _ ByRef OUT_dTVentanilla As Variant, _ Optional ByVal nNumCliente As Variant, _ Optional ByVal dNomCliente As Variant) As Long The following code is the solution for a method with 1 parameter .... but doesn´t work with several parameters -------------------------------------------------------------------- using MyMFCLibrary; using System.Reflection; public class MyClass { MyMFCAutomationServer objTest = new MyMFCAutomationServerDoc(); object [] arglist = { "Hello World!" }; ParameterModifier pm = new ParameterModifier(1); //Set the VT_BYREF flag on the first parameter. p[0] = true; //Create an array of ParameterModifier objects, and then put in your element. ParameterModifier [] pmArray = { pm }; //Use late binding and call the method. objTest.GetType().InvokeMember("VariantByRef", BindingFlags.InvokeMethod, null, objTest, arglist, pmArray, null, null); } ------------------ Please helpme guys =)
-
COM+ & .NEt parameters by referenceHi friends: I want send parameters by reference in my .Net application. but i am using a COM+ object's method :( My code is: ----------------------------------------------------------------------- Object[] args = new Object[12]; args[0] = Agencia; args[1] = Sector; args[2] = Ticketera; string[] argNames = {"cAgencia", "cSector", "cTicketera"}; res=atype.InvokeMember("b_GenerarTck",BindingFlags.InvokeMethod,null,objTicket, args,null,null,argNames); ----------------------------------------------------------------------- BUT IT CAN'T GET THE REFERENCES I HOPE THAT YOU CAN HELP ME Thanks :)