Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 5/21/2008(UTC) Posts: 24
|
Hi all
I have written an MSX dll in c++, it all works fine on my machine. I have tried to give a friend a copy using the self installing exe option, it doesn't seem to work. It copies all the indicators etc but not the dll. Placing a copy of the DLL manually in "External Function DLLS" doesn't work either, MS doesn't seem to be able to see it.
Any ideas as to why it isn't working?
Cheers
Stew
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Has your friend shut down and restarted MS? DLLs are loaded when MS starts, so any libraries added after MS has started will not be referenced.
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 5/21/2008(UTC) Posts: 24
|
He has restarted MS. I gave a copy to another person sometime ago and they had the same problem. Any other ideas?
Cheers
Stew
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
I assume you've thoroughly tested the library with MSXTest?
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 5/21/2008(UTC) Posts: 24
|
The DLL works fine in MSXTester and my version of MS.
Cheers
Stew
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Does your dll call any other dlls, such as an OS dll which the user might not have due to different OS? You could add some code to write to a log file when MS attempts to load the dll to see if it's failing initialisation.
Can you send the dll to someone else and have them try?
wabbit [:D]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/23/2005(UTC) Posts: 37
|
Im having the same problem.
http://forum.equis.com/forums/thread/30723.aspx
For some reason it works fine for me but my friend can not get MS to see the dll on startup. Its placed in the correct subfolder and theres no other dll required to use but for some reason MS wont recognize it grrrr...
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 5/21/2008(UTC) Posts: 24
|
I sent my friend a copy of MSXTest to see if that could load it, it gets the following error
DLL Name BBTT.dll <- my dll
ISystem error loading DLL:
This application has failed to start because the application configuration is incorr...
You cannot get what comes after incorr...
I haven't looked into this error message as yet.
If you find a solution can you let me know?
I am using Microsoft Visual C++ 9.0 express edition
Cheers
Stew
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 5/21/2008(UTC) Posts: 24
|
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 10/20/2009(UTC) Posts: 1
|
Does your friend have other DLLs in the External Function Dlls folder that he has brought in as yours that are working?
If not-
Check that there is no other folder in the equis folder that contains DLLs - if there is get your friend to insert there.
Sometimes package suppliers put their special DLLs in there own folder within the equis folder but before the External Functions DLL folder.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 5/21/2008(UTC) Posts: 24
|
He has other DLLs in the directory which MS can see just fine.
He has just loaded the DLL with Dependancy Walker and has sent me the report, I am about to have a look at it.
Cheers
Stew
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 6/21/2011(UTC) Posts: 1
|
It caused you build with the debug version. You should build with the release version.
But in release version, i am getting an error in MSXTest:
assumed non-MSX DLL (missing required exports)
Any suggestions?
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.