Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: prblm connecting to database Pin
chravisankar13-Dec-06 22:01
chravisankar13-Dec-06 22:01 
QuestionGrab Value from text box Pin
sajid.salim.khan13-Dec-06 20:42
sajid.salim.khan13-Dec-06 20:42 
AnswerRe: Grab Value from text box Pin
chravisankar13-Dec-06 21:08
chravisankar13-Dec-06 21:08 
GeneralRe: Grab Value from text box Pin
sajid.salim.khan13-Dec-06 22:04
sajid.salim.khan13-Dec-06 22:04 
GeneralRe: Grab Value from text box Pin
quiteSmart13-Dec-06 22:23
quiteSmart13-Dec-06 22:23 
AnswerRe: Grab Value from text box Pin
nmason14-Dec-06 5:09
nmason14-Dec-06 5:09 
QuestionChanging Form Layout Pin
sajid.salim.khan13-Dec-06 20:24
sajid.salim.khan13-Dec-06 20:24 
QuestionC++ delegate to C#... Pin
Shy Agam13-Dec-06 20:20
Shy Agam13-Dec-06 20:20 
I have a solution with a managed C++ project, and a C# project which references the C++ project.
My C++ project contains the following:
struct AAA { ... };

typedef public enum BBB { ... };

public delegate void CallbackDelegate(AAA * a, BBB b);

class SomeClass
{
    ...
    static void RegisterCallback(CallbackDelegate^ callback);
    ...
}
My C# project is supposed to use RegisterCallback().
I can't use the CallbackDelegate in my C# project though, because it contains a pointer.
So I've declared the following in C# hoping that .NET would do the conversions for me Laugh | :laugh: :
[StructLayout(LayoutKind.Sequential)]
public struct AAA { ... }

public enum BBB: int { ... }

public delegate void CallbackDelegate(AAA a, BBB b);
However, now I can't send my CallbackDelegate as a parameter to RegisterCallback() because it's not the same signature.

I'm new to all of this C++.NET s**t, so I don't really know how to use it in C#.
Could anyone point me in the right direction?

Thanks in advance,
Shy.
AnswerRe: C++ delegate to C#... Pin
Eric Dahlvang14-Dec-06 4:47
Eric Dahlvang14-Dec-06 4:47 
QuestionUpdate a DataRow in a DataTable; Pin
swjam13-Dec-06 20:07
swjam13-Dec-06 20:07 
AnswerRe: Update a DataRow in a DataTable; Pin
il_masacratore13-Dec-06 20:21
il_masacratore13-Dec-06 20:21 
GeneralRe: Update a DataRow in a DataTable; Pin
SpartanSoft14-Dec-06 8:56
SpartanSoft14-Dec-06 8:56 
Questionfile not found exception in asp.net project Pin
justintimberlake13-Dec-06 19:52
justintimberlake13-Dec-06 19:52 
AnswerRe: file not found exception in asp.net project Pin
althamda13-Dec-06 22:39
althamda13-Dec-06 22:39 
QuestionEncrypion/Decryption Pin
Osama12313-Dec-06 19:18
Osama12313-Dec-06 19:18 
AnswerRe: Encrypion/Decryption Pin
Nader Elshehabi13-Dec-06 19:41
Nader Elshehabi13-Dec-06 19:41 
AnswerRe: Encrypion/Decryption Pin
Vasudevan Deepak Kumar13-Dec-06 19:43
Vasudevan Deepak Kumar13-Dec-06 19:43 
QuestionScript library error in Majic Ajax on Windows XP Pin
Yogesh Jamkhindikar13-Dec-06 18:07
Yogesh Jamkhindikar13-Dec-06 18:07 
AnswerRe: Script library error in Majic Ajax on Windows XP Pin
vijayan_53123-Feb-09 21:40
vijayan_53123-Feb-09 21:40 
QuestionHow to view available hard drives Pin
MartyExodus13-Dec-06 18:05
MartyExodus13-Dec-06 18:05 
AnswerRe: How to view available hard drives Pin
«_Superman_»13-Dec-06 18:15
professional«_Superman_»13-Dec-06 18:15 
GeneralRe: How to view available hard drives Pin
MartyExodus13-Dec-06 18:18
MartyExodus13-Dec-06 18:18 
QuestionHow could i send WindowApplcation.exe in Start up ? Pin
Sanjib Raj13-Dec-06 17:42
Sanjib Raj13-Dec-06 17:42 
AnswerRe: How could i send WindowApplcation.exe in Start up ? Pin
Eytukan13-Dec-06 18:09
Eytukan13-Dec-06 18:09 
AnswerRe: How could i send WindowApplcation.exe in Start up ? Pin
Niiiissssshhhhhuuuuu13-Dec-06 18:49
Niiiissssshhhhhuuuuu13-Dec-06 18: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.