Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 22nd, 2006, 07:04 AM
Authorized User
 
Join Date: Aug 2003
Location: Kolkata, West Bengal, India.
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
Reply With Quote
  #2 (permalink)  
Old February 22nd, 2006, 03:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
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
Reply With Quote
  #3 (permalink)  
Old February 23rd, 2006, 07:16 AM
Authorized User
 
Join Date: Aug 2003
Location: Kolkata, West Bengal, India.
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
Reply With Quote
  #4 (permalink)  
Old February 23rd, 2006, 10:18 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
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
Reply With Quote
  #5 (permalink)  
Old February 23rd, 2006, 04:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
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
Reply With Quote
  #6 (permalink)  
Old February 24th, 2006, 12:03 AM
Authorized User
 
Join Date: Aug 2003
Location: Kolkata, West Bengal, India.
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
Reply With Quote
  #7 (permalink)  
Old February 24th, 2006, 12:10 AM
Authorized User
 
Join Date: Aug 2003
Location: Kolkata, West Bengal, India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.