Data type conflict from C++ to C#
-
Hi all, I already convert a C++ project to C# project. It's fine and working ok. On C++ I use DWORD data type. But in C# for that I used just a int value. Is that ok. Is there compatible data type which I can use for my project. Thanks. :)
I appreciate your help all the time... Eranga :)
-
Hi all, I already convert a C++ project to C# project. It's fine and working ok. On C++ I use DWORD data type. But in C# for that I used just a int value. Is that ok. Is there compatible data type which I can use for my project. Thanks. :)
I appreciate your help all the time... Eranga :)
Are you having an issue, or are you just worried in general ? long is bigger than int in C#.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Are you having an issue, or are you just worried in general ? long is bigger than int in C#.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Actually I worried this because it related with registry. So new value type should be compatible with registry data type REG_DWORD :)
I appreciate your help all the time... Eranga :)
-
Hi all, I already convert a C++ project to C# project. It's fine and working ok. On C++ I use DWORD data type. But in C# for that I used just a int value. Is that ok. Is there compatible data type which I can use for my project. Thanks. :)
I appreciate your help all the time... Eranga :)
UInt32 or Int32 are equivalent to DWORD in c#.
-
UInt32 or Int32 are equivalent to DWORD in c#.
Seems it is fine. Thanks a lot. At the same time I found one thing. bool type variable gives the same output as DWORD. Do you guys know about it?
I appreciate your help all the time... Eranga :)