Click here to Skip to main content
15,900,461 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
OK. All you needed was the Declare statements, not the entire page of code. The code is there only as an example fo using the function.

Marshal needs the System.Runtime.Interop namespace imported at the top of your code.

The second error comes up because, it's true, you're trying to pass an IntPtr variable where the function you're calling expects a string.


You don't need to do all this stuff. There's already libraries out there, like this one[^], that read/write .INI files without all this work.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




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 
GeneralRe: vbcommenter Pin
helelark1239-Apr-08 22:56
helelark1239-Apr-08 22:56 
GeneralRe: vbcommenter Pin
Marc Soleda12-Apr-08 5:57
Marc Soleda12-Apr-08 5:57 
GeneralRe: vbcommenter [modified] Pin
helelark12312-Apr-08 22:11
helelark12312-Apr-08 22:11 
Questionhelp..urgent ..insert time to database [modified] Pin
Member 44429169-Apr-08 16:46
Member 44429169-Apr-08 16:46 
GeneralRe: help..urgent ..insert time to database Pin
Christian Graus9-Apr-08 17:35
protectorChristian Graus9-Apr-08 17:35 

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.