Solved

API

Posted on 1998-09-22
4
180 Views
Last Modified: 2010-04-30
Hi Experts,

  I wish to know why did the error below occured :)
  - can't find Dll entry point GetProfileString in Kernel32

  GetProfileString is a Function delare with :)

 declare function GetProfileString Lib "Kernel32" ( byval Sname as string, byval Kname as string, byval Def as string, byval Ret as string, byVal size )as integer


 How can I fix this problem ?

thanks



SWP
0
Comment
Question by:SWP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:SWP
ID: 1436156
Edited text of question
0
 
LVL 1

Accepted Solution

by:
movieguy earned 100 total points
ID: 1436157
Try this declaration.  This is the way I have it declared and it works for me.

Declare Function GetProfileString Lib "kernel32" Alias "GetProfileStringA" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long) As Long

0
 
LVL 15

Expert Comment

by:Eyal
ID: 1436158
You have an addin for this in VB. Add it by Addin manager.

0
 

Author Comment

by:SWP
ID: 1436159
Yes, You had answered my quetion. Thank you.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question