Solved

API

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now