Re: VB6 to VS.Net 2003 DLL change
- From: "Elmo Watson" <sputnik@xxxxxxxxxxxxxxxx>
- Date: Fri, 13 Jan 2006 22:37:50 -0600
I respect your opinion, however, in this case it's fairly large VB6
dll - - - there are approximately 100 lines that do this kind of thing - -
I just need to find out how to replace the existing code with working DotNet
code - - that will go a long way to getting this thing working - -
Yes, there will be more cleanup - - but, by far, the majority is merely the
changing of lines like this.
AND - I don't have the time to sit down and re-write someone else's DLL
myself - - this will definitely be the quickest solution.
If someone has the actual answer to this question, I would appreciate it
greatly.
"Norman Yuan" <NotReal@xxxxxxxxxxx> wrote in message
news:umTMgH8FGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
> This may not answer your question, but, since it is database application
> with ADO, it simply no point to convert it into .NET, if you still use ADO
> in .NET. In .NET app, you should use ADO.NET, which is so different from
> ADO, that you just cannot convert to it from an ADO app. You need to
> rewrite the code of data access part. It is waste of time to do the
> conversion, IMO.
>
> "David Wier" <dwier@xxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:O4DCUX7FGHA.3700@xxxxxxxxxxxxxxxxxxxxxxx
>> I'm trying to convert a VB6 DLL (that someone else wrote) - many lines
>> are parameters that need converting that have 'System.DBNull.Value' in
>> the original - - the report says this is an erroneous use of the
>> Null/Isnull . Here's the code:
>> If BillCust > 0 Then
>> Call colParams.Add(objDB.CreateADOParm("@BillCust",
>> ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput,
>> BillCust))
>> Else
>> 'Error Message --------> 'UPGRADE_WARNING: Use of Null/IsNull() detected.
>> Click for more:
>> 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1049"'
>> Call colParams.Add(objDB.CreateADOParm("@BillCust",
>> ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput,
>> System.DBNull.Value))
>> End If
>>
>> How can I change the 'Else' section so it will work in DotNet?
>>
>>
>
>
.
- References:
- VB6 to VS.Net 2003 DLL change
- From: David Wier
- Re: VB6 to VS.Net 2003 DLL change
- From: Norman Yuan
- VB6 to VS.Net 2003 DLL change
- Prev by Date: Newbie
- Next by Date: Re: [C#] Is there a way to prevent a Button to getting the focus?
- Previous by thread: Re: VB6 to VS.Net 2003 DLL change
- Next by thread: IsOffline WebBrowserControl
- Index(es):
Relevant Pages
|