You are here:
Advertisement
| Rating(1-10) | Knowledgeability = 10 | Clarity of Response = 10 | Politeness = 10 |
| Comment | Thank you once again for your promptness and expertise. I did get this portion to compile. The issue is that Siemens uses a proprietary function that produces the array declared as a BYTE. Here is the code: #include "apdefap.h" void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName) { #define bytesize 7200 BYTE byteRecieve[bytesize]; char byteArray[bytesize] = {0}; float* floatArray = (float*)byteArray; BOOL Rslt; Rslt = GetTagRawWait("MPI_RDT_7200b",byteRecieve,bytesize); byteArray = byteRecieve; //if (Rslt) //{ //SetTagFloat("PV_0", floatArray[0]); //SetTagFloat("PV_1", floatArray[1]); //SetTagFloat("PV_2", floatArray[2]); //SetTagFloat("PV_3", floatArray[3]); //SetTagFloat("PV_4", floatArray[4]); //SetTagFloat("PV_5", floatArray[5]); //SetTagFloat("PV_6", floatArray[6]); //SetTagFloat("PV_7", floatArray[7]); //} else //{ //SetTagFloat("InternalFloatResult", 9999.99); //} //free(floatArray); } If you could help me get the byteRecieve data into the byteArray, I would greatly appreciate. Thank you again for your help. | ||
Answers by Expert:
I've been programming in one form or another since my brother taught me BASIC when I was 6. I've been programing professionally since I was 20, first web development with HTML, JS, DHTML, CSS, etc., then I became a video game developer, writing code in C, C++, C#, SQL, assembly, and various scripting languages. I've even written my own scripting languages, custom designed for the games I was making. I also dabble in Java, PHP, and Perl. I've worked on pretty much every aspect of game development, including graphics, audio, gameplay, tool, UI, input, animation, and physics.
I've been writing C code for 12 years, both on my own in my spare time and professionally.
Organizations
IGDA
Education/Credentials
Bachelor of Science in Game Design and Development, Full Sail University, Winter Park, FL
Awards and Honors
Salutatorian and Advanced Achiever Awards at Full Sail;
Independent Games Festival Student Showcase winner, 2004;
Featured article on Gamasutra about an experimental game developed in 2004

©2012 About.com, a part of The New York Times Company. All rights reserved.