473,473 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

need C# conversion to VB.NET VS2005

I've tried several online C# to VB.NET converters but none have produce
valid output.

C#
ckey.SetValue("Type", (int)ckey.GetValue("Type") | 0x100);

the converts show:
ckey.SetValue("Type", CType(ckey.GetValue("Type") | 0x100, Integer))

This not a correct conversion, can anyone give me the equivalent VB.NET code
for VS 2005?

thanks, Rob.
Feb 2 '06 #1
7 2794
ckey.SetValue("Type", CType(ckey.GetValue("Type")) | 0x100, Integer)

??
Feb 2 '06 #2
Sorry, brain fart... Try this:

ckey.SetValue("Type", CType(ckey.GetValue("Type"), Integer) | 0x100)
Feb 2 '06 #3
Yet another brain fart, I think you have to replace the "|" with "or" and
replace 0x100 with 256 (which is the decimal equivalent). Hopefully there
are not more ways I could mess up one line of code...
Feb 2 '06 #4
Our Instant VB C# to VB converter produces:
ckey.SetValue("Type", CInt(ckey.GetValue("Type")) Or &H100)

(btw, we have a free demo edition)
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter & VB to C++ converter
Instant J#: VB to J# converter

"Rob R. Ainscough" wrote:
I've tried several online C# to VB.NET converters but none have produce
valid output.

C#
ckey.SetValue("Type", (int)ckey.GetValue("Type") | 0x100);

the converts show:
ckey.SetValue("Type", CType(ckey.GetValue("Type") | 0x100, Integer))

This not a correct conversion, can anyone give me the equivalent VB.NET code
for VS 2005?

thanks, Rob.

Feb 2 '06 #5
ckey.SetValue("Type", CType(ckey.GetValue("Type"), Integer) Or &H100)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:ue****************@TK2MSFTNGP11.phx.gbl...
I've tried several online C# to VB.NET converters but none have produce
valid output.

C#
ckey.SetValue("Type", (int)ckey.GetValue("Type") | 0x100);

the converts show:
ckey.SetValue("Type", CType(ckey.GetValue("Type") | 0x100, Integer))

This not a correct conversion, can anyone give me the equivalent VB.NET
code for VS 2005?

thanks, Rob.

Feb 2 '06 #6
David,

thank you!

Rob.

"David Anton" <Da********@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
Our Instant VB C# to VB converter produces:
ckey.SetValue("Type", CInt(ckey.GetValue("Type")) Or &H100)

(btw, we have a free demo edition)
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter & VB to C++ converter
Instant J#: VB to J# converter

"Rob R. Ainscough" wrote:
I've tried several online C# to VB.NET converters but none have produce
valid output.

C#
ckey.SetValue("Type", (int)ckey.GetValue("Type") | 0x100);

the converts show:
ckey.SetValue("Type", CType(ckey.GetValue("Type") | 0x100, Integer))

This not a correct conversion, can anyone give me the equivalent VB.NET
code
for VS 2005?

thanks, Rob.

Feb 2 '06 #7
Now if you had an Instant VB6 to VB2005 converter . . . .

GalenS

"David Anton" <Da********@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
Our Instant VB C# to VB converter produces:
ckey.SetValue("Type", CInt(ckey.GetValue("Type")) Or &H100)

(btw, we have a free demo edition)
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter & VB to C++ converter
Instant J#: VB to J# converter

"Rob R. Ainscough" wrote:
I've tried several online C# to VB.NET converters but none have produce
valid output.

C#
ckey.SetValue("Type", (int)ckey.GetValue("Type") | 0x100);

the converts show:
ckey.SetValue("Type", CType(ckey.GetValue("Type") | 0x100, Integer))

This not a correct conversion, can anyone give me the equivalent VB.NET
code
for VS 2005?

thanks, Rob.

Feb 4 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael Tissington | last post by:
I'm trying to convert a project from VS2003 to VS2005 After conversion all of my TagPrefix are not recognized in the body. <%@ Register TagPrefix="Oaklodge" TagName="Curve"...
17
by: Samuel | last post by:
Hi All, I am in the process of converting a VS 2003 project to VS 2005 project (VB.NET Class Library). It gives the error in TypeOf and DirectCast statements. It was working...
2
by: Bob | last post by:
I've got an ASP.NET solution with one web project and 4 class libraries that was developed using VS2005 Enterprise Edition. When I open the solution in VS2005 Professional Edition, it starts the...
2
by: GW | last post by:
After the conversion and fixing some errs VS2005 threw, project ran OK. Opened xxx.vbproj file after the conversion to VS2005 from VS2003. Changed (usng wordpad) ../msbuild/2003 to 2005...
1
by: Tammam | last post by:
Hello All, I had a solution composed of managed/unmanaged C++ , C# projects. It builds with no problem in VS2003 but after converting the solution to VS2005 i get many linking errors such as...
1
by: MartinS | last post by:
Have upgraded to VS2005 Standard edition (from 2003), and the first task was to convert an existing web project, get it working and then start coding using some of the new functionality of ASP .NET...
0
by: =?Utf-8?B?RWFjaHVz?= | last post by:
I've made several attempts to upgrade an application from asp.net 1.1 to 2.0. I open the web site by selecting the vbproj file, by selecting the solution file, or by selecting the web application....
2
by: John | last post by:
Hi I have a vs2003 database app that use non-bound infragistics controls and all the plumbing is done in code. This works fine in vs2005. After importing to vs2005 via the built-in...
4
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am converting a VS2005 Solution to VS2008 Solution and all went well I checked the Solution file (sln) and Project file (csproj) into SVN - I checkout the solution from SVN and it want to ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.