|
-
May 8th, 2002, 07:13 PM
#1
Thread Starter
Fanatic Member
How can you tell which functions are not being used by an app?
-
May 8th, 2002, 07:15 PM
#2
Stuck in the 80s
swift through the source and see if it's being called. Search for the name of the function and disregard instances where there's the word "Function" before it or when it's within the function itself.
Do you want to do this through code?
-
May 8th, 2002, 07:23 PM
#3
PowerPoster
There is free software available which can go through some code and let you know everything that is never used... what I miss about C compilers really - they'll usually always let you know you didn't use something...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
May 8th, 2002, 07:28 PM
#4
There's a few things I hate about VB when compared to C++ here goes:
myVar = MyVar + 1 'Why can't we have a ++ operand for VB?
C++ compilers tell you about unused code
they tell you if type conversion will lose data
if you overflow a variable, the app does not crash. Careful programming usually prevents this, but if it's accounted for, why program around it?
function overloading.
Function MyFunc(inputStr as string)
...code
Function MyFunc(inputStr as Double)
...code
For example
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
May 8th, 2002, 07:36 PM
#5
PowerPoster
That's a whole other discussion... 
And apparently, VB.NET accounts for much of that.
I'm still waiting on it...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
May 9th, 2002, 06:00 PM
#6
Thread Starter
Fanatic Member
so is there a program that checks which functions arent used?
-
May 9th, 2002, 06:08 PM
#7
PowerPoster
Yeah, but I don't know any specific ones. Have a look at places like C-net.com and do a google search.
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
May 9th, 2002, 08:49 PM
#8
Frenzied Member
-
May 9th, 2002, 08:50 PM
#9
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|