473,752 Members | 9,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET 2005 Project using DirectX can't find _Xran and _Xlen on conversion from .NET 2003

I am converting a project that uses DirectX and worked under VS.NET 2003.
Now when I convert the project to .NET 2005, there are linker errors for
_Xran and _Xlen as follows:

dx9.lib(WinCons ole.obj) : error LNK2019: unresolved external symbol "public:
void __thiscall std::_String_ba se::_Xran(void) const " ...
....
dx9.lib(WinCons ole.obj) : error LNK2019: unresolved external symbol "public:
void __thiscall std::_String_ba se::_Xlen(void) const " ...
....

The references are coming from the dx9.lib. I have just installed the
latest DirectX SDK (Augusts 2006).

Am I supposed to add another library reference to my project. I thought
that the installation of the SDK told VS where the libraries and include
files were.

Ed
--
Edward E.L. Mitchell
Phone: (508)771-0806
500 Ocean St., Unit 134,
Hyannis, MA 02601
Sep 21 '06 #1
3 4862
Hi Edward,
>The references are coming from the dx9.lib. I have just installed
the latest DirectX SDK (Augusts 2006).

Am I supposed to add another library reference to my project.
I thought that the installation of the SDK told VS where the libraries
and include files were.
The installation of the DirectX SDK will not update the VS2005's VC++
project's directory setting automatically. I suggest you set the "Include
files" and "Library files" setting manually, and make sure place your SDK's
directory at the top of those two lists.(Tools | Options | Projects and
Solutions | VC++ Directories...)
>dx9.lib(WinCon sole.obj) : error LNK2019: unresolved external
symbol "public: void __thiscall std::_String_ba se::_Xran(void) const " ...
By the way, the definition of the std::_String_ba se::_Xran(void) const which
is shipped with the Visual C++ 2005 libraries is a __cdecl function, but
the error message shows it is a __thiscall function. If my first suggestion
doesn't fix the issue, I suggest you can also refer to the following MSDN
forum thread, which discuss a similar problem:

http://forums.microsoft.com/MSDN/Sho...79018&SiteID=1

I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Sep 22 '06 #2
Gary,

When I look at the Tools>Options>P rojects and Solutions>VC++D irectories, I
find that the DirectX SDK install has actually entered:

C:\Program Files\Microsoft DirectX SDK (August 2006)\Lib\x86

at the top of the list for the libraries. There is a similar entry for the
executables and includes.

However, when I looked in the x86 folder, there isn't a dx9.lib. There is a
d3dx9.lib and other similar .lib files. It turned out that the dx9.lib was
part of the overall solution that I was building - an imported 3rd party
demo project that I had expected to build directly. In fact it had built
successfully using .NET 2003 so the dx9.lib was left over from that build.

Rebuilding the local dx9.lib file under .NET 2005 solved the problem :)

Thanks for the feedback that lead to the solution.

Ed

""Gary Chang[MSFT]"" <v-******@online.m icrosoft.comwro te in message
news:sK******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi Edward,
>>The references are coming from the dx9.lib. I have just installed
the latest DirectX SDK (Augusts 2006).

Am I supposed to add another library reference to my project.
I thought that the installation of the SDK told VS where the libraries
and include files were.

The installation of the DirectX SDK will not update the VS2005's VC++
project's directory setting automatically. I suggest you set the "Include
files" and "Library files" setting manually, and make sure place your
SDK's
directory at the top of those two lists.(Tools | Options | Projects and
Solutions | VC++ Directories...)
>>dx9.lib(WinCo nsole.obj) : error LNK2019: unresolved external
symbol "public: void __thiscall std::_String_ba se::_Xran(void) const " ...

By the way, the definition of the std::_String_ba se::_Xran(void) const
which
is shipped with the Visual C++ 2005 libraries is a __cdecl function, but
the error message shows it is a __thiscall function. If my first
suggestion
doesn't fix the issue, I suggest you can also refer to the following MSDN
forum thread, which discuss a similar problem:

