59 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for diafol

## Background ## Hi All, I 've been playing around with colour (color!) formats and needed to create a class for converting different formats, so I thought I'd share it. It seems to work quite well and accepts a number of different convenient formats. The class allows the conversion between …

Member Avatar for diafol
5
411
Member Avatar for dinamit3

I have this string " țara " which contains a character ț which is stored on 2 bytes. When i do in linux : hexdump -C file that contains the string it shows : 00000000 c8 9b 61 72 61 |..ara| 00000005 It is normaly to view c8 and 9b …

Member Avatar for L7Sqr
0
286
Member Avatar for swaar.metaal.7

Hi everyone, I am new here and I hope all of you are doing well. I have spent the whole day searching around on the almighty Google for code that can help me with my problem. In the following code there may be quite a few n00b mistakes, and for …

Member Avatar for swaar.metaal.7
0
268
Member Avatar for ryan.jay.ong

I want to convert some numbers to binary, octal, and hexadecimal.. for example: . DECIMAL......BINARY......OCTAL.....HEXADECIMAL ................................................................... 1.................00000001.....001.......1 2.................00000010.....002.......2 And so on..

Member Avatar for AndrisP
0
176
Member Avatar for BlackJax96

Hi, I want to convert a float value to 32bit hex and the code I have right now returns 64bit hex. The float is stored in a string called value. [CODE] result = Convert.ToDouble(value); long lVal = BitConverter.DoubleToInt64Bits(result); string hex = lVal.ToString("X"); OutputBox.Text += ("\nConverted the " + value.GetType().Name + …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for ankit.pandey3

Hi friends, Can any one tell me the java program that how to convert Octa Decimal to HexaDecimal without using inbuild functions. I tried a lot but not successful. Please Please Please post the program... Thanks in advance..

Member Avatar for bguild
0
277
Member Avatar for ralph.d.abernathy.1

Hello all. I'm writing a program that converts from any cominbation of base 2, 8, 10, and 16. So far I have this code and I want to convert from hexadecimal to octal but it doesn't work. I would appreciate any help. Thank you! Here is the code: #include "stdafx.h" …

Member Avatar for Nutster
0
484
Member Avatar for DEBASCOGUY

Please am new to java and i need an assistant on loading hexadecimal from a textfile and converting it into binary(Loader class) then the binary will be kept in another class(memory class). then the binary will be forwarded to another output file.

Member Avatar for JamesCherrill
0
262
Member Avatar for efxee

I am trying to read a structure from a .dat file...the first integer to be read is the no of readings, then there is the data in following structure format struct Oven { int rec_no; int temp; int status; char string[10]; }; below is the method through which I read …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for muna.nassr

please any one can help me about send and recieve packets by serail port the pakeck that i need to send is in hex to controll some thing how can do this in vb.net how can do like this design in the picture below please help me

Member Avatar for lolafuertes
0
117
Member Avatar for butthole55

I need to remove a certain color, like for example, 0xFFFFFF (Color.White) would remove all the white in an image. Thanks :)

Member Avatar for butthole55
0
405
Member Avatar for dancks

Ok. As the title says I tried many times to simply write a program that rewrites a file to remove null characters. I confirmed with a hex editor that the file in question has tons on null characters, on average about 1 of every 2 characters in null. So my …

Member Avatar for dancks
0
419
Member Avatar for DangleSauce19

My code works for numbers that dont have a remainder of 10 or above, but whenever I get one with a remainder 10 or above it prints out the number, not the letter. Please help #include <iostream> #include <fstream> using namespace std; const int maxstack = 51; class stack_type { …

Member Avatar for WaltP
0
2K
Member Avatar for meda.gharib

Hi everyone I'm stuck on a school project. The Following is the prompt: > Write an assembly language program that prompts the user to enter a string to be interpreted as an 8-digit hexadecimal number. Your program must convert the ASCII string representation of this hexadecimal number into a 32-bit …

0
487
Member Avatar for TTTHXC

