Click here to Skip to main content
15,889,822 members
Home / Discussions / C#
   

C#

 
AnswerRe: building C# Pin
Manas Bhardwaj25-Aug-08 23:16
professionalManas Bhardwaj25-Aug-08 23:16 
AnswerRe: building C# Pin
lisan_al_ghaib26-Aug-08 1:31
lisan_al_ghaib26-Aug-08 1:31 
AnswerRe: building C# Pin
PIEBALDconsult26-Aug-08 3:32
mvePIEBALDconsult26-Aug-08 3:32 
QuestionSMTP Exception Pin
Christiaan Laubscher25-Aug-08 22:58
Christiaan Laubscher25-Aug-08 22:58 
AnswerRe: SMTP Exception Pin
I_AM_ERROR27-Aug-10 9:25
I_AM_ERROR27-Aug-10 9:25 
QuestionHow to change the value from database into some other language Pin
tauras8125-Aug-08 22:44
tauras8125-Aug-08 22:44 
AnswerRe: How to change the value from database into some other language Pin
Shpendh25-Aug-08 23:03
Shpendh25-Aug-08 23:03 
Question.dll issue! VBA to C#?! Pin
andredani25-Aug-08 22:25
andredani25-Aug-08 22:25 
Hi! I´m trying to translate Vba call method from .dll. But if i translate it it won´t be the same in C#.

The code in VBA:


Public Sub SnodAnrop() 
i = Module1.snod25x(host, port, user, pass, cert, cacert, service, arg, extra, result, buf)
End Sub

Declare Function snod25x Lib "sn25.dll" Alias "****" (ByVal Host As String, ByVal Port As String, ByVal User As String, ByVal Passwd As String, ByVal Cert As String, ByVal CAert As String, ByVal Nodtjanst As String, ByVal Arg As String, ByVal Extra As String, ByVal Result As String, ByVal Resultbuf As Long) As Long


The translation to C# have i done like this:

[DllImport("sn25.dll", EntryPoint = "****")] 
static extern int snod(string host, string port, string user, string passwd, string cert, string CAert, string Nodtjänst, string arg, string extra, string result, int buf); private void button1_Click(object sender, EventArgs e)   
{
int i = snod("", "", user, pass, "", "", service, arg, "",result, 1024);
}

The problem is now is the string "result" in VBA returns info, but in C# it doesn´t collect any info at all. Int i returns a status value wich is 0 that meens OK. The problem is that i dont get any info back with the string "result" in C#

How Would u translate it? Have i missed something?
Im pretty new in C# so explain easely. Would Appriciate some help!!!

Thanks!!!!

AnswerRe: .dll issue! VBA to C#?! Pin
selcuks25-Aug-08 22:37
selcuks25-Aug-08 22:37 
AnswerRe: .dll issue! VBA to C#?! Pin
Guffa26-Aug-08 2:03
Guffa26-Aug-08 2:03 
AnswerRe: .dll issue! VBA to C#?! Pin
Alan N26-Aug-08 7:43
Alan N26-Aug-08 7:43 
QuestionWIndows Service in Windows Form Pin
idreesbadshah25-Aug-08 22:14
idreesbadshah25-Aug-08 22:14 
AnswerRe: WIndows Service in Windows Form Pin
PIEBALDconsult26-Aug-08 3:34
mvePIEBALDconsult26-Aug-08 3:34 
GeneralRe: WIndows Service in Windows Form Pin
idreesbadshah26-Aug-08 18:12
idreesbadshah26-Aug-08 18:12 
GeneralRe: WIndows Service in Windows Form Pin
PIEBALDconsult27-Aug-08 4:52
mvePIEBALDconsult27-Aug-08 4:52 
QuestionRegular expression Pin
hadad25-Aug-08 21:30
hadad25-Aug-08 21:30 
AnswerRe: Regular expression Pin
J4amieC25-Aug-08 21:59
J4amieC25-Aug-08 21:59 
GeneralRe: Regular expression Pin
hadad25-Aug-08 23:03
hadad25-Aug-08 23:03 
GeneralRe: Regular expression Pin
J4amieC25-Aug-08 23:20
J4amieC25-Aug-08 23:20 
GeneralRe: Regular expression Pin
J4amieC25-Aug-08 23:24
J4amieC25-Aug-08 23:24 
GeneralRe: Regular expression Pin
hadad26-Aug-08 0:15
hadad26-Aug-08 0:15 
QuestionCreate Shortcut key in C# Pin
Laji5925-Aug-08 21:15
Laji5925-Aug-08 21:15 
AnswerRe: Create Shortcut key in C# Pin
Christian Graus25-Aug-08 21:53
protectorChristian Graus25-Aug-08 21:53 
AnswerRe: Create Shortcut key in C# Pin
Shpendh25-Aug-08 22:44
Shpendh25-Aug-08 22:44 
QuestionDatagridview Error! Pin
zeeShan anSari25-Aug-08 20:43
zeeShan anSari25-Aug-08 20:43 

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.