http://forums.microsoft.com/MSDN/Sho...79018&SiteID=1

I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.


Sep 22 '06 #3
That's great, Ed!

I am glad to know you have already found out the root cause and fixed it. :)

Good Luck!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2266
by: Fred Mellender | last post by:
I had VC# 2003 installed and then installed the Managed DirectX SDK. When I highlight a Direct3D class (e.g. Device) and press F1, I get the help page from the SDK and everything works fine within VC# 2003. I subsequently installed the beta of C# 2005 Express. I am able to make the reference to Microsoft.DirectX, and the tool tips and the builds work fine with DirectX. However, the SDK help files are not integrated (F1 and index...
0
1364
by: Smith | last post by:
Hi, I'm using Visual C++ .NET 2005 Beta1 and have an ATL Smart Device project. I've got lots of LNK2001 errors: menu.obj : error LNK2001: unresolved external symbol "void __cdecl std_ce::_Debug_message(char const *,char const *)" (?_Debug_message@std_ce@@YAXPBD0@Z) menu.obj : error LNK2001: unresolved external symbol "public: static void __cdecl std_ce::_String_base::_Xran(void)"
11
1711
by: Peter Oliphant | last post by:
I've been trying all morning to convert my 2003 project (managed) to 2005 (/clr since I have both managed and unmanaged code). I'm guessing I have tens of thousands of lines of code to change. Did a lot of converting '__gc' to 'ref', converting '*' to '^', converting 'new' to 'gcnew'. Of course this can't be done with a blanket replace, as my code has both managed and unmanaged segments. Thus I have to do them one-by-one. Also, things are...
9
1449
by: Vince | last post by:
Hi all, I am trying to convert a VB 6 application to VB.NET 2005 using the wizard. It has over 20 forms and I've used Option Explicit everywhere, hence variables are properly declared and used. I also made sure that there was no design time (ItemData) listings in the list. However, when I try to convert to .NET, two things happen: a) It gives me over 5500 errors!! (Many of them include 'could not resolve type' inspite of explicit...
13
2288
by: Andy | last post by:
Hi As I try to learn VB programing I've been playing around with sourcecode from projects hosted on sourceforge. If I open this code in VB 2005 (it is originally developed in VB 2003), it will automatically upgrade to VB 2005? /Andy
0
1707
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire solution uses the following technologies - Windows Server 2003 Windows Mobile 2003 Windows XP Professional SP2 Windows 2000 Professional SP4 SQL Server 2000
4
2982
by: Airw0lf | last post by:
Hi all, would appreciate help with some trouble I'm having after using the Visual C++ 2005 Express Conversion Wizard on my Visual C++ .NET 2003 project. The wizard completed successfully with only warnings about using a "fully qualified name with the use of the address-of operator (e.g. &ClassName::MemberFunctionName)". I added the & operator as needed and eliminated the compile errors relating to those warnings. The problem I am...
7
2501
by: Coleen | last post by:
Does anyone have any good detailed information on the conversion process? We are in the process of converting 2 projects from 2003 to 2005 and have some conversion errors that I can not find answers to. First, we have a lot of UserControls. I am getting the error "Type uc_mc_btn_footer is not defined." where uc_mc_btn_footer is the name of the UserControl. Also, on almost all of our UserControls the conversion has remmed out all my code...
5
1408
by: JT | last post by:
Hi, I'm not sure where the problem is, but I think it's related to the .pdb file. I had a class library created in VS 2003 and decided to convert it to a VS 2005 project/solution. It seemed to go okay, and still was successful when building, but I later had to make a modification. When I tried, it wouldn't recognize the changes. I put in a breakpoint right before my modification and then when stepping through it, it jumped right...
0
9020
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8861
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9279
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6830
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3340
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2819
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2237
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.