Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
QuestionWhy when I change the ReportSource of a report, the report not change? Pin
Ana-Gabriela Clem22-Apr-05 1:39
Ana-Gabriela Clem22-Apr-05 1:39 
AnswerRe: Why when I change the ReportSource of a report, the report not change? Pin
Yulianto.22-Apr-05 19:31
Yulianto.22-Apr-05 19:31 
GeneralRe: Why when I change the ReportSource of a report, the report not change? Pin
Ana-Gabriela Clem24-Apr-05 7:28
Ana-Gabriela Clem24-Apr-05 7:28 
GeneralA question about calling an unmanaged dll Pin
Micke B22-Apr-05 1:00
Micke B22-Apr-05 1:00 
GeneralRe: A question about calling an unmanaged dll Pin
John Fisher22-Apr-05 6:45
John Fisher22-Apr-05 6:45 
GeneralRe: A question about calling an unmanaged dll Pin
Micke B22-Apr-05 7:13
Micke B22-Apr-05 7:13 
GeneralRe: A question about calling an unmanaged dll Pin
Micke B26-Apr-05 2:37
Micke B26-Apr-05 2:37 
GeneralRe: A question about calling an unmanaged dll Pin
Paul Largent15-Jun-05 7:16
Paul Largent15-Jun-05 7:16 
I am attempting to write a C++ DLL function that will return a string and then call that function from C#. Looks like you have working code that does this or something very similar. Could you show what you did to make this work?

Here is the relevant portion of my code:

In C++ DLL header (.h)
extern "C" __declspec(dllexport) int addfive(int x);
extern "C" __declspec(dllexport) char* putFolderList();

In C++ DLL source (.cpp)
int addfive(int i) { return i+5 ;}
char* putFolderList(){ return "my string" ;}

In C#:
using System.Runtime.InteropServices;
[DllImport("DLLBuildTest.dll")]
static extern int addfive(int x); // VALID Smile | :)
static extern char* putFolderList(); // NOT Valid Frown | :(


Paul
GeneralFull screen issue Pin
Lalit N Dubey21-Apr-05 23:19
Lalit N Dubey21-Apr-05 23:19 
GeneralRe: Full screen issue Pin
Anonymous22-Apr-05 2:01
Anonymous22-Apr-05 2:01 
GeneralWhy string is reference data type. Pin
Member 180659621-Apr-05 21:48
Member 180659621-Apr-05 21:48 
GeneralRe: Why string is reference data type. Pin
S. Senthil Kumar21-Apr-05 22:24
S. Senthil Kumar21-Apr-05 22:24 
GeneralRe: Why string is reference data type. Pin
Colin Angus Mackay21-Apr-05 23:58
Colin Angus Mackay21-Apr-05 23:58 
GeneralRe: Why string is reference data type. Pin
vims22-Apr-05 0:08
vims22-Apr-05 0:08 
QuestionFileStream Performance ? Pin
CiNN21-Apr-05 21:04
CiNN21-Apr-05 21:04 
Generalzooming in winforms. Pin
sreejith ss nair21-Apr-05 20:18
sreejith ss nair21-Apr-05 20:18 
GeneralLaplacian pyramids Pin
Christian Graus21-Apr-05 19:25
protectorChristian Graus21-Apr-05 19:25 
GeneralRe: Laplacian pyramids Pin
John Fisher22-Apr-05 8:27
John Fisher22-Apr-05 8:27 
QuestionHow to play repeadly the media file in full screen mode Pin
Lalit N Dubey21-Apr-05 19:20
Lalit N Dubey21-Apr-05 19:20 
AnswerRe: How to play repeadly the media file in full screen mode Pin
Christian Graus21-Apr-05 19:23
protectorChristian Graus21-Apr-05 19:23 
GeneralRe: How to play repeadly the media file in full screen mode Pin
Lalit N Dubey21-Apr-05 23:17
Lalit N Dubey21-Apr-05 23:17 
GeneralRe: How to play repeadly the media file in full screen mode Pin
Christian in a nice hotel in Singapore24-Apr-05 0:23
sussChristian in a nice hotel in Singapore24-Apr-05 0:23 
GeneralCasting multi dimensional arrays Pin
Esmo200021-Apr-05 19:14
Esmo200021-Apr-05 19:14 
GeneralRe: Casting multi dimensional arrays Pin
Christian Graus21-Apr-05 19:23
protectorChristian Graus21-Apr-05 19:23 
GeneralRe: Casting multi dimensional arrays Pin
Esmo200022-Apr-05 1:41
Esmo200022-Apr-05 1:41 

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.