Solved

API

Posted on 1998-09-22
4
181 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month5 days, 9 hours left to enroll

626 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