Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 818
  • Last Modified:

Compile VB Program files to exe file

Hello Everyone,

Recently we are migrated or website to a new server.
The website has some VB Classic program that are run on the server every morning.

We are getting an error while running those program, the main functionality of those programs are read a txt file and download some images from other websites.

The download image part is giving us an error "429 ActiveX component can't create object".

I can try to change the program, but I am not familiar with on how to compile the files to make an exe file.

The file that in the directory are:
CONFIG.INI,DealerSpecial.csi,DealerSpecial.exe,DealerSpecial.lvw,DealerSpecial.vbp,DealerSpecial.vbw,Globals.bas,clsVinDecoder.cls,clsVinDecoder20.cls,cShellExecute.cls,frmDisplay.frm.

Please help me on how to compile these files into the exe files or what software will I need to do so.
0
sonu19
Asked:
sonu19
  • 4
  • 3
1 Solution
 
RobSampsonCommented:
It looks like program would be a VB6 program.  If you have Visual Basic 6, open the vbp file, then make changes, and compile the EXE with VB6.

Regards,

Rob.
0
 
sonu19Author Commented:
Where can I download VB 6, since all I see is VS 2005 which I already have doesn't work.
0
 
RobSampsonCommented:
It's old technology, but must be purchased.  I'm not aware of any trial version you can download.

However, I'm not sure this is a problem with that EXE program in question....can you post the line of code that is getting the "cannot create object" error?  This looks like you'd have a line such as:
Set objObject = Server.CreateObject("something.something")

Perhaps that object isn't registered properly on the server....

Regards,

Rob.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
sonu19Author Commented:
I think you are right here is that code

Private Function GetImage(sUrl As String, iCarID As Long) As Boolean
    'NOT USED
       
    GetImage = True
    Dim objHTTP As Object
   
    Set objHTTP = CreateObject("ASPHTTP.Conn")
    WriteLog "Created Image objects"
 
    objHTTP.Url = sUrl
    objHTTP.FollowRedirects = False
    objHTTP.RequestMethod = "GET"
    objHTTP.UserAgent = "Mozilla/2.0 (compatible; MSIE 3.0B; Windows NT)"
    objHTTP.SaveFileTo = G_ProgramDefaults.g_UsedCarsPath & iCarID & "_large." & Right(sUrl, 3)
    objHTTP.GetURL
    WriteLog "Storing Image for Car:" & G_ProgramDefaults.g_UsedCarsPath & iCarID & "_large." & Right(sUrl, 3)
   
    Set objHTTP = Nothing

End Function
0
 
RobSampsonCommented:
OK, it looks like you can get that ActiveX control from here:
http://www.serverobjects.com/comp/asphttp3.htm

Obtain that, install it to the server, and see how you go....

Regards,

Rob.
0
 
sonu19Author Commented:
Thanks Rob,

My Activex error is resolved.

0
 
RobSampsonCommented:
Exellent.  Glad to help.

Rob.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now