The 'plw' contains the connection string but I can't find where that is set. I right clicked on it and went to 'Go To Definition' and it brought me to this.
namespace BaseClassLibrary{ public class Cm { public static string cp; public static string plc; public static string pld; public static string pldt; public static string plw; public Cm(); public static string ex(string cmm, string fc, string cmt, Hashtable ch, string ot, Ob rob, ArrayList al, Ts gts, Dl gdl, Label rl, bool q); }}
I am trying to find where these variables are set. I've done a search on the whole project and nothing shows up. I am thinking there is a 'behind the scenes' spot where it can be set in a project. I've looked in the 'Properties' page and clicked through each link and can't find it.
Any idea?
Thanks
C#.NET Programming
Last Comment
Jacque Scott
8/22/2022 - Mon
Arana (G.P.)
do you even know the name of the database? try searching for your database name or your username in the whole project, Since we can see the rest of the code I would also look into ODBC data sources in control panel. or in the project DATASOURCES
Jacque Scott
ASKER
Where do I find the project DataSources? I have tried to search for my database name and can't find it.
Jacque Scott
ASKER
I clicked on the 'Data Sources' on the far left and it states that there are none to show.
do you have any third party addons in your project? (infrgistics or similar? ), or data binding controls? if you have then the connection might be a property in one of them:
I found it. I was stepping through my program and it brought me to a page that had all of the variables for the DB set. It is called Cm.cs. I am looking for this page under the Solution Explorer and I don't see it. Because of the extension '.cs' I looked under the 'Classes' and I don't see 'Cm.cs' there, I also looked in all of those links.
Any idea of how to find this page again?
Jacque Scott
ASKER
The namespace is BaseClassLibrary. How do I get to this file?
I found it by looking through the files on my computer. This file is used on all my programs, which makes sense.
What I don't get is that I load this library on my program but I wasn't able to search in it or access it unless I step through my code and it loads that page or I open it using 'File - Open'. Is there any other way of opening it?
OK, the variables are, but I'm specifically asking if your code is obfuscated. Because typically obfuscators will have logic built in that defeats reverse engineering the code (for hopefully obvious reasons). If this code was run through an obfuscator, then you'll probably have a difficult time tracing through it.
Jacque Scott
ASKER
The person who wrote the program did not write any notes or very few. I have never heard of an obfuscator before. I doubt the programmer used one.