|
|
|
Too many fours!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, you failed, miserably.
|
|
|
|
|
Hi,
Can .NET wrappers be used as COM? If yes, how to do it?
Thanks,
|
|
|
|
|
|
It seems that you know everything and reply every question.
|
|
|
|
|
I was merely pointing out that you already asked this question once twice in the C and COM forums, and answered it yourself in the latter. So why have you posted it again a third time? I also wonder why you are angry that I pointed this out; guilty conscience I assume!
[edit]found the other posts[/edit]
modified on Wednesday, December 23, 2009 5:07 PM
|
|
|
|
|
I want to know other person's inputs. I want to know others' experience. If somebody knows the answer and happen did this before.
I post the question in other forums. I did not post here. There might be somebody here done this before.
PLEASE don't reply if you don't know the answer.
|
|
|
|
|
transoft wrote: PLEASE don't reply if you don't know the answer.
I still don't know the question!!!
|
|
|
|
|
lucky you, he doesn't want a question, all he wants is the answer.
|
|
|
|
|
Luc Pattyn wrote: all he wants is the answer.
And quite hopefully all 6.7 millions of them.
|
|
|
|
|
Hi,
am using a dll in my web project ("Owc11.dll")
Before upgrading our production server (32 bit) it was working fine. So, recently
our production server has been upgraded to 64 bit. So, while running the
application one error throwing like this:
"retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154"
Anybody could you please help me asap.
These much ways i have tried,
1. dll registered in GAC also available in regedit.
2. Enabled 32 bit appln (WOW64) on 64 bit application pool by using .net command prompt. But i have 64 bit applns also in the server. So left this method. (IIS won't support 32/64 mode applns at the same time).
3. Created Wrapper DLL and used by pre-binding method (act like interface b/w 32 bit DLL and 64 bit appln)
4. Handlers also used.
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
This CLSID is Microsoft CSpase DLL, as we can read in forums, correct?
0002E55D-0000-0000-C000-000000000046
Is it installed in your x64 system?
You can see it in Regedit, this key must present:
HKEY_CLASSES_ROOT\CLSID\{0002E55D-0000-0000-C000-000000000046}
|
|
|
|
|
yes, this dll and the corresponding public key is still available
in the regedit.
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
Is that component 32-bit or 64-bit?
|
|
|
|
|
32 bit COM
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
Maybe installing x64 version of it will help?
|
|
|
|
|
yes, definitely if i get this 64 bit dll. It would be resolved.
Vender is not released that one. that is the issue
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
looks your system still looking for the CLSID in 64bit registry. I think you can use process monitor monitor the registry to confirm. Then you know if you're on the right way.
|
|
|
|
|
yes, am on the right path. any other good suggestions, plz welcome.
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
I'm not sure why this has to be so hard but I've check and seen a bunch of solutions that do not work. Currently I've tried this:
Private Structure SYSTEM_INFO
Public wProcessorArchitecture As Integer
Public wReserved As Integer
Public dwPageSize As Long
Public lpMinimumApplicationAddress As Long
Public lpMaximumApplicationAddress As Long
Public dwActiveProcessorMask As Long
Public dwNumberOfProcessors As Long
Public dwProcessorType As Long
Public dwAllocationGranularity As Long
Public wProcessorLevel As Integer
Public wProcessorRevision As Integer
End Structure
Private Declare Sub GetNativeSystemInfo Lib "kernel32" (ByVal lpSystemInfo As SYSTEM_INFO)
.
.
.
Dim si As SYSTEM_INFO
GetNativeSystemInfo(si)
If si.wProcessorArchitecture = 9 Then
Console.WriteLine("64 bitter")
End If
.
.
.
What I noticed is that the structure never gets filled in.
I'm testing this on a Windows 7 64 bit OS
Any idea why this does not work or any ideas on how to figure out the OS architecture?
Thanks in advance
Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074
|
|
|
|
|
Look at Environment.OSVersion
|
|
|
|
|
On my Windows 7 64 bit the value is
"Microsoft Windows NT 6.1.7600.0"
Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074
|
|
|
|
|
if(IntPtr.Size == 8) {
//64-bit
} else if(IntPtr.Size == 4) {
//32-bit
}
This is based off the OS installed, not the CPU which is what I think you are looking for.
|
|
|
|