Click here to Skip to main content
15,894,343 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: filebrowser/compair Pin
Anonymous14-Nov-04 5:22
Anonymous14-Nov-04 5:22 
Questiondiable keys while sendkeys? Pin
anynamewillworkpleasethistime7-Nov-04 2:16
sussanynamewillworkpleasethistime7-Nov-04 2:16 
GeneralTIMER Pin
Anonymous6-Nov-04 18:53
Anonymous6-Nov-04 18:53 
GeneralRe: TIMER Pin
marctonnard7-Nov-04 4:59
marctonnard7-Nov-04 4:59 
GeneralTabControl Pin
Jeeva Jose6-Nov-04 13:43
Jeeva Jose6-Nov-04 13:43 
GeneralTreeview with ordering control Pin
GeneralDisorder6-Nov-04 9:46
GeneralDisorder6-Nov-04 9:46 
GeneralWebBrowser control help Pin
Jvetter72136-Nov-04 5:26
sussJvetter72136-Nov-04 5:26 
GeneralHave a problem while create DLL!!!Need Help Pin
john_tran6-Nov-04 3:12
john_tran6-Nov-04 3:12 
I create a DLL in VC++, call VD.DLL, and include file VD.CPP, its contain:

int _stdcall VD(int *index)
{
int i;
for(i=0;i<5;i++)
index[i] = i;
return (i);
}

In VB6.0, i declare to use this DLL:
Private Declare Function VD "my-dll-path" (ByRef intIndex as integer) as Integer

And use this function in VB's body like this:

Dim intIndex(0 to 50) as Integer //Global Integer Array

Sub VD()
Dim i as integer, intI as Integer
intI = VD(intIndex)
for i=0 to intI-1
MsgBox "Value " & i & " = " & intIndex(i)
Next
End Sub

And It shows :
Value 0 = 0
Value 1 = 0 'Unexpectly
Value 2 = 1
Value 3 = 0 'Unexpectly
Value 4 = 2

The second and fourth line is not correct. Because in my case, i must show:

Value 0 = 0
Value 1 = 1
Value 2 = 1
Value 3 = 3
Value 4 = 4

Why this happen? Anything wrong in my code?
Thanks


Ask More - Learn More
JohnJone
GeneralRe: Have a problem while create DLL!!!Need Help Pin
Dave Kreskowiak6-Nov-04 5:43
mveDave Kreskowiak6-Nov-04 5:43 
GeneralRe: Have a problem while create DLL!!!Need Help Pin
john_tran8-Nov-04 2:43
john_tran8-Nov-04 2:43 
GeneralMS Chart Problem Pin
VinayKumarS6-Nov-04 0:10
VinayKumarS6-Nov-04 0:10 
Generalserial port communication in vb Pin
arunkg5-Nov-04 19:04
arunkg5-Nov-04 19:04 
GeneralNeed a little help here Pin
KevinMac5-Nov-04 16:40
KevinMac5-Nov-04 16:40 
QuestionMAPI in VB.Net? Pin
chriscpa5-Nov-04 12:15
chriscpa5-Nov-04 12:15 
AnswerRe: MAPI in VB.Net? Pin
Dave Kreskowiak22-Dec-04 0:59
mveDave Kreskowiak22-Dec-04 0:59 
GeneralAutomatic scrolling scroll bars Pin
jamesbronw5-Nov-04 5:46
jamesbronw5-Nov-04 5:46 
GeneralRe: Automatic scrolling scroll bars Pin
arunkg5-Nov-04 19:08
arunkg5-Nov-04 19:08 
GeneralRe: Automatic scrolling scroll bars Pin
Anonymous6-Nov-04 5:39
Anonymous6-Nov-04 5:39 
GeneralPrinting Files Pin
cwayman5-Nov-04 1:09
cwayman5-Nov-04 1:09 
GeneralRe: Printing Files Pin
cwayman5-Nov-04 3:15
cwayman5-Nov-04 3:15 
GeneralRe: Printing Files Pin
Member 14977515-Nov-04 13:12
Member 14977515-Nov-04 13:12 
GeneralRe: Printing Files Pin
Mekong River5-Nov-04 16:34
Mekong River5-Nov-04 16:34 
GeneralRe: Printing Files Pin
Member 14977516-Nov-04 4:52
Member 14977516-Nov-04 4:52 
GeneralRe: Printing Files Pin
Dave Kreskowiak6-Nov-04 5:39
mveDave Kreskowiak6-Nov-04 5:39 
GeneralRe: Printing Files Pin
cwayman7-Nov-04 22:02
cwayman7-Nov-04 22:02 

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.