Convert VB .EXE File Into Source?
Jun 30, 2009I was wondering if there was a way to convert an EXE file made in Visual Basic back into its project form?
View 1 RepliesI was wondering if there was a way to convert an EXE file made in Visual Basic back into its project form?
View 1 RepliesI don't know what this is called so I've struggled to find an answer from google but I have a vague memory of it from t'old days.I've sub-classed (* see below) about 8 framework controls, overriden some properties and added some functionality into each one.The changes I have made are identical in every case. If I make a change, I have to go through each class and apply the same change there.I was hoping there may be a keyword such as <IncludeSourcefile "common.vb> that I can put into each class.
(* note) I use the term sub-classed but I don't know if that's the correct terminology. I've also seen it used for call-backs. Is sub-classed the correct term to use?
How do I convert a VB4 source code to VB10 source code?
View 3 RepliesAre there any tools converting vb.net source to C++ eg gnu C++. I know that Mono can transfer the projects to different platforms but i would rather prefer to convert the source. Since all we know that .net uses its own binary libs not available to other complilers is there any tool at least converting vb.net to C++ .net
View 7 RepliesI have a few projects developed in VS2010 but would like to share them with a fellow programmer who is using VS2008.
View 3 RepliesI found a nice source code for enumerating running application window and child window with several APIs in VB6. But when I convert this source code to vb2008 it doestn't work. Is there anybody to convert this source code attached to VB 2008 version.It will teach all of the newbies some nice ways to upgrade their other source codes to VB2008.
View 2 RepliesI have a program that belongs to vb windows form application and i want to make the program in vb class library[code]...
View 3 RepliesWould it be possible to convert strings to ASCII and subtract a number from each at the source, then add a number at the receiving end? I am sending messages on a LAN network (hopefully) and I know the packets may be monitored so I want to make sure they at least can't be read just by opening the data, something simple will do.
View 3 Repliesive been trying to use System.Security.Cryptography to encrypt and decrypt a file but its not working for me
this code
Private Sub EncryptFile(ByVal sInputFilename As String, ByVal sOutputFilename As String, ByVal sKey As String)
Dim fsInput As New FileStream(sInputFilename, FileMode.Open, FileAccess.Read)
Dim fsEncrypted As New FileStream(sOutputFilename, FileMode.Create, FileAccess.Write)
Dim DES As New DESCryptoServiceProvider()
[code]....
called with
DecryptFile(OpenFileDialog1.FileName, SaveFileDialog1.FileName, "12345678")[/CODE]
outputs a file that is almost 2x as large as the source file that was encrypted.
In my program I allow the user to copy a file from one folder to another. If the file already exists in the target folder I want it to be overwritten.
All that works just fine - I'm not asking how to copy files.
But here's an example
Source file is:-
\SomeMachinesomeFolderfile.xyz
Target is:-
P:file.xyz
This might at first look like two separate files but in this case P: is mapped to \SomeMachinesomeFolder so the source and the target are actually the same file and the file copy will obviously fail.
Of course I want it to fail but my problem is that the windows generic error message seen by the user is not very helpful. It says something simple like "... can't be copied because it's busy". If the user isn't very bright he doesn't realize he's selected the same file both as source and target and he doesn't understand why it's busy.
What I want to do is detect in advance that the source and the target are the same file and display a more meaningful message to the user and not even bother trying to copy.
So, is there a way to detect that
\SomeMachinesomeFolderfile.xyz
and
P:file.xyz
are actually the same file?
I want view source of any site in XML file.
View 2 RepliesI just tried debugging my game using the green play button, what ever thats called, and upon telling the debugger to break on a few lines, each time it actually hit that respective line, I got an error from vs2010 telling me that the source files were different than they were when the program was compiled...and every time that I USED to change the files, and then debug the program, vs2010 would automatically rebuild the files...
View 2 RepliesWay to space out the source code of a web page, having each tag on one line, without having to search for each tag ending and then making a new line after.
My code for obtaining the source code is:
CODE:
Also if anyone knows a way to colour the tags.
Is it possible to see the source code through the program debug database file. I lost the source code file but eventually I just have the exe and the pdb file, I am just wondering is there a possibility to get the source code through the pdb ?
View 3 RepliesThis should be very simple but I'm very new to Visual Studio so I can't get it to work. I want to take data from an excel (2003) file and turn it into a bunch of charts that would be viewable on a webpage that I'm trying to build in Visual Studio .Net 2005 professional.
I can't seem to use an excel file as my data source, here are the steps that I've followed:
1) created a new asp.net project
2) dragged a report viewer from the toolbox and it asks me to choose a report or "Design New Report."
3) Clicked Design New Report, and it opened up a new blank report.
4) Clicked "Add New Data Source" and got the Table Adapter Configuration Wizard.
5) Clicked new connection and it brought up the Add connection table.
6) Clicked "change" under data source and I chose Microsoft ODBC Data Source (not sure if that's right.)
7) Under "Data source specification" I chose "Excel Files"
- The first time I did this it brought up a window for me to choose an excel file so I did. Something along the way failed out but it stilled saved "ConnectionString1" as a connection to that first excel file. Now every time after I choose "Excel Files" and click "OK" the add connection window disappears and it goes back to the Table Adapter Configuration Wizard with the "ConnectionString1" as the connection string. It won't let me specify any different excel file. So I did 1-6 again and picked up at 7B
7B) Instead of using "Use user or system data source name:" I chose "Use connection string:" and clicked Build.
8) Picked the "Machine Data Source" tab and chose "Excel Files" and clicked ok
9) The "Select Workbook" window appears so I went to the file I wanted to use as my data source and click OK
10) Back on the Add Connection window I clicked test connection and it succeeded so I clicked ok.
11) It goes back to the Table Adapter Config Wiz window, but the connection string only says "Dsn=Excel Files"
12) clicked Next, then Next again, then clicked on Query Builder. The Add Table window pops up but there is nothing in there for me to choose from.I've tried a million other things, here are a few of the errors that I seem to get a lot.
[IM006][Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
[HYC00][Microsoft][ODBC Excel Driver] Optional feature not implemented
[HY001][Microsoft][ODBC Excel Driver] Too many fields defined.
Does anyone have any thoughts? Is there a reference I need to add or something?
I am running a ssis package from .net code.It's a simple package that imports a text file into a sql database.[code]...
View 10 RepliesI'm writing a .txt file which is loaded using the following code. When running a Debug I get a message on closing the .txt file saying 'This file has been modified outside the source editor. Do you want to reload it?' Is this juszt a nag screen for the editor, or will I get an error from the final compiled .exe program build?
[Code]...
I want to get two sets of information from a source file. Say user name and address to their profile. I so far I'm using two for next loops to get the information I want and save it into the text file. Works great. Problem: I would like to print to file first line of For Next output then append to that the first output of the second For Next loop. Then do the same for second out put until the end of each For Next loop is complete. [Code]
View 14 RepliesI am trying to extract inforamtion from a website, I was able to get to the point of extract HTML to TXT. not I want to parse from this line TOTAL 3723
View 1 RepliesI have "added an existing project" to my solution. This item has been used in several different solutions but I am running into an issue for the 1st time w/ it.
I have 2 applications:
X & Y
I copied the "existing project" from the X folder to the Y folder (so I would not be altering the same "existing project". Then I "added" the project from the new Y location. I also added reference to the DLL file in location Y. However when I debug from program Y it keeps running the code from location X. Everything that I know to look at looks correct. Any ideas on what is causing the issue and how to resolve it?
FYI, To prove the point I changed the folder name for testing in the X folder. When I then debug program Y i get this error:
Source file: C:VB_FIlesYY"ExistingLibrary""Existing".vb
Module: C:VB_FilesYYinRelease"ExistingLibrary".dll
Process: [4416] Y.vshost.exe
The source file is different from when the module was built. Would you like the debugger to use it anyway?
When I start the debugger,there is a message that contain the source file is different from when the module was built. would you like the debugger to use it anyway? how to solve that thing? and also, i can not use the breakpoint there is a sign like triangle and "!" and it says that"the breakpoint will not currently be hit. the source code is different from the original version."
View 7 Repliesi have a simple vb program which i have loaded a data surce access file with it. I have done this using the data scource tab/wizard and then dragged the table on to my form which automatically gives me the functions i need (e.g. next record, save record, add new etc..)This all works as expected and fine within the program but when I open up the access file after - it hasnt done anything to the database/table what so ever - i.e. no changes were applied to it. Im so baffled
View 4 Repliesi use the following code to connect to my mdb file
Public Class activity
'declare a new data set
Dim ds As New DataSet()
' declare a data cursor to point to the current row in the data base
[code]....
i want to connect to a data base that is in "c: empaaa.mdb" and i want to write that path in a text box and modify in the code...
What is the source for Creating a .txt file when debug
Quote:
Originally Posted by Example
Like when i click button1 it will create a .txt file on my destop or C:
I have an Access database and I want to view on a datagridview specific rows. For that I used the following :
CasesBindingSource.Filter =
"OfferDate Between #1/1/1997# And #12/31/1997#"
Cases is the table, OfferDate a field of the table wich is DateTime type.
When I use Between operator I get the following error :The expression contains unsupported operator 'Between'.
Is there a macro in the Visual Studio editor to remove all comments from a VB.NET source file?
View 2 RepliesI need to Download all the content i a HTML file using VB.NET is it possible?what all are the function can u gave me the code snippets??
View 1 RepliesIs there anyway i can call orderedFiles in my asp xml tags so that it displays the file associated with orderedFiles?
EDIT
Is it possible to replace the current filepath with a value in an xml document?
how can I remove a source file from a Visual Basic 2008 express project withtout deleting it??
I tried Build Action None and I get plenty of errors concerning .Dessigner file.
I am using a For Each Next type loop to read a records from a datatable and add records to a second table.Under certain circumstances, I add one or more records to the first table that I want to process.The problem is that the added record is not in the original datatable.The For Each...Next loop goes dutifully until the datatable records are processed, but the added record(s) do no get processed.How can I "refresh" the datatable and process the added records? [code]
View 6 Replies