Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2006, 07:04 AM
Authorized User
 
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kaustav Send a message via Yahoo to Kaustav
Default ActiveX.exe to standard exe

I have a project containing to forms and a class module, but by mistake I have saved it as ActiveX exe. Now I want to make it a standard exe project. Butdoing so gives me a error saying some properties of the class module will be lost.

Plz help. I am stuck from the last 2 days. Its urgent for satisfying my client.

Bye

------------------
Kaustav
__________________
------------------
Kaustav
 
Old February 22nd, 2006, 03:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

don't care about the lost properties, you will need a Private class anyway...
Marco
 
Old February 23rd, 2006, 07:16 AM
Authorized User
 
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kaustav Send a message via Yahoo to Kaustav
Default

But in the class module i have implemented another class that have been imported from a 3rd party dll. So after forcefully changed the Activex to Standard Exe the code crashes. The software terminates prematurely.

I tred withevents command also for object creation of the external class but the thing isnt working. Plz help

------------------
Kaustav
 
Old February 23rd, 2006, 10:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. it crash on the create object of the external class?? or anywhere???

it didnt crash when you have your app as an activeX??

since your first try was like an activeX maybe the class is registered in the windows registry and you need to clean that up???

HTH

Gonzalo
 
Old February 23rd, 2006, 04:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well... the code crashes, which error do you get? can you post the line of code where the error occours?

Marco

PS much better than changing the type of the project, it is to create a new project (of the right type), add to it the references to the libraries and controls used in the first project, and then add the modules used in the first project (forms, classes etc) When importing classes you will have a messagew saying that the class instancing will be changed to Private, and that is ok
 
Old February 24th, 2006, 12:03 AM
Authorized User
 
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kaustav Send a message via Yahoo to Kaustav
Default

Marco,
Thnx once again. But the code does not crash at any line of code. It crashes when some event is generated from the external class(dll). So I cannot even detect the point of error.



------------------
Kaustav
 
Old February 24th, 2006, 12:10 AM
Authorized User
 
Join Date: Aug 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kaustav Send a message via Yahoo to Kaustav
Default

Gonzalo,
The exact position of the code getting stuck cannot be determined, because the software terminates when the external class tries to display a message or fires an event.
And since I havent created any object of the external class but have "Implemented" it in a class module so probably it isnt the cause of the error.

The activex exe runs fine.

Bye

------------------
Kaustav





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a ActiveX DLL in a Standard EXE earendall74 Beginning VB 6 2 November 24th, 2004 01:39 PM
Calling an ActiveX.EXE in C++ xgbnow Visual C++ 4 March 31st, 2004 08:12 AM
Calling an ActiveX.EXE in C++ xgbnow Pro VB 6 13 February 20th, 2004 12:31 PM
unregister activeX exe gbianchi Pro VB 6 2 February 10th, 2004 03:17 PM
ActiveX Exe and Dll Vasudevan VB How-To 1 September 26th, 2003 07:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.