Migrate Delphi 2007 Component To .NET?

Jul 12, 2010

I have generated a component in Delphi 2007 Code Gear and I need to migrate it to .NET to be used by VB.NET platform.I generated an ActiveX dll but I have been told that only the declaration of the class is visible in .NET.Actually the component I have generated is inherited by another component of which I have only the .dcu files. My new component is exactly similar as the parent one except from that I have overridden the constructor create.I wonder why the .NET, although it accepted the component, it did not provide the inherited properties, methods etc.

View 1 Replies


ADVERTISEMENT

Clean Elegant Solution To Form-class Level Component Collection Initializing Before Initialize Component?

Feb 3, 2011

I am converting an old Vb6 solution to .net 2.0 in vs2010. I've been working in C# for about 3 years now and .net for 5. I don't recall having this problem in C#, but if I want initialize a readonly collection of DerivedControlFoo Is there a clean way to do it besides creating a sub to do it all off somewhere else? I'd love to be able to do it at the class level at the declaration for readability and simplicity.

View 1 Replies

Create A DLL Component For Database Operation And Use Created Component In Another Project

Mar 1, 2010

Create a DLL component for database operation and use created component in another project. Required methods, events and properties

a. Connect
b. Add
c. Delete
d. Save
e. Record navigation (first, next, previous, last)
f. Properties for all database fields
g. Events for validation of database fields.

View 1 Replies

Using Delphi 7 To Try To Use A .DLL

Jan 25, 2010

I am using Delphi 7 to try to use a .DLL created by VB.net. When I run TDUMP.EXE on the .DLL, it reports no exported data available. The VB.Net .DLL uses "RaiseEvent" to return data.[code]

View 1 Replies

C# - Change A Component Name In A Component Designer In WinForms .Net

Jan 8, 2010

I've created a component whose name I'd like to be able to change while editing in the component tray. I've added a Designer action for a name property, but now I'm stuck.

Looking at the property grid, I can see that the name property is parenthesised, indicating that it's not a regular property.

View 1 Replies

C# :: Delphi To .NET Converter?

Sep 4, 2010

.NET converter (either C# or VB.NET)? I've inherited a bunch of Delphi code, never seen Pascal before and rather than learn it, I'd rather just try to use an automated converter, if available, and clean up the code after that. Can't seem to find this kind of tool anyway I search

View 3 Replies

Exporting From Access 2007 To Excel 2007 And Creating A Pivot Table With Graph Using VB 2008?

Jan 11, 2011

I have built an Access 2007 database with some data stored in it. I have managed to export data using VB2008 from that database to Excel 2007 and have it automatically draw charts based on this data and a query in the Visual Basic Code. One of the results looks like this:

View 3 Replies

Migrate From C# To VB?

Mar 7, 2009

I am going to be taking up a new job as a VB.net developer. I have worked with C# for about 3years. I did mention to the interviewer that I haven't worked with VB.net, but he seemed to think that its easy to migrate from C# to Vb.net.

how I can prepare myself for this job? Any good books or websites on this area? How different is vb.net from C#?

View 3 Replies

Migrate From VB 6.0?

Feb 2, 2010

I am thinking of migrating to VB 2008 from VB 6.0. What are the things to expect from VB 2008. Is still the same?

Im still Looking for a trial version of VB 2008.

View 13 Replies

Migrate VB 6.0 COM+ To .Net?

Aug 22, 2011

I have been using COM+ components(using VB 6.0) in my existing web application developed using Asp/sql. I'm basically using COM+ to get the benefit of it's inbuilt Transaction Management feature which is useful when you are performing some set of actions across different databases simultaneously.Now I want to migrate my existing site to the .Net Framework.

View 1 Replies

Migrate VB To Net?

Jun 14, 2010

I having the project in Vb i want to migrate that project in the vb.net.

View 4 Replies

Vb 6 Migrate To .Net?

Dec 29, 2006

I Have installed Visual Studio 2005 ( 90-days trail), I want to use Visual Basic Upgrade wizard an error will appear on step 5 the error is :

vbu.exe has encountered a problem and needs to close

more detialed info is :

AppName: vbu.exe AppVer: 8.0.50727.1 ModName: msvcr80.dll
ModVer: 8.0.50727.163 Offset: 0001c1cd

how i can migrate my vb6 to vb.net

View 2 Replies

Calling A Function From A Delphi DLL In .NET?

Sep 27, 2011

I've designed a Windows Service in Visual Basic 2005 that needs to call some functions from a DLL written in Delphi 5. If I try to add this DLL as a reference, I get this error:

"A reference to 'C:ProjectsServiceProMDPUpdateServiceMessageStubApplicationSPHost.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component."

I assume that it is just not possible to add this DLL as a reference to my VB2005 project, since the DLL was written in an old version of Delphi, correct? This isn't a big deal, as I can just use the DllImport function from System.Runtime.InteropServices, but if it is possible, adding it as a reference would be preferred.

My other question is, how would you be able to call a function from the DLL using DllImport, if the function you are trying to call takes a Delphi record data type as a parameter (if this is possible)? If possible, would I need to pass each field in the record separately or would I be able to define a structure in my VB app that mirrors the record definition in the Delphi DLL and pass that? Or, would it be best if I just created another function in the Delphi DLL that took various string/integer/boolean/etc. parameters that I could call from VB that would then call the original function in Delphi? I tried searching the internet for this specific question, but I couldn't find anything that looked useful.

[Code]...

View 1 Replies

Calling Delphi DLL With 'Type'

Jun 10, 2010

I've gotten a DLL from a supplier. Most functions I can call just fine, but some crash (System.ExecutionEngineException, doesn't even do with a try-catch...). The thing is that the ones that work are called with simply types, and the ones that crash have a type/class/structure in it.The documentation states how to call with "Visual Basic" without stating version. Here's how it looks..[code]I did figure out to use "Integer" in stead of "Long" and the strings needed some work but are fine now.Now... The "Type" doesn't exist in VB.NET so what should I do. Tried a class but that didn't work.I can call the DLL with "bad" data and get a good reply, eg "this and that is wrong with the input", but when I set that straight it crashes. I suspect that it's when it starts to write in the memory allocated by me and that does not match what the DLL expect.

