Click here to Skip to main content
15,881,380 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiontool for styling Pin
asha_s9-Apr-08 23:44
asha_s9-Apr-08 23:44 
JokeRe: tool for styling Pin
ChandraRam10-Apr-08 1:29
ChandraRam10-Apr-08 1:29 
GeneralString comparison/search Pin
Brendan Vogt9-Apr-08 22:15
Brendan Vogt9-Apr-08 22:15 
GeneralRe: String comparison/search Pin
Steven J Jowett9-Apr-08 22:57
Steven J Jowett9-Apr-08 22:57 
GeneralRe: String comparison/search Pin
helelark1239-Apr-08 23:18
helelark1239-Apr-08 23:18 
GeneralRe: String comparison/search Pin
Steven J Jowett9-Apr-08 23:32
Steven J Jowett9-Apr-08 23:32 
GeneralRe: String comparison/search Pin
helelark1239-Apr-08 22:58
helelark1239-Apr-08 22:58 
GeneralConvert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
drexler_kk9-Apr-08 20:51
drexler_kk9-Apr-08 20:51 
Hello all,I'm new to VB,I found problem on converting the following code to VB.NET. I'm using the Visual Studio 2003 here. Anyone please give me a solution for the following code I found in the main module :

Public Declare Function GetPrivateProfileSection Lib "KERNEL32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long<br />
<br />
Public Declare Function GetPrivateProfileSectionNames Lib "kernel32.dll" Alias "GetPrivateProfileSectionNamesA" (ByVal lpszReturnBuffer As String, ByVal nSize As Long, ByVal lpFileName As String) As Long<br />
<br />
Public Declare Function GetPrivateProfileString Lib "KERNEL32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long<br />
<br />
Public Declare Function GetTempPath Lib "KERNEL32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long<br />
<br />
Public Declare Function GetTempFileName Lib "KERNEL32" Alias "GetTempFileNameA" (ByVal lpszPath As String, ByVal lpPrefixString As String, ByVal wUnique As Long, ByVal lpTempFileName As String) As Long<br />
<br />
Public Declare Function SetFileAttributes Lib "KERNEL32" Alias "SetFileAttributesA" (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long<br />
<br />
Public Declare Function GetShortPathName Lib "KERNEL32" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal lBuffer As Long) As Long<br />
<br />
Public Declare Function GetDesktopWindow Lib "user32" () As Long<br />
<br />
Public Declare Function GetFileTitle Lib "comdlg32.dll" Alias "GetFileTitleA" (ByVal lpszFile As String, ByVal lpszTitle As String, ByVal cbBuf As Integer) As Integer<br />


Thank you in advance for giving me some solution for the above convertion.

Regards
Drexler
GeneralRe: Convert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
Dave Kreskowiak10-Apr-08 3:43
mveDave Kreskowiak10-Apr-08 3:43 
GeneralRe: Convert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
drexler_kk10-Apr-08 15:22
drexler_kk10-Apr-08 15:22 
GeneralRe: Convert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
Dave Kreskowiak10-Apr-08 16:10
mveDave Kreskowiak10-Apr-08 16:10 
GeneralRe: Convert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
drexler_kk10-Apr-08 16:34
drexler_kk10-Apr-08 16:34 
GeneralRe: Convert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
Dave Kreskowiak11-Apr-08 1:28
mveDave Kreskowiak11-Apr-08 1:28 
GeneralRe: Convert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
drexler_kk11-Apr-08 15:48
drexler_kk11-Apr-08 15:48 
GeneralRe: Convert VB6 code to VB.NET - Public Declare Function GetPrivateProfileSection Pin
rahul_dss29-Nov-10 0:33
rahul_dss29-Nov-10 0:33 
QuestionRegarding differnt formats Pin
vijaylumar9-Apr-08 20:08
vijaylumar9-Apr-08 20:08 
GeneralRe: Regarding differnt formats Pin
Marc Soleda9-Apr-08 20:52
Marc Soleda9-Apr-08 20:52 
GeneralRe: Regarding differnt formats Pin
Dave Kreskowiak10-Apr-08 3:41
mveDave Kreskowiak10-Apr-08 3:41 
QuestionGenerating Project Documentation for vb.net 2.0 windows application Pin
vijaylumar9-Apr-08 20:00
vijaylumar9-Apr-08 20:00 
GeneralRe: Generating Project Documentation for vb.net 2.0 windows application Pin
ilprincipe9-Apr-08 20:38
ilprincipe9-Apr-08 20:38 
GeneralRe: Generating Project Documentation for vb.net 2.0 windows application Pin
Marc Soleda9-Apr-08 20:51
Marc Soleda9-Apr-08 20:51 
Questionvbcommenter Pin
Tauseef A9-Apr-08 18:13
Tauseef A9-Apr-08 18:13 
GeneralRe: vbcommenter Pin
Marc Soleda9-Apr-08 20:58
Marc Soleda9-Apr-08 20:58 
GeneralRe: vbcommenter Pin
helelark1239-Apr-08 21:46
helelark1239-Apr-08 21:46 
GeneralRe: vbcommenter Pin
Marc Soleda9-Apr-08 21:48
Marc Soleda9-Apr-08 21:48 

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.