Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Scipting Pin
toxcct11-Jul-05 1:39
toxcct11-Jul-05 1:39 
GeneralRe: Scipting Pin
De Nardis Andrea11-Jul-05 7:14
De Nardis Andrea11-Jul-05 7:14 
Generalsynchronization threads intra-process Pin
xcavin11-Jul-05 0:46
xcavin11-Jul-05 0:46 
GeneralRe: synchronization threads intra-process Pin
khan++11-Jul-05 1:05
khan++11-Jul-05 1:05 
GeneralRe: synchronization threads intra-process Pin
S. Senthil Kumar11-Jul-05 1:28
S. Senthil Kumar11-Jul-05 1:28 
Generaldynamic change the StatusBar information Pin
gohappy_199911-Jul-05 0:46
gohappy_199911-Jul-05 0:46 
GeneralRe: dynamic change the StatusBar information Pin
David Crow11-Jul-05 5:43
David Crow11-Jul-05 5:43 
GeneralRe: dynamic change the StatusBar information Pin
gohappy_199911-Jul-05 17:26
gohappy_199911-Jul-05 17:26 
GeneralRe: dynamic change the StatusBar information Pin
David Crow12-Jul-05 2:45
David Crow12-Jul-05 2:45 
GeneralRe: dynamic change the StatusBar information Pin
gohappy_199912-Jul-05 17:19
gohappy_199912-Jul-05 17:19 
GeneralRe: dynamic change the StatusBar information Pin
David Crow12-Jul-05 18:25
David Crow12-Jul-05 18:25 
GeneralRe: dynamic change the StatusBar information Pin
gohappy_199912-Jul-05 20:53
gohappy_199912-Jul-05 20:53 
GeneralRe: dynamic change the StatusBar information Pin
David Crow13-Jul-05 2:53
David Crow13-Jul-05 2:53 
QuestionHow to access remote database server from windows service Pin
zhaopi10-Jul-05 23:58
zhaopi10-Jul-05 23:58 
AnswerRe: How to access remote database server from windows service Pin
Magnus Westin11-Jul-05 4:09
Magnus Westin11-Jul-05 4:09 
GeneralRe: How to access remote database server from windows service Pin
zhaopi11-Jul-05 15:06
zhaopi11-Jul-05 15:06 
GeneralRe: How to access remote database server from windows service Pin
zhaopi11-Jul-05 15:15
zhaopi11-Jul-05 15:15 
AnswerRe: How to access remote database server from windows service Pin
BambooMoon11-Jul-05 5:21
BambooMoon11-Jul-05 5:21 
GeneralRe: How to access remote database server from windows service Pin
zhaopi11-Jul-05 15:12
zhaopi11-Jul-05 15:12 
GeneralPass structure to C# Pin
Member 12566510-Jul-05 23:44
Member 12566510-Jul-05 23:44 
GeneralRe: Pass structure to C# Pin
Andy Moore12-Jul-05 7:21
Andy Moore12-Jul-05 7:21 
--Your C++ code would look like the following

typedef struct St
{
     int a;
     int b;
}

__declspec(dllexport) void SetMyStruct( St* s );

--Now, in your c# code you would do the following:

[System.Runtime.InteropServices.LayoutKind(LayoutKindSequential)]
public struct St
{
    public int a;
    public int b;
}

public class MyClass
{
    [DllImport("mydll.dll")]
     public static extern void SetMyStruct( ref St s );
}


I hope this helps.



Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons
GeneralWSASocket problem in XP Pro Pin
Anonymous10-Jul-05 23:32
Anonymous10-Jul-05 23:32 
QuestionHow to print to virtual printer from Window Service (in not login state) Pin
Anonymous10-Jul-05 23:29
Anonymous10-Jul-05 23:29 
GeneralButton activation Pin
antoine_david10-Jul-05 22:07
antoine_david10-Jul-05 22:07 
GeneralRe: Button activation Pin
Cedric Moonen10-Jul-05 22:17
Cedric Moonen10-Jul-05 22:17 

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.