Click here to Skip to main content
15,888,022 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I got an exception while running windows application in vb on windows7 64-bit machine. Code is
C#
Public Function Login(ByVal userName As String, ByVal password As String) As Boolean
            Try
                sessObject = CreateObject(QRules.SessionClass)
                sessConnbject = CreateObject(QRules.ConnectionInfo)

Note: QRules is a dll.
While executing this code it throws an exception 'Can't create active x component'. But this code successfully executed in windows7 32-bit machine.

Thanks in advance
Ani
Posted
Updated 4-Sep-11 23:57pm
v2

Is your dll properly registered on 64 bit machine. Try to place it in C:\Windows\SysWOW64 and register.
 
Share this answer
 
Comments
anishkumar612 5-Sep-11 6:02am    
Yes.
Try changing your app platform target from Any CPU to x86, and recompile.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900