By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,830 Members | 682 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,830 IT Pros & Developers. It's quick & easy.

Add Kernel32.dll to access references

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.