Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Heath Stewart23-Mar-04 3:20
protectorHeath Stewart23-Mar-04 3:20 
GeneralRe: Socket Programming - How Do I Send and Receive a Class or Structure Pin
Sascha Andres23-Mar-04 3:34
Sascha Andres23-Mar-04 3:34 
QuestionHow do I check wether a url/file exists Pin
kris.mackintosh22-Mar-04 10:17
kris.mackintosh22-Mar-04 10:17 
AnswerRe: How do I check wether a url/file exists Pin
Heath Stewart22-Mar-04 11:56
protectorHeath Stewart22-Mar-04 11:56 
Generalfrom VC6 dll Pin
yyf22-Mar-04 10:10
yyf22-Mar-04 10:10 
GeneralRe: from VC6 dll Pin
Heath Stewart22-Mar-04 11:47
protectorHeath Stewart22-Mar-04 11:47 
GeneralRe: from VC6 dll Pin
yyf23-Mar-04 3:10
yyf23-Mar-04 3:10 
GeneralRe: from VC6 dll Pin
Heath Stewart23-Mar-04 3:13
protectorHeath Stewart23-Mar-04 3:13 
A LONG (long) in C++ is a 32-bit integer. A long (Int64) is a 64-bit integer. You're marshaling is all wrong which might explain why you're getting extra data from overflow. You should declare it as:
[DllImport("dcli.dll")]
public static extern int SelectChildProjects(int lProjectId);
Notice I also dropped the EntryPoint property, which you only need in cases where your declared method differs in name from the entry point exported by the native DLL.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: from VC6 dll Pin
yyf23-Mar-04 4:01
yyf23-Mar-04 4:01 
GeneralLoop through a Datagrid Pin
Anonymous22-Mar-04 9:55
Anonymous22-Mar-04 9:55 
GeneralRe: Loop through a Datagrid Pin
Heath Stewart22-Mar-04 11:46
protectorHeath Stewart22-Mar-04 11:46 
GeneralRe: Loop through a Datagrid Pin
Anonymous22-Mar-04 11:51
Anonymous22-Mar-04 11:51 
GeneralRe: Loop through a Datagrid Pin
Heath Stewart22-Mar-04 11:57
protectorHeath Stewart22-Mar-04 11:57 
GeneralRe: Loop through a Datagrid Pin
Ruchi Gupta22-Mar-04 12:11
Ruchi Gupta22-Mar-04 12:11 
GeneralRe: Loop through a Datagrid Pin
Heath Stewart23-Mar-04 2:46
protectorHeath Stewart23-Mar-04 2:46 
GeneralProperty questions Pin
gkrish522-Mar-04 9:01
gkrish522-Mar-04 9:01 
GeneralRe: Property questions Pin
CWIZO22-Mar-04 9:20
CWIZO22-Mar-04 9:20 
GeneralRe: Property questions Pin
leppie22-Mar-04 9:27
leppie22-Mar-04 9:27 
GeneralRe: Property questions Pin
CWIZO22-Mar-04 9:31
CWIZO22-Mar-04 9:31 
GeneralRe: Property questions Pin
gkrish522-Mar-04 11:20
gkrish522-Mar-04 11:20 
GeneralRe: Property questions Pin
leppie22-Mar-04 9:22
leppie22-Mar-04 9:22 
GeneralDoes this control exists???!!! Pin
Andretux22-Mar-04 8:16
Andretux22-Mar-04 8:16 
GeneralRe: Does this control exists???!!! Pin
Heath Stewart22-Mar-04 9:05
protectorHeath Stewart22-Mar-04 9:05 
GeneralFind Reverse Color Pin
Werdna22-Mar-04 7:07
Werdna22-Mar-04 7:07 
GeneralRe: Find Reverse Color Pin
leppie22-Mar-04 8:53
leppie22-Mar-04 8:53 

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.