Find Jobs
Hire Freelancers

C# and MSScriptControl problem

max $5 USD

Fechado
Publicado há aproximadamente 21 anos

max $5 USD

Pago na entrega
Hi all. I am using MSScriptControl to call a procedure written in VBScript. This is the body of this procedure: Function plus(aaa, bbb) aaa = aaa + 2 bbb = aaa + 2 plus = aaa end Function If I pass parameters aaa = 5 and bbb = 0 this function should return 7 and aaa should be 7 and bbb 9. I can pass parameters to this function and it returns proper value but values of parameters are still as they was before call. And I cant't figure out what's wrong in my code. Please help. Below is the C# code I used to call this VBScript. static void Main(string[] args) { ScriptControlClass scriptControl = new ScriptControlClass(); [login to view URL] = "VBScript"; [login to view URL]("Function plus(aaa, bbb)\naaa = aaa + 2\nbbb = aaa + 2\nplus = aaa\nend function\n"); //Initializing Parameters that will be passed to script int param1 = 5; int param2 = 0; object[] arguments = new Object[2]; arguments[0] = param1; arguments[1] = param2; string a = ""; try { a = [login to view URL]("plus", ref arguments).ToString(); } catch([login to view URL] e) { [login to view URL]([login to view URL]); [login to view URL]([login to view URL]); } // a must be 7 and it is. Function returns proper result [login to view URL](a); //param1 must be also 7, but it is 5 [login to view URL](param1); //param2 must be 9 but it still 0 [login to view URL](param2); I will give an excellent feedback for first programmer that can solve this problem. Attched is C# project ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform .NET
ID do Projeto: 2917642

Sobre o projeto

2 propostas
Projeto remoto
Ativo há 21 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
2 freelancers estão ofertando em média $4 USD for esse trabalho
Avatar do Usuário
See private message.
$4,25 USD em 14 dias
5,0 (31 avaliações)
5,1
5,1
Avatar do Usuário
See private message.
$4,25 USD em 14 dias
5,0 (23 avaliações)
4,6
4,6

Sobre o cliente

Bandeira do(a) UKRAINE
Ukraine
5,0
1
Membro desde out. 8, 2001

Verificação do Cliente

Outros trabalhos deste cliente

Need some PL/SQL help
$5-10 USD
Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.