Click here to Skip to main content
15,884,177 members
Home / Discussions / C#
   

C#

 
GeneralRe: Printing in C# using built in printer fonts Pin
Jörgen Sigvardsson27-Oct-09 9:28
Jörgen Sigvardsson27-Oct-09 9:28 
AnswerRe: Printing in C# using built in printer fonts Pin
Sir Dot Net27-Oct-09 9:40
Sir Dot Net27-Oct-09 9:40 
GeneralRe: Printing in C# using built in printer fonts Pin
Jörgen Sigvardsson27-Oct-09 9:42
Jörgen Sigvardsson27-Oct-09 9:42 
GeneralRe: Printing in C# using built in printer fonts Pin
Luc Pattyn27-Oct-09 9:56
sitebuilderLuc Pattyn27-Oct-09 9:56 
GeneralRe: Printing in C# using built in printer fonts Pin
Jörgen Sigvardsson27-Oct-09 10:02
Jörgen Sigvardsson27-Oct-09 10:02 
GeneralRe: Printing in C# using built in printer fonts Pin
Luc Pattyn27-Oct-09 10:18
sitebuilderLuc Pattyn27-Oct-09 10:18 
GeneralRe: Printing in C# using built in printer fonts Pin
Jörgen Sigvardsson27-Oct-09 10:21
Jörgen Sigvardsson27-Oct-09 10:21 
QuestionHow to call a .dll written in unmanaged C++ from C# and pass structs to and from? [Solved] Pin
CircuitDoc27-Oct-09 8:05
CircuitDoc27-Oct-09 8:05 
I have a problem that is very similar to others that I have seen around the web but no exactly the same. I am trying to call a DLL written in unmanaged C++, from an application written in C#. The C# application will need to pass the DLL function two structs, one with input variables and one for the return variables. I have tried some of the similar solutions but still have not been successful. I have some experience with C# but I am very new to calling DLLs. Any help would be greatly appreciated. Here is my code:

C++:
extern "C"
{
typedef struct
{
unsigned int iSignalCount;
double *dSignal;
unsigned int iFilterCount;    
double *dFilter;       
} My_Function_Input_Type;

typedef struct
{
unsigned int iDftCount;       
double *dDft;                 
double *dFilteredSignal;     
} My_Function_Return_Type;

_declspec(dllexport)  void FFT_Convolution(My_Function_Input_Type input, My_Function_Return_Type output);
}


modified on Thursday, October 29, 2009 1:43 PM

AnswerRe: How to call a .dll written in unmanaged C++ from C# and pass structs to and from? Pin
Luc Pattyn27-Oct-09 8:28
sitebuilderLuc Pattyn27-Oct-09 8:28 
GeneralRe: How to call a .dll written in unmanaged C++ from C# and pass structs to and from? Pin
CircuitDoc27-Oct-09 8:58
CircuitDoc27-Oct-09 8:58 
GeneralRe: How to call a .dll written in unmanaged C++ from C# and pass structs to and from? Pin
Luc Pattyn27-Oct-09 9:17
sitebuilderLuc Pattyn27-Oct-09 9:17 
AnswerRe: How to call a .dll written in unmanaged C++ from C# and pass structs to and from? [Solved] Pin
CircuitDoc29-Oct-09 7:48
CircuitDoc29-Oct-09 7:48 
QuestionPass string " Hello {0}" though MessageBox Pin
I Believe In GOD27-Oct-09 7:41
I Believe In GOD27-Oct-09 7:41 
AnswerRe: Pass string " Hello {0}" though MessageBox PinPopular
Luc Pattyn27-Oct-09 7:50
sitebuilderLuc Pattyn27-Oct-09 7:50 
GeneralRe: Pass string " Hello {0}" though MessageBox Pin
Keith Barrow27-Oct-09 7:56
professionalKeith Barrow27-Oct-09 7:56 
AnswerRe: Pass string " Hello {0}" though MessageBox Pin
0x3c027-Oct-09 7:50
0x3c027-Oct-09 7:50 
AnswerRe: Pass string " Hello {0}" though MessageBox Pin
Keith Barrow27-Oct-09 7:58
professionalKeith Barrow27-Oct-09 7:58 
AnswerRe: Pass string " Hello {0}" though MessageBox Pin
Abhishek Sur27-Oct-09 8:45
professionalAbhishek Sur27-Oct-09 8:45 
GeneralRe: Pass string " Hello {0}" though MessageBox Pin
I Believe In GOD27-Oct-09 10:18
I Believe In GOD27-Oct-09 10:18 
GeneralRe: Pass string " Hello {0}" though MessageBox Pin
Abhishek Sur27-Oct-09 10:20
professionalAbhishek Sur27-Oct-09 10:20 
AnswerRe: Pass string " Hello {0}" though MessageBox Pin
Mirko198027-Oct-09 22:52
Mirko198027-Oct-09 22:52 
GeneralRe: Pass string " Hello {0}" though MessageBox Pin
I Believe In GOD28-Oct-09 5:25
I Believe In GOD28-Oct-09 5:25 
QuestionSending emails from windows application on windows7 Pin
gottimukkala27-Oct-09 5:54
gottimukkala27-Oct-09 5:54 
AnswerRe: Sending emails from windows application on windows7 Pin
Dave Kreskowiak27-Oct-09 7:38
mveDave Kreskowiak27-Oct-09 7:38 
Questionerror 26: SQL server locating error Pin
Emmet_Brown27-Oct-09 3:59
Emmet_Brown27-Oct-09 3:59 

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.