• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

Header file for _mbstrlen routine

I'm using a multibyte character string in my C++ Builder application and that's why i need to use the '_mbstrlen' routine. MSDN Help says i need to include <stdlib.h> file to use _mbstrlen rountine. But even if i include this  file i get a compiler error saying "Call to undefined function '_mbstrlen'". I have tried to use '_mbslen' routine. But it doesn't serve the purpose. Can anybody throw some light on the problem? Thank you.

Ruhan
0
ruhan
Asked:
ruhan
  • 2
  • 2
  • 2
1 Solution
 
sarda_rameshCommented:
It seems that ur program is unable to include the proper libraries try checking out the options / preferences of ur compiler .

regards
ramesh
0
 
Mayank SAssociate Director - Product EngineeringCommented:
I think its mbstrlen () amd not _mbstrlen (). Just try changing that once and see if it works - some C++ compilers often prefix function names with an underscore while displaying error messages (like a declared but undefined function func () might be reported as 'Undefined function _func ()').

Happens sometimes - just try it once.

Mayank.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
How about rating it now?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jmcgOwnerCommented:
Nothing has happened on this question in more than 8 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
accept answer by mayankeagle.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0
 
sarda_rameshCommented:
Hmmmmmmm ..... Do I get the early bird prize :)

- Ramesh
0
 
jmcgOwnerCommented:
There _was_ a long delay before Mayank posted his answer, but it was a lot more specific, so I suggested points be awarded on that basis.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now