Importing VB5 Projects Into VB2010?
Jan 7, 2010Is it possible to import an old visual basic 5 project into 2010?
View 3 RepliesIs it possible to import an old visual basic 5 project into 2010?
View 3 RepliesRemoving projects from VB2008 start page recent projects list. The above list is getting clogged. How do I remove items from this list?
View 3 Repliesfor example i have a.exe and b.exe ( the a.exe is an vbApp, and b.exe is an executable file ), now.. it is possible to include the b.exe into a.exe and then running it from a.exe, for example importing the b.exe into vbProject and then running it without extracting it.
View 1 RepliesI have a form that allows a user to import a spreadsheet. This spreadsheet is generally static when it comes to column headers, but now the users want to be able to include an optional column (called Notes). My code crashes when I try to read the column from the spreadsheet if it doesn't exist.
Dim objCommand As New OleDbCommand()
objCommand = ExcelConnection() 'function that opens spreadsheet and returns objCommand
Dim reader As OleDbDataReader
[code].....
I have created a web service in a virtual directory using VS 2008. I have tested the service by going to the .asmx page and everything is working fine. So I selected the "Add web reference" option under the solution and typed in the .asmx URL. It found the web service successfully and added the reference to the project. However, when I try to import the service namespace using the same name as the directory under the "App_WebReferences" folder, it doesn't recognize the name and gives me an error if I try to import it. Have I missed any steps in the process?
View 2 RepliesI am trying to write my first DLL and am struggling to get it working correctly and am receiving a variety of errors. For my Hello World DLL I was trying to follow this page [URL].. but as it was very old and referring to VB 6 I am now trying to use the instructions on this page: Essentially, what I have done is to follow all of the instructions on the second link, but then instead of calling it from C++ I call it fro my VB application (I have successfully managed to call DLLs from VB in the past). When I try to call the Add function (or any others) I get a BadImageFormatException error thrown saying "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" but I don't know what I am doing wrong. I have tried calling an alternative C++ function that is declared as a void and takes no arguements in order to completely avoid the problem of matching the data types but I get exactly the same error.
I gather that this is sometimes to do with target architectures, and have tried setting the C++ compiler to build it as both a Win32 DLL and as an x64 DLL, and each time changed the VB settings to match the outut type of the other but this doesn't seem to make any difference, and for some permutations even makes it worse with it saying that it can't find the entry point in the DLL that I'm calling.
I am completely new to this and am now at a loss for what to try and what could be going wrong,. The VB import is as follows:Private Declare Function Add Lib "DLL_Test.dll" (ByVal a As Double, ByVal b As Double) As Double Private Declare Sub HelloWorld Lib "DLL_Test.dll" ()
I inherited a DLL project developed in VB6; this project has to be integrated to a VB.NET GUI. At the moment, the project is integrated succesfully except for one detail that it is taking a lot of my time.
Every time that has to load a form from the COM DLL, the execution of the program loops and gives an OutofMemoryError -- I imagine the error is because the executing is looping by trying to load and reload the Form1 from the DLL. So, is it possible to import graphical controls and components along the DLL, such as Form1? or, do I need to separate them in order to import the DLL succesfully?
i am importing a csv file into my app. this is to let the users pull in info they have in excel.somehow, they have slanted apostrophes, and not tick marks. so when i open the file stream and do the import, it pulls in those characters as blank boxes (unknown char).
View 1 RepliesI am importing a csv to my datagridview (all works well)
CODE:
I now want to save the imported data to my bound dataset:-
Am I trying:
CODE:
But it wont save the data.
Ok, I've been fighting this for days and so far haven't found very much helpful information on the web. Apparently this isn't a very popular thing to do since there isn't much out there. I'm hoping someone here can help me out. I don't know very much about dll's or implementing classes in vb, so please correct me if my thinking is wrong.If it's relavent I'm using Visual Studio 2010.I'm working on a much larger project, so I've created a greatly simplified version to test and and ask questions about.Here's the situation:I've created a class in c++ that I now need to create an interface for in vb. As I said before I've created a much simpler class and compiled it as a dll. There are two functions in the dll:
[code]...
The setTestVar function simply sets the value of a member variable, and getTestVar returns the value of that variable. I load the setTestVar function from the dll like this:
[code]...
Then when I click a button, I call:setTestVar(9) This results in an "AccessViolationException was unhandled" error. "Attempted to read or write protected memory...."After thinking about it, I guess this would make sense if the constructor in the dll was never called (and thus the variable into which I'm trying to store data doesn't exist).So the question becomes, how do I call the constructor in the dll from vb such that I have some sort of handle or reference to that object when the call returns from the dll? Without a handle, I won't be able to access any of the member variables. Is this thinking close to being correct? Or is the problem something entirely different?So again, how do I call the constructor in the dll (from vb) and somehow have access (from vb) to the object that it creates?
Is this possible? I upgraded to VB Express 8 and have several programs that I would like to import into VB Express 8 from VBE 5. But everything I have tried so far has not worked.....This is the first time I have imported files from one computer to another. I have tried to save the file as a zip file and unzipping it in VB 8, but that didn't seem to work.
View 4 RepliesI am trying to import a CSV file to SQL Server 2005. The CSV file has several fields, but I am not sure of the best way to import them. This is what I have so far.
[Code]...
I'm trying to import the WinLicense SDK, but When I try and add it as a reference, it doesn't seem to work. It says it's not a valid COM reference. I was just wondering if any of you guys protect your programs with WinLicense, and how to protect my applications with it... I'm trying to use the APIs so I can use the HWID Protection.
View 2 RepliesI have some form/vb in another project that I want to import to a new one. There are three files with these extensions - .vb, resx, and designer.vb. Which do I copy and how exactly?
View 3 RepliesIn VB, when we adding a new references - in my case web references -, it simply type namespace followed by the class name to make a new object.For example:
Dim obj As NamespaceName.ClassName = New NamespaceName.ClassName
Then I apply this concept in C#. So my code will be:
NamespaceName.ClassName obj = new NamespaceName.ClassName
...and it doesn't work.Actually, is there any difference about Importing Namespace between those two?And also can you give me a little explanation about Project-Wide Default Namespace Imports in VB?
UPDATE:My point is why "In C#, When I've typed NamespaceName, the ClassName was not listed in the Intellisense?".However, it did well in VB, do I have to import something?Maybe, there is something to do with the term "Project-Wide Default Namespace Imports". (CMIIW)
I am having trouble importing mySQL to my project. When I use the syntax Imports MySql.Data.MySqlClient a warning shows up saying that "namespace or type specified in the (code) doesn' contain any public member or cannot be found"
View 3 RepliesI have a VB file that imports System.IO, but only uses it is a couple of places.My co-workers and I were wondering if there is a small performance boost if we just use System.IO explicitly were we need it (IE., System.IO.MemoryStream) instead of importing it.
View 2 RepliesI have a datagridview on my form with 7 columns and a variable number of rows. It's used to track stats on games (kills, deaths, assists, etc.) The way I ended up saving it was in a .xls file for the simplicity of being able to edit it in excel as well as my program. how to import the file back into the DataGridView though.
Here's the code I'm using the save the file:
VB.NET
Private Sub exportExcel(ByVal grdView As DataGridView, ByVal fileName As String, _
ByVal fileExtension As String, ByVal filePath As String)
' Choose the path, name, and extension for the Excel file
[Code]....
I am working on a Java project and I am having some difficulties with importing a .class file. Unfortunately I do not have access to the source code of the file?
View 3 RepliesI'm trying to write a small application that imports data in a column from a csv file into a table in access. I'm very new to programming, but this is what i've come up with so far. It runs, but it's not actually bringing the data over to my database.
Here is the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim dbPath As String
dbPath = "f:db1.mdb"
[code].....
I'm importing a CSV without headers into a DataGridView using:
If ofd.ShowDialog(Me) = DialogResult.OK Then
Dim fi As New FileInfo(ofd.FileName)
Dim strDirectory As String = fi.Directory.FullName
[Code]....
I want to create a button that will open up a form that will be used to browse a filesystem and select an excel sheet to import into access. I'm a noob at .Net and I needsome help on how to do this.
View 4 RepliesI have 2 projects. The first project has a form called Form1 in it and I want to import this form into Project 2 and have it fully working without any problems.
View 2 RepliesI am using VB 2008 for this little first game I am trying to make. Currently a grid of rectangles is being generated when a button is pressed and when you click on the grid I am attempting to import the relevant image into the selected rectangle. Looking through the available options I can't find anything relevant to import the image onto that selected rectangle. Is there another method of importing onto a code generated grid? my current relevant code is: brackets, its my first time here.)
If Form1.MousePosition.X < rect.Location.X + rect.Width And Form1.MousePosition.X > rect.Location.X And Form1.MousePosition.Y < rect.Location.Y + rect.Height And Form1.MousePosition.Y > rect.Location.Y Then
[code].....
This is in vb 2005, and I would like to be able to click a button (i.e. export to excel, import from excel) and do this.If you need any more information then just let me know.
1)How do you export the data that is displayed in a datagrid to Excel.
2)How do you import data from an excel file, and fill the datagrid with that information.
I'm looking to pull data off of a webpage that gives the data in comma delimited values.
I want to pull that data off, and I'm sure I'll have to store it in an array.
How do I open a CSV file in VB? More specifically, I'm able to make this work on my local computer but when I put the site up on the web and copy the CSV to my site, it doesn't work.
I feel like it has to do with the fact that it can't find the file when it's on the web, like I have the Data Source wrong. Here's my
[Code]...
I am trying to import some data from an excel spreadsheet, using VB.net.my steps are:first the user uploads the file to the server then i want to read the file from the server to then populate a gridview.[code]how can i set the OleDb connection to get the source file from the server instead?[code]i added: Server.MapPath("~/") & filepath and now it works. however, now i'm getting the error:The Microsoft Jet database engine could not find the object 'NSTS'. Make sure the object exists and that you spell its name and the path name correctly.
View 3 RepliesI am importing data from Excel to a datagrid in VB, I can get the data on there no problems and also save this back to a SQL database without any problems.
However I have a new spreadsheet which has the same product listed again and again with the same description but different totals, what I want to do is to upload this to the datagrid just once for each description, with a grand total of all the seperate totals
[Code]....
The following is the complete coding for an application which I wrote to move data from sql 2000 to MS Access 2003. The coding looks fine to me but I am still getting an error.
Imports System.Data.SqlClient
Imports System.Data.OleDb
Public Class Form1
Inherits System.Windows.Forms.Form
[CODE]...