Upgrading C Code To .NET - Unioned Structures?
Feb 3, 2011
I am trying to upgrade the btrieve code written by Jim Kyle in the early 90's to VB.NET and am running into a problem with unioned structures. The old C code is as follows:
typedef struct {
union {
struct {
PGPTR PgSeq; // 00 - page number
[code]....
One issue I am running into is that VB.NET doesnt like two struct variables with the same name (Usage). What am I missing to group the overlapping fields with a unique struct name as is done in the C example (v5 and v6)?
View 2 Replies
ADVERTISEMENT
Apr 14, 2010
We have an old large program generated using vb6. This has been running for years and it works great.We would like to migrate/ upgrade to vb 2008, is there any fast way to have it running under vb 2008?I loaded the project in vb 2008, it did load but generate a lot of errors and warnings. how can i migrate the vb6 codeto vb 2008 easily?
[code]....
View 7 Replies
Dec 17, 2009
I'm trying to upgrade sum vb 6 code to vb.net 2008 but I'm getting an error.'AddressOf' expression cannot be converted to 'Integer' because 'Integer' is not a delegate type.How can I fix this.
Public Declare Function EnumChildWindows Lib "user32" (ByVal hWndParent As Integer, ByVal lpEnumFunc As Integer, ByVal lParam As Integer) As Integer
[Code]...
View 2 Replies
Jan 20, 2009
I have a structure called 'Scheme' and in my program I want (ideally) an ArrayList of 'Schemes' (so i can add, remove schemes etc.). However, within the 'Scheme' structure, I want to have an ArrayList of 'Item''Item' is another structure. Are there any solutions out there for iterating through these arrays quite easily?
How can I easily add multiple Items to a Scheme and mutliple Schemes to my Scheme array. Code is below. When I try to add Items to a Scheme, I get the 'Object not set to a reference of an object, try the 'New' keyword', but you cannot declare 'New' keywork within a structure.
[Code]...
View 4 Replies
Jun 2, 2010
I read in the Book "Mastering Microsoft Visual Basic 2008" about "User-Defined data types".The example given is creating a Structure as follows.I wanted to check that so I wrote all the code given; I used a TextBox and a Button for this.(I didn't include the "CheckDate" here; that is in the book)
Structure CheckRecord
Dim CheckNumber As Integer
[code]....
The problem is this does work.What I get is "00000". and I found out that the "Checks(4)" Array does hold any value ie: on keeping the cursor over that, it shows "CheckAmount 0.0, CheckNumber 0 , CheckPaidTo Nothing ".
View 1 Replies
Jul 20, 2009
I'm attempting to create a list of structures that contains a list of structures. I can't seem to figure out how to properly allocate the object for the inner list of structures. I expect the outer list of structures to have a couple thousand entries and the inner list of structures to be fairly small at 2 to 10. Both lists will grow over time but the number of elements within the inner list will be constant for an instance of the outer list. Meaning, if an instance of the outer list has 2000 entries each of those will have the same number of elements on the inner list, say 4 entries.
Here is a simplified code fragment. This fragment makes no attempt to create the instance of the inner list "StructBlist" since I can't figure out where to put it. Tried "New List(Of StructB)" in the declaration as well as "Alist(0).StructBlist = New List(Of StructB)" but neither works.
Public Class Form1
Structure StructA
Dim FieldA1 As Integer
[Code]....
View 5 Replies
Apr 14, 2011
I have been tasked with upgrading a large web application from .net 1.1 to 3.5. I have converted it using Visual Studio 2008, and it compiles ok. Should I be expecting everything to work correctly straight off? And if not can anyone suggest what are the major pitfalls I should be looking out for. Should I be taking the time to write and carry out a full test for the entire system, or is that overkill?
View 2 Replies
May 26, 2011
We are upgrading a VB6 project to VB.NET. I ran it though an upgrade utility (Artinsoft). I guess the question is where is the GUI. In VB6, there is a form designe and Object mode. That does not exist in vb.net correct???
It looks like during the upgrade the entire GUI, the forms, the buttons, they are all gone. None of that was upgraded. So does the entire GUI have to be recreated in asp.net or something?
View 3 Replies
Feb 3, 2010
this is a discussion on what is the best way to add License's to your Program and the Best way to obtain/buy one using Paypal
View 1 Replies
Nov 4, 2009
I am currently working on upgrading an old visual basic six program into .Net. I seem to be getting this error after the conversion on one of arrays. "Value of type '2-dimensional array of String' cannot be converted to '1-dimensional array of String' because the array types have different numbers of dimensions."
[Code]...
View 2 Replies
Jun 1, 2010
I am upgrading from vb6 to vb.net.I used to list my query results in datagrid in my previous applications.What can be more visually attractive control in replacement of datagrid?
View 1 Replies
Feb 17, 2010
My work has a VB 5.0 file they want modified or upgraded. The only tool I currently have at my disposal is VS 2005.
View 16 Replies
Jun 19, 2009
I go about upgrading the Telerik ASP.NET controls? I am currently using the Q3 2008 release and I just recently bought the Q1 2009 SP1 release. How do I upgrade my projects? Do I need to uninstall the old one and install the new one or just install the new one? Also how do my projects get upgraded? Also, what about my projects that I have "live"? Do I just need to upload the new DLLs and and change my web.config?
View 4 Replies
Oct 2, 2011
I had been programming in Visual Basic 6 as an Intermediate programmer. I realized that it is far too old and is comparatively less powerful. So, I've upgraded to VB.NET. I'm using Visual Studio 2010. My query is before beginning programming with it, what things should I consider over VB6?
View 1 Replies
May 26, 2010
I have been programming in vb6 for few time ago and i used open SQL Server connection and command objects to make database transactions. I have been searching for similar approaches in vb.net too but not finding any starting point. How can we work similarly in vb.net application?
View 2 Replies
Sep 10, 2010
when upgrading from VS2008 to VS2010 or what problems & issues you ran into? Just trying to make the switch as painless as possible.
View 6 Replies
Dec 15, 2009
a while ago I developed an interface that shows raster maps under VB 6.0 (see, for example, slide 5 "Forest Stand Development" on [URL]
I would like to rewrite the code in VB 2008 (or download open source code) to transfer everything to VB 2008. But rather than just putting a picture control on a form as I did before under VB6, I would like to learn and adopt some new technology while continuing to use classic Windows form coding. WPF technology (see [URL] is way over my head.
View 1 Replies
May 28, 2009
I recently upgraded an application that creates several report files, that are read by an older VB6 application that i cannot upgrade. I've gotten everything working (faster than i expected) except the new FilePut. I'm saving the ubound of an array, which is a UDT, Then saving the array itself(which again, is a UDT)No matter what I do, the file is about 7 b larger, and doesnt want to read in at all in VB6. For example, I put an 32 bit integer into the file, say 4000, VB6 reads it as 3948395 or so, it seems its padding the file at the beginning or something.
And Yes, i've tried microsofts ArrayIsDynamic function, but it seems to have made no difference at all.
View 1 Replies
Mar 10, 2012
I have upgraded a solution with several projects inside from VS2005 to VS2010, and because of a dependency issue I updated all projects to target .NET Framework 4.0. One of the VB projects now doesn't load two of its forms. I got an error:
[Code].....
Another form loads perfectly. The DependentVBProject builds fine, and is set as a dependency for the startup project.
Before upgrading to .NET Framework 4.0, this project loaded fine, but something else that had it as a dependency did not build (because of other 4.0 dependency).
View 1 Replies
Jun 19, 2010
I have a piece of code like...
If FRM_LOADED(lngID)
Then
FRM_X(lngID).WindowState = FormWindowState.Normal
[Code]......
and in VS 2008 the form (FRM_X ) loaded and invoked the Load method. After upgrading to VS 2010 the same code executes and displays the form but the Load method isn;t executed.
View 3 Replies
Aug 19, 2009
this is my first try with .net 08 express. i have up graded my project from ((vb6 + ado) & access03)to .net express 08 every thing is almost fine except that the functions i defined with in the standard modules are
becoming inaccessible to the program. there are 4 modules & more than 25 functions & other constants , sub,public variables are defined
View 3 Replies
Mar 2, 2011
We recently upgraded VS 2005 to VS2010 and converted an application seemingly without any problems. But when deployed to the customer they are getting intermittent errors at seemingly random places in the program which force the application to close and AccessViolationExceptions being logged to the Application Event Log.
The customer's site is a multi user environment with the application hosted on a server and users running the app via RDP. We get two errors in the event log:
Application: ContainerDepotSystem.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
[Code]...
View 12 Replies
May 20, 2010
I have a vb.net app that is installed on server 2008 and registered as a remote app with approximately 70 users accessing it. There is an issue that when I put a new version of the app on the server, every user must remote desktop in and run setup.exe before the app will update to the newest version. If they try to run it without doing this step first, the app just runs the previously installed version under their login.
View 2 Replies
Dec 21, 2011
I am working on upgrading an old Access 2000 database to VB .NET (2010). There is one form that I am having trouble figuring out how to build so that it works similarly to the Access form. In Access, there is a header, detail and footer for this form. The objects in the detail section only need to be created once and Access will "copy" them for each record in the database and fill in the appropriate information (the form objects include buttons, textboxes, comboboxes, etc.).
How can I do this in VB .NET? Each different area that is chosen will have a different number of sections. I've thought about using a GroupBox, but I'm not sure how to make that work.
View 2 Replies
Nov 20, 2009
I am trying to upgrade a project that was originally designed in Vb6 to Visual Studio 2010 beta. In my application, I communicate with a device that has embedded code through a serial port. My Vb6 project states the following and works: SerialPort.Output = Chr(&HAD) My new code in Visual Studio states:
[Code]....
I am using the MSComm controll. I have duplicated all the settings from the older program.
View 3 Replies
Dec 26, 2010
I've upgraded to VS2010 version 10.0.30319.1 RTMRel; when upgrading my VS2008 project, all is well and appears correct until I run the code. Then I get the following error when I run a report that uses an XSD file for the schema"Inconvertible type mismatch between SourceColumn 'TemplateName' of Byte[] and the DataColumn 'TemplateName' of String.".When I look in the original XSD file and in the new XSD file, one of my fields has been converted from a string to a byte and I have no idea why.
View 2 Replies
Jul 24, 2009
I am in process of upgrading to Visual Studio 2008 from 2003. Most of the upgrade is easy except this one issue:When application is trying to Decrypt encrypted data from database, it is throwing following error. This code works fine with Visual Studio 2003.[code]
View 3 Replies
Jan 26, 2011
I want to upgrade and re-write a VB6 program in VB.NET I used VB6 MAPI MAPISession & MAPIMessages to read and view email messages into a Data Grid in the VB6 program I want to be able to load and view the email messages into a DataGrid in VB.NET using Visual Studio
Not at all sure of what I should be searching for or what replaces the VB6 MAPI method in the VB NET code
I have tried searching for sample code and read many forums, but still not on the right track
View 1 Replies
Nov 20, 2009
I am trying to upgrade a project that was originally designed in Vb6. I am trying to bring it forward to Visual Studio 2010 beta. One problem that I am having is that the testbox.locked property is no longer supported. What would be an appropriate property to use in this case?
View 2 Replies
Nov 12, 2010
After upgrading a db built in Access 2003 to Access 2007, the following code produces an error at FirstFind: Method or data member not found.
Here is the entire sub.
Sub List7_AfterUpdate()
Dim rs As Recordset
Dim Who_Name As String
[Code].....
View 1 Replies