Click here to Skip to main content
15,917,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs C# a JOKE? [modified] Pin
bigchump12-Jun-08 11:06
bigchump12-Jun-08 11:06 
AnswerRe: Is C# a JOKE? Pin
Baltoro12-Jun-08 13:01
Baltoro12-Jun-08 13:01 
GeneralRe: Is C# a JOKE? Pin
bigchump12-Jun-08 13:12
bigchump12-Jun-08 13:12 
GeneralSearched at MSDN Pin
Baltoro12-Jun-08 13:38
Baltoro12-Jun-08 13:38 
GeneralRe: Is C# a JOKE? Pin
Simon P Stevens12-Jun-08 22:28
Simon P Stevens12-Jun-08 22:28 
AnswerRe: Is C# a JOKE? Pin
Alan Balkany13-Jun-08 4:57
Alan Balkany13-Jun-08 4:57 
GeneralRe: Is C# a JOKE? Pin
bigchump13-Jun-08 6:11
bigchump13-Jun-08 6:11 
GeneralRe: Is C# a JOKE? Pin
Alan Balkany13-Jun-08 6:25
Alan Balkany13-Jun-08 6:25 
To create a C++ DLL, create a C++ project and choose Win32 Project as the type (Microsoft probably decided a type named "DLL" would make it too easy), click Next, and select DLL as the application type.

Put the following attribute before your C++ functions so they can be seen from C#:
__declspec(dllexport)

To call a function in a C++ DLL from C#, first declare it like this:

[DllImport("User32.dll")]
public extern static int GetScrollInfo( IntPtr hWnd, int fnBar, IntPtr lpsi );

There's lots of info on the web on doing this. Good luck.
GeneralRe: Is C# a JOKE? Pin
bigchump13-Jun-08 9:19
bigchump13-Jun-08 9:19 
GeneralRe: Is C# a JOKE? Pin
Alan Balkany13-Jun-08 11:22
Alan Balkany13-Jun-08 11:22 
QuestionReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 8:13
york52812-Jun-08 8:13 
AnswerRe: ReadDirectoryChangesW Problem~~~ Pin
Nibu babu thomas12-Jun-08 17:26
Nibu babu thomas12-Jun-08 17:26 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 18:30
york52812-Jun-08 18:30 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 19:18
york52812-Jun-08 19:18 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
Nibu babu thomas12-Jun-08 19:39
Nibu babu thomas12-Jun-08 19:39 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 20:18
york52812-Jun-08 20:18 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
Nibu babu thomas12-Jun-08 20:23
Nibu babu thomas12-Jun-08 20:23 
GeneralRe: ReadDirectoryChangesW Problem~~~ Pin
york52812-Jun-08 20:31
york52812-Jun-08 20:31 
QuestionMDI Application with more than one child? Pin
CrocodileBuck12-Jun-08 5:31
CrocodileBuck12-Jun-08 5:31 
AnswerRe: MDI Application with more than one child? Pin
Nelek12-Jun-08 5:46
protectorNelek12-Jun-08 5:46 
GeneralRe: MDI Application with more than one child? Pin
CrocodileBuck12-Jun-08 6:55
CrocodileBuck12-Jun-08 6:55 
GeneralRe: MDI Application with more than one child? Pin
JudyL_MD12-Jun-08 7:52
JudyL_MD12-Jun-08 7:52 
GeneralAccessing the Taskbar [Notification Area] Pin
Jach Mullan12-Jun-08 17:28
Jach Mullan12-Jun-08 17:28 
GeneralRe: MDI Application with more than one child? Pin
Nelek12-Jun-08 21:15
protectorNelek12-Jun-08 21:15 
GeneralRe: MDI Application with more than one child? Pin
CrocodileBuck12-Jun-08 22:49
CrocodileBuck12-Jun-08 22:49 

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.