Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 00:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Tchar to byte

Discussion on Tchar to byte within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 2
Received Thanks: 0
Tchar to byte

Hey,
can anyone help me to convert TCHAR[] to BYTE in C++?=/
mfg
Zat0 is offline  
Old 02/22/2011, 17:15   #2


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Code:
TCHAR str[4] = TEXT("str");
byte bytes[10];
memcpy(bytes, str, 4*sizeof(TCHAR));
MrSm!th is offline  
Thanks
1 User
Old 02/22/2011, 17:55   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 2
Received Thanks: 0
Ups...xD
Thanks working
Zat0 is offline  
Reply


Similar Threads Similar Threads
Unicode zu Multi byte wie?
09/30/2010 - General Coding - 4 Replies
Wie kann ich in Visual Studios 2010 im Linker (???) Unicode zu Multi byte ändern Ich habe das mal gehört und wollte wissen wie das geht da mein Script Fehlermeldungen diesbezüglich macht!
8 byte anzeigen in Autoit
08/09/2010 - AutoIt - 3 Replies
hi! hab jetzt 2 Std google hinter mir und nichts sinnvolles gefunden, meine Frage is: Wie kann ich in Autoit 8byte anzeigen lassen dword = 4 byte long = 4 byte int = 4 byte gibts da was für 8 byte? In der nomadmemory steht dazu auch nichts
Frage zu byte
06/20/2010 - General Coding - 4 Replies
Hallo E*pvp! Ich hab eine Frage... Wie erkenne ich welches byte statisch und welches nicht ist??!? zb. \xB9\x00\x00\x00\x00\xF3\xA5\x00 = x????xxx x : static byte ? : not static byte Wie wärde dass denn hier?? 00 00 20 40 C8 00 50 40 C8 00 80 40 C8 00 B0 40 THX Leute
To: those ppl already know how to change DC FLAGS to 1 byte
09/18/2009 - Cabal Online - 4 Replies
u already know the DC FLAG ryt? so u can UNBLOCK those account that already "BLOCK" :D:D:D and one thing to those ppl already know how to change DC FLAG to 1 byte or simply bypass it... i think we have only 3 in PH that already know "INFINITY HACK, PERFECT ups/craft" credit to K810i for this kind of hack... WE ARE READY to negotiate this kind of hack to those ppl already know how to change those DC FLAG to 1 byte or simply bypass it but... make sure u'll already know how to change those DC...
TOS Byte im IP-Header verändern
10/11/2008 - Technical Support - 2 Replies
Hi, ich wollte mal fragen, ob jemand weiß, wie man das TOS (Type of Service) Byte im Header von allen ausgehen IP-Paketen ändern kann. Ich habe es bereits geschafft, den TTL Wert von allen ausgehen IP-Paketen mit Hilfe eines einfachen Registryeintrages zu ändern. Irgendwie muss man den TOS Wert doch auch, sei es mit Extratools oder nicht, ändern können. Mein Router kann nämlich die Pakete dem TOS Wert nach priorisieren und ich möchte ein wenig damit rumspielen ;). Achja, ich benutze Vista...



All times are GMT +1. The time now is 00:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.