Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
.NET
.NET Assemblies
.NET Core
.NET Standard
Active Directory
ADO.NET
Agile Development
AJAX
Alexa Skills
Algorithms in C#
Android
Angular
Architecture
ArcObject
Artificial Intelligence
ASP.NET
ASP.NET Core
Augmented Reality
Aurelia
AWS
Azure
Backbonejs
Big Data
BizTalk Server
Blockchain
Bootstrap
Bot Framework
Business
C#
C# Corner
C, C++, MFC
Career Advice
Chapters
CIO
Cloud
COBOL.NET
Coding Best Practices
Cognitive Services
COM Interop
Compact Framework
Cortana Development
Cryptocurrency
Cryptography
Crystal Reports
Current Affairs
Custom Controls
Cyber Security
Data Mining
Databases & DBA
Design Patterns & Practices
DevOps
DirectX
Dynamics CRM
Enterprise Development
Entity Framework
Error Zone
Exception Handling
Expression Studio
F#
Files, Directory, IO
Games Programming
GDI+
General
Generative Engine Optimization (GEO)
Google Cloud
Google Development
Graphics Design
Hardware
Hiring and Recruitment
HoloLens
How do I
HTML 5
Internet & Web
Internet of Things
Ionic
iOS
Java
Java and .NET
JavaScript
JQuery
JSON
JSP
Knockout
kotlin
Leadership
Learn .NET
LightSwitch
LINQ
Machine Learning
Microsoft 365
Microsoft Office
Microsoft Phone
Mobile Development
Multithreading
Nano Banana
NetBeans
Networking
Node.js
Office Development
OOP/OOD
Open Source
Operating Systems
Oracle
Outsourcing
Philosophy
PHP
Power BI
Printing in C#
Products
Progressive Web Apps
Project Management
Python
Q#
QlikView
R
React
Reports using C#
Robotics & Hardware
Ruby on Rails
Salesforce
Security
Servers
SharePoint
SignalR
Silverlight
Smart Devices
Software Testing
SQL Language
SQL Server
Startups
String in C#
Swift
TypeScript
Unity
UWP
Visual Basic .NET
Visual Studio
WCF
Wearables
Web Development
Web Services
Web3
Windows 10
Windows Controls
Windows Forms
Windows PowerShell
Windows Services
Workflow Foundation
WPF
Xamarin
XAML Standard
XML
XNA
XSharp
Register
Login
20
Answers
How to write code based on the typedef? thread.
Karthik Agarwal
13y
121.2k
0
1
How do I
Reply
In reference to the
How to write code based on the typedef?
thread
I am pointing to the array element as follows:
void
** text_ptr_p = l_language_Text_data_VPA[text_id];
void
** text_format = text_ptr_p[0];
and sending the address to another fucntion as follows:
hmi_gfx_mgr_decode_bit_format(&text_ptr_p[index]);
and receiving as
static
void
hmi_gfx_mgr_decode_bit_format(UINT32
* bit_format_ref
)
{
//insdie the array I am assigning as follows
Size = HmStrLngTable1[*bit_format_ref];
//now what I want to do is if the Size is equal to 31 or 0x1F then it should concatenate all the other elements in the array
if(Size == 0x1F)
{
// write ur code here
}
}
HmStrLngTable1 looks like follows:
HmStrLngTable1[]
{
/*0x000C */
,
0x05
,
0x4D
,
0x79
,
0x4B
,
0x65
,
0x79
/*0x0012 */
, 0x1F, 0x00, 0x0C
/*0x0015 */
, 0x1F, 0x00, 0x0C
}
If you see the lines marked in red which starts with 0x1F if that is the case then I need to point to the location which is given by the next two bits which are 0x00 and 0x0C after combining them which becomes 0x000C and which is in green color in the very starting line of the array. Got it.
Probably
* bit_format_ref
can be used to point HmStrLngTable1
If you have any doubts get back to me?
Post
Reset
Cancel
Answers (
20
)
Related Discussion