last day (21 days later) » 

7:30 PM
hi
What platform/build is your C++ targeting
make sure to have Managed and UnManaged to target the same
So on your .NET Project(s) you can change from AnyCPU to x86 and uncheck "prefer 32bit"
 
hellO!
the unmanaged code is actually VB6, and it targets Win32
The managed code is set to "all cpu" which has worked fine up to this point. This is the first time we are trying to integrate WPF forms into the app.
I can try the prefer 32bit setting... sure
oh, UNCHECK... hang on
So I set the WPF DLL to compile to x86; the prefer option was already unchecked and I left it that way.
But I get the same error
FYI what I was just looking into was manually handling the AssemblyResolve event for these WPF dependencies. Seems like a hack but it seems to be nto finding the assemblies otherwise
 
when you say "managed code worked fine up to this point"
so can I assume the problem stemmed when you first added Sharp Vectors to your managed code ?
@UuDdLrLrSs you mean this way ? AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
I have a strong feeling its to do with bittness, its a bummer that I can't replicate it via Managed C++
 
7:57 PM
yes that's what I meant. We actually had some simple WPF in the project before but it had no external dependencies. Its the addition of these depdendencies which is breaking it.
your AssemblyResolve example is like what I was thinking, yes
not sure why C+ wasn't reproducing it. VB6 uses COM interop which is another layer of indirection, and I was guessing that is breaking the WPF assembly load process. Or confusing it, if your 32bit hunch is right.
 
from what I've seen and read, your C++ bitness should be the same as your Managed code, but you say it was working hunky dory until you referenced Sharp Vectors.
Now somehow your unmanaged code is unable to resolve the dependencies that your managed code WPF has on SharpVectors
and perhaps one way to understand what these missing dlls, is to use something like a dependency walker
 
I might throw process monitor at it also, that's a good idea
FYI a little proof of concept with assembly resolve actually seems to work. it feels like a workaround but I need to get this functioning somehow... I'll post an update if that really works out.
 
yes Sys Internals ProcMon
as you might have noticed Fuslogvw will not really tell us the missing dlls
so either SysInternals ProcMon or SharpVectors
yea I remember doing a POC with assembly resolve but then thats a hack I would try to avoid
 

  last day (21 days later) »