Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
QuestionFree/Open Source Library to Generate Barcodes Pin
Rafferty Uy11-May-10 21:36
Rafferty Uy11-May-10 21:36 
AnswerRe: Free/Open Source Library to Generate Barcodes Pin
Peace ON11-May-10 21:50
Peace ON11-May-10 21:50 
GeneralRe: Free/Open Source Library to Generate Barcodes Pin
Rafferty Uy11-May-10 22:44
Rafferty Uy11-May-10 22:44 
AnswerRe: Free/Open Source Library to Generate Barcodes Pin
Luc Pattyn12-May-10 1:58
sitebuilderLuc Pattyn12-May-10 1:58 
Questionproblem while using delegates in c# Pin
sindhumahe11-May-10 19:42
sindhumahe11-May-10 19:42 
AnswerRe: problem while using delegates in c# Pin
DaveyM6911-May-10 21:33
professionalDaveyM6911-May-10 21:33 
AnswerRe: problem while using delegates in c# Pin
Luc Pattyn12-May-10 2:00
sitebuilderLuc Pattyn12-May-10 2:00 
AnswerRe: problem while using delegates in c# Pin
Hristo-Bojilov12-May-10 3:10
Hristo-Bojilov12-May-10 3:10 
sindhumahe wrote:
and i have succeeded in exporting them

Are really certain that you have succeeded?
It seems not.

First you need to ensure that your function is exported property.If you use the definition:
extern __declspec(dllexport) bool Callregistercallback(CRTSPWrapper* pObject,funccallback fptr_video,funccallback fptr_audio,void* ptr); 


without appropriate definition of the function inside the library module definition file,or without setting configuration the compiler to compile the lib as C code you will be unable to call it using:

[DllImport("sampleclient_dll.dll", CharSet = CharSet.Ansi)]
static private extern bool Callregistercallback(IntPtr pTestClassObject,IntPtr fptr_video,IntPtr fptr_audio,IntPtr ptr);


That happens because by default every function is compiled as C++ code not as C code and C++ uses names decoration to avoid conflicts between functions with the same names but with different arguments.

Refer to this article for more details how to properly export your functions.
Life is a stage and we are all actors!

Questionhow to create cab file from setup exe file using cabsdk Pin
NarVish11-May-10 19:37
NarVish11-May-10 19:37 
AnswerRe: how to create cab file from setup exe file using cabsdk Pin
Abhinav S11-May-10 20:20
Abhinav S11-May-10 20:20 
QuestionHow to encrypt data in mySQL using C# Pin
MissNano11-May-10 18:34
MissNano11-May-10 18:34 
AnswerRe: How to encrypt data in mySQL using C# Pin
Peace ON11-May-10 22:14
Peace ON11-May-10 22:14 
QuestionDate Pickers with Checkboxes and Modified Rows Pin
gmhanna11-May-10 17:44
gmhanna11-May-10 17:44 
AnswerRe: Date Pickers with Checkboxes and Modified Rows Pin
Stanciu Vlad11-May-10 19:27
Stanciu Vlad11-May-10 19:27 
QuestionWhere to get started Pin
crosson11-May-10 17:09
crosson11-May-10 17:09 
AnswerRe: Where to get started Pin
Peace ON11-May-10 21:58
Peace ON11-May-10 21:58 
AnswerRe: Where to get started Pin
Richard MacCutchan11-May-10 22:27
mveRichard MacCutchan11-May-10 22:27 
AnswerRe: Where to get started Pin
crosson12-May-10 10:51
crosson12-May-10 10:51 
AnswerRe: Where to get started Pin
Ravi Sant14-Apr-11 1:22
Ravi Sant14-Apr-11 1:22 
QuestionSerialization Question Pin
Kevin Marois11-May-10 11:14
professionalKevin Marois11-May-10 11:14 
AnswerRe: Serialization Question Pin
William Winner11-May-10 11:40
William Winner11-May-10 11:40 
GeneralRe: Serialization Question Pin
Kevin Marois11-May-10 11:55
professionalKevin Marois11-May-10 11:55 
GeneralRe: Serialization Question Pin
William Winner11-May-10 12:07
William Winner11-May-10 12:07 
GeneralRe: Serialization Question Pin
Kevin Marois11-May-10 12:15
professionalKevin Marois11-May-10 12:15 
GeneralRe: Serialization Question Pin
William Winner11-May-10 12:43
William Winner11-May-10 12: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.