Click here to Skip to main content
15,902,860 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Jeneesh K. Velayudhan28-Dec-09 23:13
Jeneesh K. Velayudhan28-Dec-09 23:13 
GeneralRe: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Dimitri Witkowski28-Dec-09 23:23
Dimitri Witkowski28-Dec-09 23:23 
GeneralRe: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Jeneesh K. Velayudhan5-Jan-10 20:02
Jeneesh K. Velayudhan5-Jan-10 20:02 
GeneralRe: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Dimitri Witkowski5-Jan-10 20:32
Dimitri Witkowski5-Jan-10 20:32 
GeneralRe: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Jeneesh K. Velayudhan11-Jan-10 23:47
Jeneesh K. Velayudhan11-Jan-10 23:47 
AnswerRe: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
john_masen7-Jan-10 1:51
john_masen7-Jan-10 1:51 
GeneralRe: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Jeneesh K. Velayudhan11-Jan-10 23:49
Jeneesh K. Velayudhan11-Jan-10 23:49 
QuestionDetermine executing OS, not application architecture Pin
Tony Teveris22-Dec-09 8:41
Tony Teveris22-Dec-09 8:41 
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

AnswerRe: Determine executing OS, not application architecture Pin
Sir Dot Net22-Dec-09 8:50
Sir Dot Net22-Dec-09 8:50 
GeneralRe: Determine executing OS, not application architecture Pin
Tony Teveris22-Dec-09 9:07
Tony Teveris22-Dec-09 9:07 
GeneralRe: Determine executing OS, not application architecture Pin
Sir Dot Net22-Dec-09 10:48
Sir Dot Net22-Dec-09 10:48 
AnswerRe: Determine executing OS, not application architecture Pin
Luc Pattyn22-Dec-09 8:55
sitebuilderLuc Pattyn22-Dec-09 8:55 
GeneralRe: Determine executing OS, not application architecture Pin
Tony Teveris22-Dec-09 9:20
Tony Teveris22-Dec-09 9:20 
QuestionDate formatting issue Pin
Jack Vanderhorst22-Dec-09 8:03
Jack Vanderhorst22-Dec-09 8:03 
AnswerRe: Date formatting issue [modified] Pin
Luc Pattyn22-Dec-09 8:13
sitebuilderLuc Pattyn22-Dec-09 8:13 
GeneralRe: Date formatting issue Pin
Jack Vanderhorst22-Dec-09 9:09
Jack Vanderhorst22-Dec-09 9:09 
GeneralRe: Date formatting issue Pin
Luc Pattyn22-Dec-09 9:18
sitebuilderLuc Pattyn22-Dec-09 9:18 
QuestionAppDomains and native window message handlers Pin
rogerkhoueiry22-Dec-09 4:02
rogerkhoueiry22-Dec-09 4:02 
QuestionTAG control [modified] Pin
ghbloos20-Dec-09 23:09
ghbloos20-Dec-09 23:09 
AnswerRe: TAG control Pin
hattonjohn17-Feb-10 12:01
hattonjohn17-Feb-10 12:01 
GeneralRe: TAG control Pin
ghbloos21-Feb-10 22:11
ghbloos21-Feb-10 22:11 
Questionin javascript, how to get a struct return by C# Pin
coderormnger20-Dec-09 18:58
coderormnger20-Dec-09 18:58 
AnswerRe: in javascript, how to get a struct return by C# Pin
coderormnger23-Dec-09 19:50
coderormnger23-Dec-09 19:50 
QuestionShallow and deep copies Pin
Jeroen De Dauw20-Dec-09 6:28
Jeroen De Dauw20-Dec-09 6:28 
AnswerRe: Shallow and deep copies Pin
Luc Pattyn20-Dec-09 6:53
sitebuilderLuc Pattyn20-Dec-09 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.