BTW when I look at the class I made, I can see that - at least VS - lists the members in an alfabetical order. Is that how it's arranged in memory and could that be the problem if the order is different from the one expected by the DLL. I would epect that the total size was the same irrespective of order, so the problem would arise when I try to read the data and I would get junk.

View 2 Replies

Convert A Delphi Application?

Nov 10, 2009

I get to convert a Delphi application to VB.Net.My last project i had to convert a Java app to VB.Net.Anyway I have most of the application converted however there are a few items that i have been unable to find the .Net equivalent. Most are from the Delphi. Sysutils class.

TSearchRec
FindFirst/FindNext/FindClose
faAnyfile[code].....

View 5 Replies

Converting .Net To Delphi (API Stuff)?

May 8, 2011

Dim ThisModule As IntPtr
Dim Proc As Process() = Process.GetProcessesByName("Sol")
For i = 0 To Proc(0).Modules.Count - 1

[code]....

I have made this code, and works perfectly, but now... i want to make it in Delphi, the problem is... i have not the enough knowledge for make it, and... in google, i haven't found the information i need.

View 2 Replies

Delphi String Marshaling In .NET?

Jan 24, 2012

I've got some functions I need to call that are in some DLL files that have been written in Delphi 5 in a VB.NET 2005 application. I'm able to use the DllImport function to access the functions just fine; however, I'm having an issue with the Delphi string data type and passing it to and from the .NET application.

[Code]...

It takes two string parameters and one double. I can call this function from VB.NET just fine, but it will error as soon as it tries to use one of the string variables (so in this case, when it passes them to another function) and I've found that the string values in Delphi are junk when they've been passed to .NET. I'm guessing that the string objects behave and/or are encoded differently between .NET & Delphi 5, and that I have to apply some sort of Marshaling to the function parameters in .NET, but I've tried all of the different types of marshaling and nothing has worked. Unfortunately, I haven't been able to find anything about this issue on the internet.

Does anyone know how I can call this Delphi function from .NET and have it pass the string values in a manner so that they won't be corrupted when stored in Delphi?

View 2 Replies

Transfer Interfaces From Delphi Dll?

Apr 22, 2011

I have a Delphi written DLL that exposes some interfaces to a vb.net application.
The interfaces inherit from IUnknown (but this could be changed if required), simplified example:

IWindow = interface(IUnknown)
['{E9A11D0B-8A05-4CBA-83FA-C5CC6818DF6E}']
function GetCaption(var Caption: PChar): HRESULT; stdcall;
end;

[Code]....

Now I want to transfer a collection of IWindow to vb.net, and in the vb.net application I want to be able to loop through it with a for in loop.

I read that it's possible using IEnumerable/IEnumerator but I don't quite understand how to implement them. Are there any good tutorials about this, specifically showing the declarations on both side? Example code would be great.

Please note that I prefer not create a com dll that should be registered and imported. Currently I export a function that enabled me to obtain an interface.

View 1 Replies

Migrate Backwards From ASP 4.0 To 3.5

May 25, 2011

I have a simple application that I have to migrate backwards from ASP VB.NET 4.0 to 3.5 because of client limitations.

View 2 Replies

Migrate C++ To C# / Program?

Oct 11, 2010

How to do the following in either C# and VB.net.

In C++, in my header file I do the following[code]...

I tried the same thing in C# but it got error. How could I do the same thing in C# and VB.Net?

View 4 Replies

Communicating Via RS232 - Dll / Delphi Win32 Exe?

