Click here to Skip to main content
15,890,506 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: TreeView Find not working Pin
treddie7-May-13 8:25
treddie7-May-13 8:25 
GeneralRe: TreeView Find not working Pin
Eddy Vluggen7-May-13 9:06
professionalEddy Vluggen7-May-13 9:06 
GeneralRe: TreeView Find not working Pin
treddie7-May-13 11:57
treddie7-May-13 11:57 
GeneralRe: TreeView Find not working Pin
Eddy Vluggen8-May-13 7:01
professionalEddy Vluggen8-May-13 7:01 
QuestionView the changes in the database by DATA SET... Pin
Ebrahem B Alabdaly4-May-13 6:23
Ebrahem B Alabdaly4-May-13 6:23 
AnswerRe: View the changes in the database by DATA SET... Pin
Eddy Vluggen5-May-13 8:38
professionalEddy Vluggen5-May-13 8:38 
QuestionPathTooLongException and Solutions? Pin
treddie3-May-13 9:38
treddie3-May-13 9:38 
AnswerRe: PathTooLongException and Solutions? Pin
Eddy Vluggen5-May-13 9:43
professionalEddy Vluggen5-May-13 9:43 
treddie wrote:
In his code, he does not include declarations for his API functions, although he does import namespaces. Is this because he is working in C#
He does. You can browse the source code using the links in the article. His P/Invokes start on line number 46.

treddie wrote:
the online converter cannot necessarily know that declarations need to be added to the converted code, if in fact they DO need to be.
Bad translator.

treddie wrote:
why wouldn't those same Import lines work just as well in vb.Net? If that is where these functions are located, then why does vb.Net require explicit declarations? Is this so an entire library does not need to be loaded into memory all at once?
There's multiple ways to link/load a dll. The "using" or "import" lines are defining which namespaces to look in when searching for a specific class-type. Sometimes one needs to "add (a) reference" to an external assembly to be able to access types in other libraries. That's the usual route for managed code - anything in .NET.

There's also a lot of unmanged code on the machine, as is the WinAPI. The code is also linking to a specific part in the WinAPI in "kernel32.dll". Both VB.NET and C# need special declarations for these, decorated with the DllImport attribute.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: PathTooLongException and Solutions? Pin
treddie5-May-13 9:50
treddie5-May-13 9:50 
GeneralRe: PathTooLongException and Solutions? Pin
Eddy Vluggen5-May-13 10:04
professionalEddy Vluggen5-May-13 10:04 
QuestionHow do i save all opened windows Pin
Member 46241693-May-13 3:16
Member 46241693-May-13 3:16 
AnswerRe: How do i save all opened windows Pin
GuyThiebaut3-May-13 4:23
professionalGuyThiebaut3-May-13 4:23 
QuestionHow do i save all opened windows Pin
Member 46241693-May-13 2:56
Member 46241693-May-13 2:56 
QuestionTry Catch does not Execute Catch code Pin
treddie2-May-13 18:31
treddie2-May-13 18:31 
AnswerRe: Try Catch does not Execute Catch code Pin
Richard MacCutchan2-May-13 21:41
mveRichard MacCutchan2-May-13 21:41 
GeneralRe: Try Catch does not Execute Catch code Pin
treddie2-May-13 22:02
treddie2-May-13 22:02 
QuestionMethod signature does not match delegate - thread safe Pin
Member 100187622-May-13 7:12
Member 100187622-May-13 7:12 
AnswerRe: Method signature does not match delegate - thread safe Pin
Richard Deeming2-May-13 8:21
mveRichard Deeming2-May-13 8:21 
GeneralRe: Method signature does not match delegate - thread safe Pin
Member 100187622-May-13 11:00
Member 100187622-May-13 11:00 
GeneralRe: Method signature does not match delegate - thread safe Pin
Alan N2-May-13 12:26
Alan N2-May-13 12:26 
QuestionTrouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 0:07
savedlema2-May-13 0:07 
AnswerRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard MacCutchan2-May-13 1:07
mveRichard MacCutchan2-May-13 1:07 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard Deeming2-May-13 1:23
mveRichard Deeming2-May-13 1:23 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
Richard MacCutchan2-May-13 1:27
mveRichard MacCutchan2-May-13 1:27 
GeneralRe: Trouble passing arguments to System.Diagnostics.Process.Start Pin
savedlema2-May-13 8:06
savedlema2-May-13 8:06 

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.