473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Simply C# To VB.net?

This may sound stupid, but how do u convert this Enum to VB.net ? what values are those? i dont think put them as string will
work...

public enum KnownEXIFIDCodes
{
JpegIFOffset = 0x0201,
JpegIFByteCount =0x0202,
YCbCrSubSampling =0x0212 ,
}

Thanks... ?
Nov 21 '05 #1
3 4111
Those are hexadecimal representations of numbers. You can define a normal
enum in VB and assign it values two ways:
1. Convert the hex to decimal and assign the decimal values
2. Assign hex values using &H in VB instead of 0x0

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Smoke" wrote:
This may sound stupid, but how do u convert this Enum to VB.net ? what values are those? i dont think put them as string will
work...

public enum KnownEXIFIDCodes
{
JpegIFOffset = 0x0201,
JpegIFByteCount =0x0202,
YCbCrSubSampling =0x0212 ,
}

Thanks... ?

Nov 21 '05 #2
"Smoke" <sm***@netgate.com.uy> schrieb:
This may sound stupid, but how do u convert this Enum to VB.net ? what
values are those? i dont think put them as string will
work...

public enum KnownEXIFIDCodes
{
JpegIFOffset = 0x0201,
JpegIFByteCount =0x0202,
YCbCrSubSampling =0x0212 ,
}


\\\
Public Enum KnownExifIDCodes
JpegIFOffset = &H201
JpegIFByteCount = &H202
YCbCrSubSampling = &H212
End Enum
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
This seems to be pretty good, but i may look really stup**d asking this...
I did replaced all 0x0* for &H* but what does i do with those for example?

UnknownCode = "0x0"
Copyright = "0x8298"
ExifVersion = "0x9000"
Flash = "0x9209"
CFAPattern = "0xa302"
InteroperabilityIndex = "0x01"
InteroperabilityVersion = "0x02"

Those lost my idea of just replace 0x0, or i should replace 0x for &H only and 0x0201 is equal to &H0201 ?

Thanks....

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:us**************@TK2MSFTNGP14.phx.gbl...
"Smoke" <sm***@netgate.com.uy> schrieb:
This may sound stupid, but how do u convert this Enum to VB.net ? what
values are those? i dont think put them as string will
work...

public enum KnownEXIFIDCodes
{
JpegIFOffset = 0x0201,
JpegIFByteCount =0x0202,
YCbCrSubSampling =0x0212 ,
}


\\\
Public Enum KnownExifIDCodes
JpegIFOffset = &H201
JpegIFByteCount = &H202
YCbCrSubSampling = &H212
End Enum
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

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

Similar topics

5
by: eagletender | last post by:
I am simply trying to pass a variable to another page. I know my second page can do Request("str") to retrieve that variable, but how do I pass it in the first place? I tried...
0
by: B. Fongo | last post by:
Hi! I know older versions of MySQL do not support foreign keys. Find out weather your version do. If not, you may have to do without the foreign keys in your definitions. Best regards Babs ...
2
by: prodigyofqnz1 | last post by:
Hi, I'm trying to do basically what my subject says, create a console program to simply enter text into a blank notepad session. I'm trying to do a windows enumeration search and send the string...
0
by: baumann | last post by:
hi all, Nontype template parameters are declared much like variables, but they cannot have nontype specifiers like static, mutable, and so forth. They can have const and volatile qualifiers,...
17
by: Barret Bonden | last post by:
As an old programmer just now looking at VB.net I have a question: How does one simply open one form from another ? I don't mean how does one create a new instance of that form , but rather how...
5
by: Peter Chant | last post by:
Any thoughts in the newsgroup? Over Christmas I produced, using PHP and MySQL, a database and front end to record my familys family tree with a short biography and linked photos and locations if...
2
by: spiritedSmile | last post by:
Hi, I would like to write ASP code to create a custom report for a simply accounting database. The databse is saved with a .sdb extension. I am able to access the data via access or excel so I...
2
by: loveroflife | last post by:
I bought simply accounting pro for my business and ordered the checks and invoices.But when I print the checks our company name print over our the spot where our companyn name is already on the...
3
by: aj | last post by:
DB2 LUW 8.2 FP14 Red Hat AS 2.1 Can I use SYSPROC.ALTOBJ() to simply rename a table that has complex dependencies (RI, functions, triggers, etc...)? Seems like all the logic is in there to...
0
by: tchaps | last post by:
Hi, I am trying to learn how to use Crystal Reports to create a custom invoice for Simply Accounting. I am using Simply accounting 2007 nd crystal reports 8 I am unsure how to properly use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have 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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.