Sep 23, 2011

I have a Delphi program that communicates with a vb.net dll that I created. The vb.net dll communicates with a Fluke scope meter via an RS232 connection. I have created a program that communicates correctly via RS232, giving me the anticipated value. Though, when I package this up as a dll and access the dll from my Delphi program I always receive a value of "1", rather than the value I was expecting (most cases a value in and around 240).I know that my delphi program is definitely communicating correctly with the dll and that my dll is definitely communicating with the scope meter

Here is my vb.net code:
Public Interface IFlukeComm
Function GetReading(ByVal Command As String, ByVal PortNum As Integer) As String

[code].....

View 1 Replies

Convert Delphi's System.Copy To .net?

Jan 3, 2012

This is the Delphi code I'm trying to convert to .net:

s1 := Copy ( s1 , 1,x - 1) + Copy(s1, x + 1,Length(s1));

I tried:

s1 = s1.Substring(x - 1, 1) + s1.Substring(s1.Length, x + 1)

But I get error's when the index is out of range. in Delphi it works fine.

Added one line to convert..
s2 := s2 + chr(3);

View 1 Replies

Convert Old Delphi Code To VB 2010

Apr 15, 2012

I have an old program from 2002, which was coded in Delphi 7. Now i would like to rewrite the whole program, and expand in Visual Basic. how to convert my old code to VB2010? The code is very simple. I fill a database with Comboboxes and TextBoxes .Text. [Code]

View 2 Replies

Delphi To VB: Define Data Types?

Aug 11, 2011

in Delphi I have:

type osVer = (
osVerUnknown,
osVerWin95,

[code]....

I need to translate to VB...

View 3 Replies

Equivalent Of Delphi's Application.processmessages

May 31, 2009

In Delphi when we needed to allow the system to finish painting an object or something like that we could add a processmessages that would then let the system finish what it was doing before going on with the code.This was always handy when we wanted to show a message like "Please wait"before the start of a lengthy process.So then. What is the equivalent way of doing this in VB.

View 1 Replies

How To Migrate From XslTransform To XslCompiledTransform

Mar 14, 2010

I have the following code that I need to migrate from VS 2003 (.Net 1.1) to VS 2008 (.Net 2+)but I get compilation error System.Xml.Xsl.Xsl Transform' is obsolete: This class has been deprecated.I probably need to use System.Xml.Xsl.XslCompiledTransform instead.but I do not find the matching Load() and Transform() overload versions that I can use with all the parameters of my original code.in MSDN [How to: Migrate Your XslTransform Code] I only found some simpler cases.url...but in my code I see some remarks that hints that the added parameters were used to avoid exceptions, so I prefer to use these parameters.[code]

View 1 Replies

Migrate A VB6 ActiveX Control To .net?

Jul 9, 2009

I have a legacy VB6 ActiveX control used in IE to provide control of a parallel-port device from a browser application. I wrote this thing about five years ago; It's a pretty simple control, and it doesn't require a lot of maintenance. However, I've noticed that running the VB6 tools is becoming more and more painful over time, so I'm looking at the possibility of migrating this code to VB.net 2008.This thing is super-simple. It implements IObjectSafety and exposes a single public method, which we call using Javascript. The control has no UI other than a single box with a caption that displays its name and version number-- useful for troubleshooting deployment issues.

How would I create the equivalent in .net? Am I creating an applet? Or a .net Assembly? Any gotchas to look for as I try to make this transition?(I should make it clear here that I'm not either a VB6 programmer or a .net developer-- I've dabbled in this stuff but it isn't my area of expertise, so go easy on me).

View 1 Replies

Migrate ASP.Net Website To Azure

Apr 21, 2011

I have an ASP.NET in VB code base that if I open in Visual Studio as an existing website works and tests just fine. I have followed many tutorials for porting this over to Azure: -Tried create new Azure project add a webrole and drag and drop project files into the new webrole, but I get about 300 reference/missing stuff/etc errors -I have also tried creating an azure project under the website solution but the option to add the website to the webrole by clicking "web role project in solution" is disabled/grayed out I have been able to make the configuration files and compile through the command line but this does not work with visual studio so I am unable to test before deploying into staging

View 1 Replies

VS 2008 Migrate To VS 2005

Jul 30, 2009

is there a quick way to migrate a .Net 3.5 App written with VS 2008 back to VS 2005?

I'm really fed up with VS 2008 freezing every time I resize a Table.

View 7 Replies

VS 2010 - Advantages Of Migrate From VB 6 To .NET

Jan 10, 2012

I have some questions: 1) What's the learning curve for someone with good background in VB6? 2) what are the main advantages of VB.Net compared to VB6 and what will I be missing from VB6? 3) With VB.NET 2010 "ultimate" edition is it possible to make stand alone apps or they will be depending on net anyway even for the EXEs?

View 12 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved