|
-
Sep 16th, 2005, 08:28 AM
#1
[RESOLVED] My dll doesn't appear
Hi guys, I've got an odd problem I'm hoping someone can make a suggestion on.
I have a dll that handles various registry functions. I didn't actually write it myself but took some existing code and wrapped it in a dll for ease of use. If I include the dll in an installation package as part of another product all goes well and the exe for the other product works fine and appears to use the dll (it uses it's functionality certainly). However, if I then open vb the dll isn't available in the references. I've tried having my installer package (inno setup) register it, I've tried registering it manually using regsvr32 and I've even tried rebuilding it in VB but nothing seems to work, it just doesn't appear and I can't work out why not.
Does anyone have any suggestions as to what I could check?
-
Sep 16th, 2005, 08:34 AM
#2
Re: My dll doesn't appear
The .Dll will only be available in the VB projects to which you wish to reference it as it isn't a standard.
If you go to references, click Browse, locate it, double click on it and click OK, it will become a part of the project you are currently working on.
-
Sep 16th, 2005, 08:47 AM
#3
Re: My dll doesn't appear
Sorry Hack, you've missunderstood me. I'm trying to add it in the references section but it's not appearing in the list. Various other dll's of mine are in there and I can use them as normal if I set a reference, but this one seems to have done a Houdini.
In fact, if I copy a project which already references the dll onto the machine and open the references list it shows as 'MISSING'. However, if I bring a compiled version of the same project onto the machine the exe works fine.
-
Sep 16th, 2005, 08:57 AM
#4
Re: My dll doesn't appear
 Originally Posted by FunkyDexter
Sorry Hack, you've missunderstood me. I'm trying to add it in the references section but it's not appearing in the list. Various other dll's of mine are in there and I can use them as normal if I set a reference, but this one seems to have done a Houdini.
In fact, if I copy a project which already references the dll onto the machine and open the references list it shows as 'MISSING'. However, if I bring a compiled version of the same project onto the machine the exe works fine.
Well that sounds darned odd. The .dll is actually on your machine right?
Did you compile it on your machine?
-
Sep 16th, 2005, 09:03 AM
#5
Re: My dll doesn't appear
I originally compiled it on a different machine. Notably it DOES appear in the references on that machine and is usable as normal.
And yeah, it's definitely on this machine. If I register it using regsvr I get the registration succeeded message but it's still not there in my references section. I've even tried rebuilding on this machine and it still doesn't appear. I have a hunch I'm being a bit blonde and missing something obvious but I just can't figure out what.
(NB. it shouldn't make any difference but when I'm talking about different machines I actually mean different VMWare sessions)
-
Sep 16th, 2005, 09:37 AM
#6
Re: My dll doesn't appear
 Originally Posted by FunkyDexter
I'm trying to add it in the references section but it's not appearing in the list. Various other dll's of mine are in there and I can use them as normal if I set a reference, but this one seems to have done a Houdini.
If you click the browse button on the references screen, locate it, does it allow you to add it to a project that way?
-
Sep 16th, 2005, 09:44 AM
#7
Re: My dll doesn't appear
Now this is getting REALLY weird. I went into the project that already referenced it but showed it as missing and browsed for the dll. It let me select it and add it with no errors but it STILL showed as missing in list.
I then opened a new project, drop down the list of references and there it is! Go back to the project that originally referenced it and it still shows as missing. Go figure.
-
Sep 16th, 2005, 09:54 AM
#8
Re: My dll doesn't appear
Open up the .vbp file associated with the projects. You can use NotePad for that.
It is altogether possible that somewhere along the line something gotten written back to the project file itself, and for some reason, it didn't get removed.
If you find MISSING entrys in the .vbp file, remove them and save it.
Then open up the project and see if this issue goes away.
-
Sep 16th, 2005, 09:59 AM
#9
Re: My dll doesn't appear
It doesn't show as missing in the vbp. I assume it would appear on this line:-
Code:
Reference=*\G{91F8E33A-B2FB-44F3-95A7-FE17EDB150DF}#3.0#0#..\..\Registry Editor\Registry.dll#E1RegistryEditor
Thanks for all your help with this by the way
-
Sep 16th, 2005, 10:38 AM
#10
Re: My dll doesn't appear
 Originally Posted by FunkyDexter
Thanks for all your help with this by the way
No problem. 
 Originally Posted by FunkyDexter
I then opened a new project, drop down the list of references and there it is! Go back to the project that originally referenced it and it still shows as missing. Go figure.
I just re-read everything in this thread so far, and this stood out.
So, if you open up a new project, you can reference the .dll with no problems. It is just with a couple of existing projects that this issue is showing up. Right?
I'm wondering if you open up a new project, reference this .dll, save this project, compile project1.exe, then close the project, close VB, reopen VB and reopen that project, if the reference will remain intact. Try that.
-
Sep 16th, 2005, 10:51 AM
#11
Re: My dll doesn't appear
So, if you open up a new project, you can reference the .dll with no problems. It is just with a couple of existing projects that this issue is showing up. Right?
Well, a couple of hours ago I'd have said no, even when trying to build a new project it wasn't available. Thing is, now it seems to be appearing for new projects (but still not existing ones). I swear blind it wasn't appearing earlier but I may just be losing the plot on a Friday afternoon.
I'm wondering if you open up a new project, reference this .dll, save this project, compile project1.exe, then close the project, close VB, reopen VB and reopen that project, if the reference will remain intact. Try that.
hmm, I'll give it a go.
edit> The reference remained intact. Which makes it sound like the problems with the projects I'm bringing across rather than the dll itself. I think I'll try some observation again after the weekend (5 mins to go ).
Thanks again and have a good weekend, Hack.
Last edited by FunkyDexter; Sep 16th, 2005 at 10:58 AM.
-
Sep 16th, 2005, 11:18 AM
#12
Re: My dll doesn't appear
 Originally Posted by FunkyDexter
Which makes it sound like the problems with the projects I'm bringing across rather than the dll itself. I think I'll try some observation again after the weekend (5 mins to go  ).
Thanks again and have a good weekend, Hack.
Based on everything that we have said so far, that is exactly what I'm thinking.
You have a good weekend to Funky and post back your results after you have run those tests.
-
Sep 19th, 2005, 05:41 AM
#13
Re: My dll doesn't appear
Aha, I think I might be there. I tried various experiments which I won't bore you with but eventually I've found that if I go back to the original project which referred to my dll and removed the reference, saved it, put the reference back in and saved it again before copying across to the other machine it's fine. There's one other project that exhibits so I should be able to fix that one now as well.
The only conclusion I can reach is that there was something wrong with the reference that was originally set. I can't see what though, it looks perfectly normal, has the correct path and works fine on the original machine.
-
Sep 19th, 2005, 07:49 AM
#14
Re: My dll doesn't appear
 Originally Posted by FunkyDexter
Aha, I think I might be there. I tried various experiments which I won't bore you with but eventually I've found that if I go back to the original project which referred to my dll and removed the reference, saved it, put the reference back in and saved it again before copying across to the other machine it's fine. There's one other project that exhibits so I should be able to fix that one now as well.
The only conclusion I can reach is that there was something wrong with the reference that was originally set. I can't see what though, it looks perfectly normal, has the correct path and works fine on the original machine.
I'm glad you got it working but based on all the things we have said and done, I'm not sure what happened either. However, I am going to bookmark this thread as a reference. I wouldn't be a bit surprised to have this type of thing happen to someone else too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|