473,387 Members | 1,504 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,387 software developers and data experts.

Simply C# To VB.net Part 2....

(Sorry, i repost here coz i got no answer)

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 #1
3 1121
"Smoke" <sm***@netgate.com.uy> schrieb:
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 ?


'&H0201' = '&H201'. You can skip the preceeding zeros.

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

Nov 21 '05 #2
"Smoke" <sm***@netgate.com.uy> schrieb
(Sorry, i repost here coz i got no answer)

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....

Replace 0x by &H
Armin
Nov 21 '05 #3
Hi,
for automatic translation I'm using Instant VB
(the trial can be used with limitations),
other tools are Reflector and SharpDevelop.
There might be other good tools I don't know.
Nov 21 '05 #4

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

Similar topics

12
by: Jim Cochrane | last post by:
I just google-searched this group and could not find any references to this. I'm trying to figure out how to specify a three-part header with html. For example, left part ...
2
by: JumpinJeff | last post by:
I am about to revamp the most referenced table in my whole database and am unsure the best way to approch it. The table's primary key is also used as a part number for all the items in the table. ...
3
by: ChadDiesel | last post by:
Hello everyone. I need some advice on table structure for a new project I've been given. One of our customers sends us an Excel spreadsheet each week containing their order. Currently, someone...
7
by: Shannan Casteel via AccessMonster.com | last post by:
I have a form for entering part numbers along with the associated quantity for each part. There are 25 Part fields and 25 associated Quantity fields. If I go to record 1 and enter part number 1234...
2
by: maxw_cc | last post by:
Hi to all of you, I was wondering what the Semantics part in C standard is really for? What should be on the constraints part and what should be on the semantics part? Is the implementation...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
1
by: tbrogdon | last post by:
I am new to this group and new to DBs. I am building a small DB for my work. We create sheetmetal parts. Each part has a part number (e.g., 1054471 or 50TG508506 - both formats are typical for a...
5
by: hirsh.dan | last post by:
Hello to all, i have the following functions: string File::readLine(){ char ch; string str; ch = read(); while(ch != LF && ch != CR && ch != -1){ str.append(1,ch); ch = read(); }
25
by: dylan m. austin | last post by:
Hello list. This is my first message and it's nothing needful but rather playful. I'd just like to hear some thoughts on something I consider to be a curiosity of javascript usage. I've seen a lot...
5
geolemon
by: geolemon | last post by:
I'm building a small-scale MRP system for an electronics manufacturing business. There are assemblies that are built, and parts that go into those assemblies. The individual component parts that go...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.