Click here to Skip to main content
15,915,328 members
Home / Discussions / C#
   

C#

 
QuestionListView OwnerDraw and Custom Background Pin
PicklesTheClown10-Feb-06 8:28
PicklesTheClown10-Feb-06 8:28 
QuestionUnable to get a Profile custom (object) collection to bind to GridView,etc (IList objects)? Pin
kloepper10-Feb-06 8:00
kloepper10-Feb-06 8:00 
QuestionDispalying decimal value in the textbox Pin
zaboboa10-Feb-06 7:41
zaboboa10-Feb-06 7:41 
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 
i need to use the native code(unmanaged code),and i have to use void*,so i use the "unsafe" symbol then i meet the trouble

c++code:

SC_InitAsk sca;
memset(&sca, 0, sizeof(sca));
sca.m_Head.m_nType = SC_INIT;
sca.m_dwSoftware = 0x12345678;
sca.m_hWnd = m_hWnd;

m_Dll.SCInit(&sca, sizeof(sca)


c# code:

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

SCInit(&sca, sizeof(SC_InitAsk));
}

c++ interface:
BOOL WINAPI SCInit(void *pInit, int nSize);

c# reference definition:
public unsafe static extern bool SCInit(void* pInit, int nSize);

---------
my trouble:
when debug c#,i got dismatching error with the c++ interface,then i can't find out what's wrong,for the reason may be the struct definition or the "void *"

so how i can work it out ,or how i can debug this?

gary.ruan
AnswerRe: the dismatching error with "unsafe" Pin
Andy Moore10-Feb-06 6:21
Andy Moore10-Feb-06 6:21 

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.