473,785 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add Kernel32.dll to access references

Hi,

Im wanting to add kernel32.dll to my references, but it says cant add
reference to the specified file. Does anyone know why? or shouldnt I even be
trying to do such a thing?

I want to be able to edit .ini files with some VB code that references that
library. Does anyone know how to do this from access?

Thanks for your help!
John


Nov 12 '05 #1
2 7818
"John Sheppard" <jt************ @nobosospam.com .au> wrote...
Im wanting to add kernel32.dll to my references,
You cannot do this. References are for COM libraries, which kernel32.dll is
decidedly not.
but it says cant add reference to the specified file.
It is right.
Does anyone know why?
See above.
or shouldnt I even be trying to do such a thing?
You shouldn't. :)
I want to be able to edit .ini files with some VB code that references that library. Does anyone know how to do this from access?


You would use APIs via "Declare" statements to work with the INI files. Lots
of samples around the web for this....
--
MichKa [MS]

This posting is provided "AS IS" with
no warranties, and confers no rights.

Nov 12 '05 #2
Thanks Michael! I got it to work!

Thank you for your wise comments :) I learn stuff.

"Michael (michka) Kaplan [MS]" <mi*****@online .microsoft.com> wrote in
message news:3f******** @news.microsoft .com...
"John Sheppard" <jt************ @nobosospam.com .au> wrote...
Im wanting to add kernel32.dll to my references,
You cannot do this. References are for COM libraries, which kernel32.dll

is decidedly not.
but it says cant add reference to the specified file.
It is right.
Does anyone know why?


See above.
or shouldnt I even be trying to do such a thing?


You shouldn't. :)
I want to be able to edit .ini files with some VB code that references

that
library. Does anyone know how to do this from access?


You would use APIs via "Declare" statements to work with the INI files.

Lots of samples around the web for this....
--
MichKa [MS]

This posting is provided "AS IS" with
no warranties, and confers no rights.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
2694
by: JustMe | last post by:
I don't know if this has anything to do with AccessXP running on Terminal Services with Access97/2000 also installed, but here is one example of a query that does not work any longer: SELECT DLookUp("MajorCategory","AutoTypes","='1'") AS MajorCategory, PreOwned.PaintColor FROM PreOwned; When I try to run the above query I get the following error:
2
2107
by: Peter Mather | last post by:
Hi, I have struck problems when trying to convert an Access97 database to Access 2000. I get a compile Error when I start the database in Access 2000.. The message is Can't find project or library. In the procedures it highlights the Error$ statement and in functions it highlights Left$ and Mid$
4
2404
by: Barry Young | last post by:
I have Access 2000 installed on a machine and I create the MDE just fine. When I copy the MDE file over to another machine that has Access 2000 installed, the references are hosed and I get unable to find function error. There are no third party controls in the application. This target machine is on a network requiring domain login, but the user is set up as a Local Administrator. Any ideas or code that I can use to work arount this...
11
1866
by: WindAndWaves | last post by:
Hi Gurus I have recently discovered references in the VB section of MS Access, however, when choosing references, I noticed that there are more than who knows how many options. How and/or where do you i get more information on all the references available? Are there any that I should be using / should be avoiding (I know about the DAO stuff)? Keen to hear any suggestions.
3
5893
by: SAM | last post by:
Hi everyone, I consider myself a very competent programmer when it comes to actual programming and analyzing the business that I'm modelling. I am now crossing into what I would consider Access admin/config territory, an area where I generally suck at. Here is my problem. I do all my programming on my laptop before giving
3
1664
by: Lauren Wilson | last post by:
Hello good folks! It is WAY past time for me to figure out how to check for the existence of all referenced libraries on application startup and provide feedback to the user if they are not. Do any of fine folks have a link to some sample VBA code that will do this? The big issue, I believe, is how to make such a procedure sensitive the various storage locations for the referenced DLLs on various versions of Access -- 2000, 2002 and...
24
2822
by: MLH | last post by:
Most people tell me I only need 3 references. It seems that many of my problems are related to references. I don't know what a reference is, quite frankly. I wish that, instead of about 200 references in the list, there were only those three I need. Many questions come to mind: 1) How do the references make their way into the list? 2) Must the 197 references in A97 that are unused be deleted? Or must they remain in the list.
2
4458
by: Jan Jeitziner | last post by:
I want to find out all dll's a process have. I've found example code on the page http://www.freevbcode.com/ShowCode.asp?ID=295 The problem is, the sample is written in vb6, but Application is written in vb.NET. I've rewritten the code for vb.net, but if I run the application, there is following runtime error message System.NullReferenceException: Object reference not set to an instance of an object. at...
3
7772
by: mnjkahn via AccessMonster.com | last post by:
I'm running Access 2003, modifying a query that has over 45 fields. When I right click on the field name in Query Design View, and then click Build, Access crashes before the Build window appears. It doesn't happen every time, and using the Zoom window works fine. It appears that it only happens when I want to modify an existing expression. This continues to happen even after the database is repaired and reopened. Anyone have any...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9954
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.