Click here to Skip to main content
13,736,502 members

C / C++ / MFC

 
QuestionAccess a pointer value changed in another class Pin
meerokh5-Oct-18 6:30
membermeerokh5-Oct-18 6:30 
AnswerRe: Access a pointer value changed in another class Pin
Victor Nijegorodov5-Oct-18 7:51
memberVictor Nijegorodov5-Oct-18 7:51 
GeneralRe: Access a pointer value changed in another class Pin
meerokh5-Oct-18 8:10
membermeerokh5-Oct-18 8:10 
GeneralRe: Access a pointer value changed in another class Pin
Victor Nijegorodov5-Oct-18 8:37
memberVictor Nijegorodov5-Oct-18 8:37 
AnswerRe: Access a pointer value changed in another class Pin
CPallini5-Oct-18 11:28
mvpCPallini5-Oct-18 11:28 
GeneralMessage Closed Pin
9-Oct-18 23:31
memberHenry John9-Oct-18 23:31 
QuestionRe: Access a pointer value changed in another class Pin
CPallini9-Oct-18 23:58
mvpCPallini9-Oct-18 23:58 
QuestionConversion from C to C#, Need C# Method Signature Pin
akvbsoft4-Oct-18 8:50
memberakvbsoft4-Oct-18 8: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
AnswerRe: Conversion from C to C#, Need C# Method Signature Pin
vcbeaut4-Oct-18 16:48
membervcbeaut4-Oct-18 16:48 
AnswerRe: Conversion from C to C#, Need C# Method Signature Pin
Victor Nijegorodov4-Oct-18 21:43
memberVictor Nijegorodov4-Oct-18 21:43 
QuestionMake screen bigger Pin
Member 139824711-Oct-18 8:37
memberMember 139824711-Oct-18 8:37 
AnswerRe: Make screen bigger Pin
Member 139824711-Oct-18 8:55
memberMember 139824711-Oct-18 8:55 
GeneralRe: Make screen bigger Pin
Maximilien3-Oct-18 4:28
memberMaximilien3-Oct-18 4:28 
GeneralRe: Make screen bigger Pin
enhzflep3-Oct-18 7:38
memberenhzflep3-Oct-18 7:38 
JokeRe: Make screen bigger Pin
Richard Deeming3-Oct-18 10:10
mvpRichard Deeming3-Oct-18 10:10 
GeneralRe: Make screen bigger Pin
David Crow1-Oct-18 9:12
memberDavid Crow1-Oct-18 9:12 
AnswerRe: Make screen bigger Pin
Victor Nijegorodov1-Oct-18 9:20
memberVictor Nijegorodov1-Oct-18 9:20 
GeneralRe: Make screen bigger Pin
Member 139824711-Oct-18 9:28
memberMember 139824711-Oct-18 9:28 
GeneralRe: Make screen bigger Pin
Victor Nijegorodov1-Oct-18 9:47
memberVictor Nijegorodov1-Oct-18 9:47 
GeneralRe: Make screen bigger Pin
Member 139824711-Oct-18 10:19
memberMember 139824711-Oct-18 10:19 
GeneralRe: Make screen bigger Pin
Victor Nijegorodov1-Oct-18 10:58
memberVictor Nijegorodov1-Oct-18 10:58 
GeneralRe: Make screen bigger Pin
Member 139824711-Oct-18 13:29
memberMember 139824711-Oct-18 13:29 
GeneralRe: Make screen bigger Pin
Richard MacCutchan1-Oct-18 22:50
protectorRichard MacCutchan1-Oct-18 22:50 
QuestionHow to make a c++ executable Pin
Member 1398247130-Sep-18 8:39
memberMember 1398247130-Sep-18 8:39 
AnswerRe: How to make a c++ executable Pin
Richard Andrew x6430-Sep-18 9:42
professionalRichard Andrew x6430-Sep-18 9:42 

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.


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180920.1 | Last Updated 19 Oct 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid