Click here to Skip to main content
15,918,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: code behind forms Pin
Fred Andres19-Jul-12 9:37
Fred Andres19-Jul-12 9:37 
GeneralRe: code behind forms Pin
Wes Aday19-Jul-12 9:51
professionalWes Aday19-Jul-12 9:51 
AnswerRe: code behind forms Pin
Luc Pattyn19-Jul-12 9:59
sitebuilderLuc Pattyn19-Jul-12 9:59 
GeneralRe: code behind forms Pin
Wes Aday19-Jul-12 10:43
professionalWes Aday19-Jul-12 10:43 
QuestionNeed help on porting from VB application to Vb.Net Pin
Ashish Ranjan Mishra19-Jul-12 0:13
Ashish Ranjan Mishra19-Jul-12 0:13 
AnswerRe: Need help on porting from VB application to Vb.Net Pin
Eddy Vluggen19-Jul-12 0:33
professionalEddy Vluggen19-Jul-12 0:33 
AnswerRe: Need help on porting from VB application to Vb.Net Pin
ZappaDog24-Jul-12 3:07
ZappaDog24-Jul-12 3:07 
GeneralVB6 Compile "unexpected error" Pin
MikeD 218-Jul-12 1:33
MikeD 218-Jul-12 1:33 
AnswerRe: VB6 Compile "unexpected error" Pin
Eddy Vluggen18-Jul-12 2:09
professionalEddy Vluggen18-Jul-12 2:09 
GeneralRe: VB6 Compile "unexpected error" Pin
MikeD 218-Jul-12 5:45
MikeD 218-Jul-12 5:45 
GeneralRe: VB6 Compile "unexpected error" Pin
Eddy Vluggen18-Jul-12 6:22
professionalEddy Vluggen18-Jul-12 6:22 
GeneralRe: VB6 Compile "unexpected error" Pin
MikeD 219-Jul-12 2:34
MikeD 219-Jul-12 2:34 
AnswerRe: VB6 Compile "unexpected error" Pin
Eddy Vluggen19-Jul-12 2:53
professionalEddy Vluggen19-Jul-12 2:53 
GeneralRe: VB6 Compile "unexpected error" Pin
Dave Kreskowiak18-Jul-12 2:19
mveDave Kreskowiak18-Jul-12 2:19 
GeneralRe: VB6 Compile "unexpected error" Pin
MikeD 218-Jul-12 5:47
MikeD 218-Jul-12 5:47 
GeneralRe: VB6 Compile "unexpected error" Pin
Dave Kreskowiak18-Jul-12 7:33
mveDave Kreskowiak18-Jul-12 7:33 
JokeRe: VB6 Compile "unexpected error" Pin
Paul Conrad18-Jul-12 9:40
professionalPaul Conrad18-Jul-12 9:40 
GeneralRe: VB6 Compile "unexpected error" Pin
Bernhard Hiller18-Jul-12 2:29
Bernhard Hiller18-Jul-12 2:29 
GeneralRe: VB6 Compile "unexpected error" Pin
MikeD 218-Jul-12 5:50
MikeD 218-Jul-12 5:50 
GeneralRe: VB6 Compile "unexpected error" Pin
Bernhard Hiller18-Jul-12 21:03
Bernhard Hiller18-Jul-12 21:03 
QuestionmciSendCommand in VB.NET Pin
kingneb17-Jul-12 5:52
kingneb17-Jul-12 5:52 
AnswerRe: mciSendCommand in VB.NET Pin
Luc Pattyn17-Jul-12 6:21
sitebuilderLuc Pattyn17-Jul-12 6:21 
GeneralRe: mciSendCommand in VB.NET Pin
kingneb17-Jul-12 6:45
kingneb17-Jul-12 6:45 
AnswerRe: mciSendCommand in VB.NET Pin
Luc Pattyn17-Jul-12 6:55
sitebuilderLuc Pattyn17-Jul-12 6:55 
GeneralRe: mciSendCommand in VB.NET Pin
Dave Kreskowiak17-Jul-12 11:05
mveDave Kreskowiak17-Jul-12 11:05 
On top of what Luc said, if you're converting VB6 code to VB.NET the biggest trip is using the wrong data types:

VB
VB6 type      VB.NET type
---------  =  ------------
Byte          Byte          8-bit unsigned integer
Integer       Short         16-bit signed integer
Long          Integer       32-bit signed integer
Single        Single        32-bit floating point
Double        Double        64-bit floating point
Currency      Decimal       (not a direct conversion)


When the function you're calling expects a certain size value, using the wrong type will most assuredly screw up the stack.

Also, you may want to bookmark P/Ivoke.net. It has the correct signatures for most Win32 functions for C# and VB.NET. For example, PlaySound[^] and mciSendString[^], as well as tons more.

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.