Click here to Skip to main content
14,768,146 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 3:26
Memberptr_Electron16-Oct-18 3:26 
GeneralRe: Calculating decimal places - Pin
Richard MacCutchan16-Oct-18 4:40
mveRichard MacCutchan16-Oct-18 4:40 
SuggestionRe: Calculating decimal places - Pin
David Crow16-Oct-18 3:47
MemberDavid Crow16-Oct-18 3:47 
GeneralRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 3:52
Memberptr_Electron16-Oct-18 3:52 
GeneralRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 4:03
Memberptr_Electron16-Oct-18 4:03 
GeneralRe: Calculating decimal places - Pin
David Crow16-Oct-18 4:06
MemberDavid Crow16-Oct-18 4:06 
GeneralRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 4:14
Memberptr_Electron16-Oct-18 4:14 
QuestionRe: Calculating decimal places - Pin
David Crow16-Oct-18 4:20
MemberDavid Crow16-Oct-18 4:20 
AnswerRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 4:29
Memberptr_Electron16-Oct-18 4:29 
GeneralRe: Calculating decimal places - Pin
David Crow16-Oct-18 4:38
MemberDavid Crow16-Oct-18 4:38 
GeneralRe: Calculating decimal places - Pin
leon de boer16-Oct-18 16:28
Memberleon de boer16-Oct-18 16:28 
QuestionRe: Calculating decimal places - Pin
CPallini16-Oct-18 3:48
mveCPallini16-Oct-18 3:48 
AnswerRe: Calculating decimal places - Pin
ptr_Electron16-Oct-18 3:55
Memberptr_Electron16-Oct-18 3:55 
GeneralRe: Calculating decimal places - Pin
CPallini16-Oct-18 4:11
mveCPallini16-Oct-18 4:11 
QuestionUsing assignment operator = for a class with const memeber variables? Pin
Member 140109547-Oct-18 13:52
MemberMember 140109547-Oct-18 13:52 
AnswerRe: Using assignment operator = for a class with const memeber variables? Pin
CPallini7-Oct-18 21:36
mveCPallini7-Oct-18 21:36 
AnswerRe: Using assignment operator = for a class with const memeber variables? Pin
Richard MacCutchan7-Oct-18 22:47
mveRichard MacCutchan7-Oct-18 22:47 
AnswerRe: Using assignment operator = for a class with const memeber variables? Pin
«_Superman_»9-Oct-18 2:51
professional«_Superman_»9-Oct-18 2:51 
QuestionAccess a pointer value changed in another class Pin
meerokh5-Oct-18 7:30
Membermeerokh5-Oct-18 7:30 
AnswerRe: Access a pointer value changed in another class Pin
Victor Nijegorodov5-Oct-18 8:51
MemberVictor Nijegorodov5-Oct-18 8:51 
GeneralRe: Access a pointer value changed in another class Pin
meerokh5-Oct-18 9:10
Membermeerokh5-Oct-18 9:10 
GeneralRe: Access a pointer value changed in another class Pin
Victor Nijegorodov5-Oct-18 9:37
MemberVictor Nijegorodov5-Oct-18 9:37 
AnswerRe: Access a pointer value changed in another class Pin
CPallini5-Oct-18 12:28
mveCPallini5-Oct-18 12:28 
QuestionRe: Access a pointer value changed in another class Pin
CPallini10-Oct-18 0:58
mveCPallini10-Oct-18 0:58 
QuestionConversion from C to C#, Need C# Method Signature Pin
akvbsoft4-Oct-18 9:50
Memberakvbsoft4-Oct-18 9:50 
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

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.