Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
AnswerRe: Dispalying decimal value in the textbox Pin
Dave Kreskowiak10-Feb-06 7:45
mveDave Kreskowiak10-Feb-06 7:45 
GeneralRe: Dispalying decimal value in the textbox Pin
zaboboa10-Feb-06 7:51
zaboboa10-Feb-06 7:51 
GeneralRe: Dispalying decimal value in the textbox Pin
Dave Kreskowiak10-Feb-06 9:10
mveDave Kreskowiak10-Feb-06 9:10 
GeneralRe: Dispalying decimal value in the textbox Pin
User 665810-Feb-06 9:35
User 665810-Feb-06 9:35 
GeneralRe: Dispalying decimal value in the textbox Pin
Dave Kreskowiak10-Feb-06 12:13
mveDave Kreskowiak10-Feb-06 12:13 
GeneralRe: Dispalying decimal value in the textbox Pin
User 665811-Feb-06 2:51
User 665811-Feb-06 2:51 
QuestionTopmost Form Pin
PHDENG8110-Feb-06 7:35
PHDENG8110-Feb-06 7:35 
AnswerRe: Topmost Form Pin
NaNg1524110-Feb-06 8:56
NaNg1524110-Feb-06 8:56 
GeneralRe: Topmost Form Pin
Dave Kreskowiak10-Feb-06 9:03
mveDave Kreskowiak10-Feb-06 9:03 
GeneralRe: Topmost Form Pin
NaNg1524110-Feb-06 9:19
NaNg1524110-Feb-06 9:19 
GeneralRe: Topmost Form Pin
PHDENG8110-Feb-06 9:31
PHDENG8110-Feb-06 9:31 
GeneralRe: Topmost Form Pin
NaNg1524110-Feb-06 9:56
NaNg1524110-Feb-06 9:56 
GeneralRe: Topmost Form Pin
PHDENG8113-Feb-06 1:32
PHDENG8113-Feb-06 1:32 
GeneralRe: Topmost Form Pin
Dave Kreskowiak10-Feb-06 13:49
mveDave Kreskowiak10-Feb-06 13:49 
AnswerRe: Topmost Form Pin
Dave Kreskowiak10-Feb-06 13:52
mveDave Kreskowiak10-Feb-06 13:52 
QuestionOutlook 2003 and Signatures Pin
piXy^10-Feb-06 5:42
piXy^10-Feb-06 5:42 
QuestionFTP client Program with C# Pin
BestArtemis10-Feb-06 5:08
BestArtemis10-Feb-06 5:08 
AnswerRe: FTP client Program with C# Pin
leppie10-Feb-06 5:51
leppie10-Feb-06 5:51 
GeneralRe: FTP client Program with C# Pin
BestArtemis10-Feb-06 7:10
BestArtemis10-Feb-06 7:10 
GeneralRe: FTP client Program with C# Pin
Dave Kreskowiak10-Feb-06 7:34
mveDave Kreskowiak10-Feb-06 7:34 
Questionthe dismatching error with "unsafe" Pin
gary.ruan10-Feb-06 5:01
gary.ruan10-Feb-06 5:01 
AnswerRe: the dismatching error with "unsafe" Pin
Andy Moore10-Feb-06 6:21
Andy Moore10-Feb-06 6:21 
You don't have to use unsafe code here. Why not do something like this.

C#

[DllImport("yourdll")]
public static extern bool SCInit( System.Intptr pInit, int nSize )

Now in your function do this:

SC_InitAsk sca = new SC_InitAsk();
sca.m_Head.m_lIndex = PublicValue.SC_INIT;
sca.m_dwSoftware = 0x12345678;
sca.m_hWnd = this.Handle;

System.IntPtr p;

p = Marshal.AllocHGlobal( Marshal.Sizeof( typeof( SC_InitAsk ) ) );

Marshal.StructureToPtr( sca, p, true );

/*Call your C++ function here*/
SC_Init( p, Marshal.Sizeof( typeof( SC_InitAsk ) );

Marshal.FreeHGlobal( p );


I hope this helps.

Andy


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
Questionhow to encrypt/decrypt exe file on the fly ? Pin
hdv21210-Feb-06 4:16
hdv21210-Feb-06 4:16 
AnswerRe: how to encrypt/decrypt exe file on the fly ? Pin
Ingo10-Feb-06 4:29
Ingo10-Feb-06 4:29 
QuestionHow to do RTP streaming? Pin
Divyang Mithaiwala10-Feb-06 3:38
Divyang Mithaiwala10-Feb-06 3:38 

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.