Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionChanging backcolor of a textbox Pin
CHill6024-Apr-14 5:54
mveCHill6024-Apr-14 5:54 
AnswerRe: Changing backcolor of a textbox Pin
Tino Fourie24-Apr-14 6:16
Tino Fourie24-Apr-14 6:16 
GeneralRe: Changing backcolor of a textbox Pin
CHill6025-Apr-14 0:45
mveCHill6025-Apr-14 0:45 
AnswerRe: Changing backcolor of a textbox Pin
Richard Deeming24-Apr-14 6:21
mveRichard Deeming24-Apr-14 6:21 
QuestionAccessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher23-Apr-14 11:39
Peter R. Fletcher23-Apr-14 11:39 
AnswerRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Dave Kreskowiak23-Apr-14 12:32
mveDave Kreskowiak23-Apr-14 12:32 
GeneralRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher23-Apr-14 12:48
Peter R. Fletcher23-Apr-14 12:48 
AnswerRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Bernhard Hiller23-Apr-14 22:35
Bernhard Hiller23-Apr-14 22:35 
VB
Dim sbWindDir As New StringBuilder(5)
'nothing happens with that StringBuilder, and then
gwdcurrent.WindDir = GetWindDirStr_V(sbWindDir).ToString

So you pass an empty StringBuilder instance with a capacity of 5 characters to the GetWindDirStr_V function. What does happen in that function? How does the signature of the function of the thirdparty dll look like, and how does your DllImport statement look like?
Other values called seem to be numeric types, and this one is a string type. Hence I guess the problem is actually in the marshalling of the non-managed "string" to the managed string. Also the length of the string could be wrong: what about "SouthEast" with 9 characters or "NorthNorthWest" with 14? I.e. a simple buffer overflow, actually independent from threading issues.
GeneralRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher24-Apr-14 3:17
Peter R. Fletcher24-Apr-14 3:17 
AnswerRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Bernhard Hiller24-Apr-14 21:15
Bernhard Hiller24-Apr-14 21:15 
GeneralRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher25-Apr-14 5:49
Peter R. Fletcher25-Apr-14 5:49 
QuestionExcel VBA Macro ' Run-time error '9': Subscript out of range ' Pin
Deimantas23-Apr-14 0:53
Deimantas23-Apr-14 0:53 
AnswerRe: Excel VBA Macro ' Run-time error '9': Subscript out of range ' Pin
Richard Deeming23-Apr-14 1:23
mveRichard Deeming23-Apr-14 1:23 
GeneralRe: Excel VBA Macro ' Run-time error '9': Subscript out of range ' Pin
Deimantas23-Apr-14 1:33
Deimantas23-Apr-14 1:33 
GeneralRe: Excel VBA Macro ' Run-time error '9': Subscript out of range ' Pin
Richard Deeming23-Apr-14 1:38
mveRichard Deeming23-Apr-14 1:38 
GeneralRe: Excel VBA Macro ' Run-time error '9': Subscript out of range ' Pin
Deimantas25-Apr-14 8:45
Deimantas25-Apr-14 8:45 
QuestionVariable Question Pin
DJHJr21-Apr-14 4:33
DJHJr21-Apr-14 4:33 
AnswerRe: Variable Question Pin
Eddy Vluggen21-Apr-14 8:15
professionalEddy Vluggen21-Apr-14 8:15 
GeneralRe: Variable Question Pin
DJHJr21-Apr-14 10:10
DJHJr21-Apr-14 10:10 
GeneralRe: Variable Question Pin
Wes Aday21-Apr-14 11:47
professionalWes Aday21-Apr-14 11:47 
GeneralRe: Variable Question Pin
DJHJr21-Apr-14 13:09
DJHJr21-Apr-14 13:09 
GeneralRe: Variable Question Pin
Wes Aday21-Apr-14 13:14
professionalWes Aday21-Apr-14 13:14 
GeneralRe: Variable Question Pin
DJHJr21-Apr-14 13:17
DJHJr21-Apr-14 13:17 
GeneralRe: Variable Question Pin
DJHJr28-Apr-14 6:22
DJHJr28-Apr-14 6:22 
Questionrunning AxAcroPDF in a dialog, right choice or not Pin
jkirkerx20-Apr-14 9:49
professionaljkirkerx20-Apr-14 9:49 

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.