Author Topic: Support for UserControls and Conditional compilation  (Read 4123 times)

sebastian

  • Guest
Support for UserControls and Conditional compilation
« Reply #10 on: March 28, 2011, 08:50:02 AM »
Hi Randem,
 
So far, it seems that it's working perfectly now.
Thanks.

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2618
Support for UserControls and Conditional compilation
« Reply #9 on: March 27, 2011, 10:18:20 PM »
Here is a fix for the conditional compilation statements and WithEvents Definitions. See how this works for you. Just replace the exe with this one.
 

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2618
Support for UserControls and Conditional compilation
« Reply #8 on: March 27, 2011, 10:05:24 AM »
Ok, I will take a look and let you know what I see and can do.

sebastian

  • Guest
Support for UserControls and Conditional compilation
« Reply #7 on: March 27, 2011, 08:10:39 AM »
Project 1 with code added
p1st.zip (1.0 k)
Project 2
p2.zip (0.9 k)
Project 2 with code added
p2st.zip (1.0 k)

 
Hello Randem: I found two problems. 
 
1) See it in Project 1, the conditional compilation variable cVersionX is set to 0 (go to the project men

sebastian

  • Guest
Support for UserControls and Conditional compilation
« Reply #6 on: March 22, 2011, 12:09:08 AM »
OK

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2618
Support for UserControls and Conditional compilation
« Reply #5 on: March 21, 2011, 03:35:44 PM »
Yes, sometimes it is in the coders style that may throw the VBSourceTrace off. that is why I asked for a module that you saw the problem with. When you find one that has the issue please send it to me so that I can verify and fix it.

sebastian

  • Guest
Support for UserControls and Conditional compilation
« Reply #4 on: March 21, 2011, 04:25:28 AM »
Hello:
 
I made a new simple project with a conditional compilation variable and it worked fine.
 
I should test it with my real project, and try to isolate the situation.
 
I also remember that there was some problem with the events declarations such as: Public Event EventName (SomeArgument as Boolean)...
 
As I said, I should test it with my real project because with a very simple sample that I just wrote, there was no problem conditional compilation and with an Event declaration either.
 
But I have a lot of work to do right now...
 
Thanks Randem.

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2618
Support for UserControls and Conditional compilation
« Reply #3 on: March 19, 2011, 07:38:17 PM »
User Controls support has been added in the new version that was just released. Visit the download page at VBSourceTrace for Version 2.1 Build 0
 
If you could supply a module or two with those conditional statements we can begin work on that also to get you working.

Randem

  • Administrator
  • Hero Member
  • *****
  • Posts: 2618
Support for UserControls and Conditional compilation
« Reply #2 on: March 18, 2011, 10:01:59 AM »
Aloha Sebastian,
 
If you could supply a control module and a module or two with such conditional statements in them we could look at them and find a solution for you.
 
Please zip them before posting.

sebastian

  • Guest
Support for UserControls and Conditional compilation
« Reply #1 on: March 18, 2011, 02:45:39 AM »
Hello:
 
I've used your tool a few times, it was useful to find run time bugs, but I faced two important problems:
 
The UserControls are ignored by the tool, and I frequently need to find such elusive errors in an ActiveX Control that has an UserControl (that is subclassed), so I face this strong limitation.
 
I also have conditional compilation statements, such as #If Condition Then,    #Else,    #End If
And the tool interprets some statements as a new procedure.
 
Regards.