Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
GeneralGET Image Constructor Pin
Expert Coming13-Jul-05 9:12
Expert Coming13-Jul-05 9:12 
GeneralRe: GET Image Constructor Pin
Judah Gabriel Himango13-Jul-05 9:18
sponsorJudah Gabriel Himango13-Jul-05 9:18 
GeneralRe: GET Image Constructor Pin
Expert Coming13-Jul-05 18:25
Expert Coming13-Jul-05 18:25 
GeneralRe: GET Image Constructor Pin
Judah Gabriel Himango14-Jul-05 5:03
sponsorJudah Gabriel Himango14-Jul-05 5:03 
GeneralText can't be fully displayed on a button Pin
sparks_lu13-Jul-05 8:52
sparks_lu13-Jul-05 8:52 
GeneralCOM+ & .NEt parameters by reference Pin
raforaez13-Jul-05 8:06
raforaez13-Jul-05 8:06 
GeneralRe: COM+ & .NEt parameters by reference Pin
Judah Gabriel Himango13-Jul-05 9:11
sponsorJudah Gabriel Himango13-Jul-05 9:11 
GeneralRe: COM+ & .NEt parameters by reference Pin
raforaez13-Jul-05 9:28
raforaez13-Jul-05 9:28 
this 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



=)



GeneralDataGrid: lock row height, paint icons in BoolColumn Pin
SebbaP13-Jul-05 7:30
SebbaP13-Jul-05 7:30 
GeneralScroll panel from caret Pin
mr_seus13-Jul-05 6:31
mr_seus13-Jul-05 6:31 
GeneralRe: Scroll panel from caret Pin
Judah Gabriel Himango13-Jul-05 9:14
sponsorJudah Gabriel Himango13-Jul-05 9:14 
GeneralRe: Scroll panel from caret Pin
mr_seus13-Jul-05 13:40
mr_seus13-Jul-05 13:40 
QuestionHow to create a shortcut Pin
kevin_smoke13-Jul-05 5:43
kevin_smoke13-Jul-05 5:43 
AnswerRe: How to create a shortcut Pin
Judah Gabriel Himango13-Jul-05 7:46
sponsorJudah Gabriel Himango13-Jul-05 7:46 
GeneralLoggin in C# Pin
rnvrnv13-Jul-05 5:31
rnvrnv13-Jul-05 5:31 
GeneralRe: Loggin in C# Pin
S. Senthil Kumar13-Jul-05 6:31
S. Senthil Kumar13-Jul-05 6:31 
GeneralRe: Loggin in C# Pin
eggie513-Jul-05 6:55
eggie513-Jul-05 6:55 
GeneralRe: Loggin in C# Pin
Steve Maier13-Jul-05 7:18
professionalSteve Maier13-Jul-05 7:18 
GeneralHuge problem with controls Pin
zaboboa13-Jul-05 5:17
zaboboa13-Jul-05 5:17 
GeneralRe: Huge problem with controls Pin
Judah Gabriel Himango13-Jul-05 10:47
sponsorJudah Gabriel Himango13-Jul-05 10:47 
GeneralRe: Huge problem with controls Pin
jdkulkarni14-Jul-05 2:49
jdkulkarni14-Jul-05 2:49 
QuestionHow do I get client input from dynamically created controls that I can use in server-side code??? Pin
jengbrecht13-Jul-05 5:13
jengbrecht13-Jul-05 5:13 
Generalfinding control in datagrid header Pin
livez13-Jul-05 4:52
livez13-Jul-05 4:52 
GeneralRe: finding control in datagrid header Pin
thomasa22-Jul-05 2:06
thomasa22-Jul-05 2:06 
Generaldisable browsing directory Pin
Emily7713-Jul-05 3:54
Emily7713-Jul-05 3:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.