i have a function in a module that requries integer values. these values are set by the user typing in two textboxes on the form. the texboxes contain Hexadecimal data in string form. function: Friend Function addNewCode(ByVal Location As Integer, ByVal Opcode As Integer) As Boolean If (Not LocStack.Count < …

Member Avatar for Reverend Jim
0
713
Member Avatar for Ikram Shams

I am developing a website in which i am showing the hexa code into bgcolor of td of table. The problem is that when someone like that page or print the page then that color is not showing because the color is bgcolor color of td. So, i want to …

Member Avatar for hericles
0
351
Member Avatar for enakta13

I intend to write a GUI java program which convert a decimal(base 10) to hexadecimal(base 16). Floating point decimals are also valid input. the code of my program private void myEnterButtonActionPerformed(java.awt.event.ActionEvent evt) { float mynum; mynum = Float.parseFloat(this.myNumberField.getText()); Float floatObject = Float.valueOf(mynum); myResultField.setText(Float.toHexString(mynum)); } but when I run the program, …

Member Avatar for enakta13
0
427
Member Avatar for mikeybware

I have a string of text being sent through a serial port to a text box (Text1.Text). The string has some symbols in in which I am assuming are Hex values. The hex values are Hex(1), Hex(4), Hex(12), and Hex(17). What I need to do is find the position of …

Member Avatar for Reverend Jim
0
2K
Member Avatar for dshiells

Hi all, I'm sure this is a n00b question, but I can't seem to get my head around it! I have a 4 BYTE array which I want to display as a decimal value. For example, in the array it contains the hex values: 00 05 7d a4, and I …

Member Avatar for dshiells
0
2K
Member Avatar for Dec28

Alright guys, I've been trying to think how to do this and I keep confusing myself. It's part of a project using piping in UNIX but first I need to get this small program running properly. I want to pass the final result (Hex value) to another program that will …

Member Avatar for histrungalot
0
239
Member Avatar for rfrapp

Let me start off by saying that this is homework, and I have most of it completed. However, I am stuck on how to convert decimal to hexadecimal. The assignment is to add two hexadecimal numbers and output the answer. If the length of the answer is greater than 10 …

Member Avatar for rfrapp
0
3K
Member Avatar for Noufal0247

hi all, i am new to python programming.i need to develop one client server program. here once the client and the server start at the first time, the client automatically send one message to the server . this is a random message, here after the client is waiting for a …

0
83
Member Avatar for pwolf

Stuck again, still, im learning from my large list of mistakes, haha so this time im trying to convert a decimal to hexadecimal, i tried using hex(number) but its not suitable for the situation as this returns a string. and i dont know how or if i can convert a …

Member Avatar for pwolf
0
2K
Member Avatar for shuchi0113

int main(){ int near * ptr=( int *)0XFFFF; ptr++; ptr++; printf(“%p”,ptr); return 0; } Output:0003 why the op is 3 and how to convert 0XFFFF into its decimal equivalent?

Member Avatar for shuchi0113
0
581
Member Avatar for stamatt45

I'm writing a program to convert Decimal numbers to binary, hexadecimal, and BCD as a refresher before i start getting code assignments in school. I'm almost done, but i have a seg_fault (compiler says decToHex function) in 1 function and i am hoping for some feedback on the others. I'll …

Member Avatar for raptr_dflo
0
3K
Member Avatar for rfrapp

I'm writing a program to add two hex numbers of up to ten digits, and I'm recieving an "assertion failure," and I can't figure out why. Any help would be greatly appreciated. Thank you for you time! [CODE] // hex addition.cpp : Defines the entry point for the console application. …

Member Avatar for WaltP
0
288
Member Avatar for rfrapp

I'm writing a program that adds two hexadecimal numbers of up to ten digits. I'm trying to use the POW function, but for some reason it's underlined. Why is that? [CODE] // hex addition.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> …

Member Avatar for LRRR
0
579
Member Avatar for Malraux

Hello I have a sequence that looks like this: 60211401dc070000 which is a string (it was build through a series of concatenations and conversions) How can i just tell him that it is actually a hex ?? without modifying it's value... Thanks! Have a nice day

Member Avatar for Lucy Four
0
309
Member Avatar for Malraux

Hello, I'm trying to represent the system date in a sequence such as: dd mm yy yy So far i got: dd mm yyy so, the year is represented on 2 ytes, but I only have 3 characters, i need to split after the first character and then add a …

Member Avatar for TrustyTony
0
228
Member Avatar for JRE.A

I have a problem when adding 2 numbers in assembly because we are using hex. When add 4+5 (34h + 35h) the output is 9 but if I add 5+5 (35h + 35h) the output displays colon(:) or 3ah instead of 10. Here's the sample image when i generate the …

Member Avatar for thines01
0
222

The End.