Click here to Skip to main content
15,920,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I need a countdown timer that works in a VB ASP.net MVC3 app Pin
Eddy Vluggen4-May-12 22:49
professionalEddy Vluggen4-May-12 22:49 
GeneralRe: I need a countdown timer that works in a VB ASP.net MVC3 app Pin
Member 84427504-May-12 23:42
Member 84427504-May-12 23:42 
QuestionVisual Basic 2010 : Creating a list and searching it efficiently using a binary file Pin
Member 89233203-May-12 9:20
Member 89233203-May-12 9:20 
AnswerRe: Visual Basic 2010 : Creating a list and searching it efficiently using a binary file Pin
Eddy Vluggen3-May-12 23:58
professionalEddy Vluggen3-May-12 23:58 
Question[Solved] Run Application in 64-bit mode Pin
Brandon-X120002-May-12 13:43
Brandon-X120002-May-12 13:43 
AnswerRe: Run Application in 64-bit mode Pin
Peter_in_27802-May-12 13:59
professionalPeter_in_27802-May-12 13:59 
GeneralRe: Run Application in 64-bit mode Pin
Brandon-X120003-May-12 2:48
Brandon-X120003-May-12 2:48 
GeneralRe: Run Application in 64-bit mode Pin
Brandon-X120003-May-12 2:57
Brandon-X120003-May-12 2:57 
GeneralRe: Run Application in 64-bit mode Pin
Peter_in_27803-May-12 12:11
professionalPeter_in_27803-May-12 12:11 
GeneralRe: Run Application in 64-bit mode Pin
Brandon-X120004-May-12 9:18
Brandon-X120004-May-12 9:18 
QuestionProblem using a fixed length string in a structure used as a parameter to a Win32API call Pin
dmt19401-May-12 9:29
dmt19401-May-12 9:29 
AnswerRe: Problem using a fixed length string in a structure used as a parameter to a Win32API call Pin
Dave Doknjas1-May-12 14:13
Dave Doknjas1-May-12 14:13 
GeneralRe: Problem using a fixed length string in a structure used as a parameter to a Win32API call Pin
dmt19402-May-12 6:52
dmt19402-May-12 6:52 
AnswerRe: Problem using a fixed length string in a structure used as a parameter to a Win32API call Pin
Luc Pattyn1-May-12 14:20
sitebuilderLuc Pattyn1-May-12 14:20 
Hi,

This article[^] of mine should help you out for most issues.

Yes it may take some experimenting; however for optimum progress, you should fix issues in this order:
1. The stack problem should be solved through the CallingConvention attribute.
2. The numeric parameters or fields should pose no problem, just make sure you use the managed/unmanaged types with matching sizes.
3. The fixed-length string field takes a MarshalAs with SizeConst (not sure a symbolic constant is acceptable); I expect ByValTStr is right, the doc says:
Used for in-line, fixed-length character arrays that appear within a structure. The character type used with ByValTStr is determined by the System.Runtime.InteropServices.CharSet argument of the System.Runtime.InteropServices.StructLayoutAttribute applied to the containing structure.

Good luck

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Problem using a fixed length string in a structure used as a parameter to a Win32API call Pin
dmt19402-May-12 7:52
dmt19402-May-12 7:52 
QuestionNumber comparisons in VBScript Pin
vanikanc30-Apr-12 9:56
vanikanc30-Apr-12 9:56 
AnswerRe: Number comparisons in VBScript Pin
Dave Kreskowiak30-Apr-12 13:18
mveDave Kreskowiak30-Apr-12 13:18 
GeneralRe: Number comparisons in VBScript Pin
vanikanc30-Apr-12 14:33
vanikanc30-Apr-12 14:33 
AnswerRe: Number comparisons in VBScript Pin
Midnight Ahri30-Apr-12 15:38
Midnight Ahri30-Apr-12 15:38 
GeneralRe: Number comparisons in VBScript Pin
Dave Kreskowiak30-Apr-12 16:04
mveDave Kreskowiak30-Apr-12 16:04 
GeneralRe: Number comparisons in VBScript Pin
vanikanc1-May-12 2:34
vanikanc1-May-12 2:34 
GeneralRe: Number comparisons in VBScript Pin
Dave Kreskowiak1-May-12 4:03
mveDave Kreskowiak1-May-12 4:03 
GeneralRe: Number comparisons in VBScript Pin
vanikanc1-May-12 6:35
vanikanc1-May-12 6:35 
Questionwhy I lose data after chnage the code or add code Pin
romo2228-Apr-12 13:44
romo2228-Apr-12 13:44 
AnswerRe: why I lose data after chnage the code or add code Pin
Wes Aday28-Apr-12 14:33
professionalWes Aday28-Apr-12 14:33 

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.