Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to delete files and folders? Pin
Eddy Vluggen10-Oct-18 4:44
professionalEddy Vluggen10-Oct-18 4:44 
Questioncan't get these error code to go away Pin
Member 140081504-Oct-18 19:20
professionalMember 140081504-Oct-18 19:20 
AnswerRe: can't get these error code to go away Pin
OriginalGriff4-Oct-18 19:37
mveOriginalGriff4-Oct-18 19:37 
Questionpicboxes Pin
Ferdiinand4-Oct-18 10:31
Ferdiinand4-Oct-18 10:31 
AnswerRe: picboxes Pin
Mycroft Holmes4-Oct-18 12:52
professionalMycroft Holmes4-Oct-18 12:52 
GeneralRe: picboxes Pin
Ferdiinand4-Oct-18 13:11
Ferdiinand4-Oct-18 13:11 
AnswerRe: picboxes Pin
BillWoodruff14-Oct-18 15:16
professionalBillWoodruff14-Oct-18 15:16 
QuestionConversion from C to C#, Need C# Method Signature Pin
akvbsoft4-Oct-18 8:54
akvbsoft4-Oct-18 8:54 
in Common.c
typedef unsigned char UN_Char;
typedef enum { Valid = 0, Invalid = 1, Unknown = -999 } AppResponseCode;

Method in SomeApi.C , need to Call from C#
static AppResponseCode SomeFunction(UN_Char ** vUC1PtrPtr,size_t * vSize1Ptr, UN_Char * vUC2Ptr,size_t vSize2, FILE *  inputFile, char * vcharPtr)

I tried to add reference of provided C application DLL but Error appear
A Reference to '.....\SomeApi.DLL' could not be added. Please make sure that the file is accessible, and that it is valid assembly or COM Component

So the other option I have is to use DLLImport
[DllImport("SomeAPI.dll", CharSet = CharSet.Unicode)]
public static extern AppResponseCode SomeFunction( ????? );

But I don't know what parameter types I had to pass for Return and Calling parameters to Call and obtain value from SomeFunction()

PS: Though I have source code for Complete C application but I can't re-compile it or modify it, I am only allowed to work with available Exe/DLL
AnswerRe: Conversion from C to C#, Need C# Method Signature Pin
Luc Pattyn4-Oct-18 16:23
sitebuilderLuc Pattyn4-Oct-18 16:23 
Rant[REPOST] Conversion from C to C#, Need C# Method Signature Pin
Richard Deeming5-Oct-18 1:45
mveRichard Deeming5-Oct-18 1:45 
QuestionHow to Cache a DB2 Dynamic Query in ADO.net Pin
kumarkoppireddy4-Oct-18 2:59
kumarkoppireddy4-Oct-18 2:59 
AnswerRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
OriginalGriff4-Oct-18 3:14
mveOriginalGriff4-Oct-18 3:14 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
kumarkoppireddy4-Oct-18 3:50
kumarkoppireddy4-Oct-18 3:50 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
OriginalGriff4-Oct-18 3:54
mveOriginalGriff4-Oct-18 3:54 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
kumarkoppireddy4-Oct-18 4:13
kumarkoppireddy4-Oct-18 4:13 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
Dave Kreskowiak4-Oct-18 4:27
mveDave Kreskowiak4-Oct-18 4:27 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
kumarkoppireddy4-Oct-18 4:54
kumarkoppireddy4-Oct-18 4:54 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
Dave Kreskowiak4-Oct-18 5:04
mveDave Kreskowiak4-Oct-18 5:04 
AnswerRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
Gerry Schmitz4-Oct-18 5:10
mveGerry Schmitz4-Oct-18 5:10 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
kumarkoppireddy4-Oct-18 5:52
kumarkoppireddy4-Oct-18 5:52 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
Dave Kreskowiak4-Oct-18 6:22
mveDave Kreskowiak4-Oct-18 6:22 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
kumarkoppireddy4-Oct-18 6:25
kumarkoppireddy4-Oct-18 6:25 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
Dave Kreskowiak4-Oct-18 6:46
mveDave Kreskowiak4-Oct-18 6:46 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
OriginalGriff4-Oct-18 6:32
mveOriginalGriff4-Oct-18 6:32 
GeneralRe: How to Cache a DB2 Dynamic Query in ADO.net Pin
Mycroft Holmes4-Oct-18 12:48
professionalMycroft Holmes4-Oct-18 12:48 

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.