473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

InitCommonControls Link Error

Hello All,
I have a VC project I created a few years back (Visual Studio 97). I'm now
trying to recompile it under .NET 2003. I'm getting a linker error...

LNK2019: unresolved external symbol __imp__InitCommoncontrolsEx@4 referenced
in function _WinMainN@16

Does anyone know what I need to do to fix this? I can't find a library with
this function in it.

Thanks

Cheers :)
Nov 17 '05 #1
3 7922
InitCommonControlsEx is located in comctl32.dll, so you'd need to link
to comctl32.lib.

However, your error says InitCommoncontrolsEx, which is a difference in
capitalization. That could be a problem as well.

Thobias Jones

Randy wrote:
Hello All,
I have a VC project I created a few years back (Visual Studio 97). I'm now
trying to recompile it under .NET 2003. I'm getting a linker error...

LNK2019: unresolved external symbol __imp__InitCommoncontrolsEx@4 referenced
in function _WinMainN@16

Does anyone know what I need to do to fix this? I can't find a library with
this function in it.

Thanks

Cheers :)

Nov 17 '05 #2
InitCommonControlsEx is located in comctl32.dll, so you'd need to link
to comctl32.lib.

However, your error says InitCommoncontrolsEx, which is a difference in
capitalization. That could be a problem as well.

Thobias Jones

Randy wrote:
Hello All,
I have a VC project I created a few years back (Visual Studio 97). I'm now
trying to recompile it under .NET 2003. I'm getting a linker error...

LNK2019: unresolved external symbol __imp__InitCommoncontrolsEx@4 referenced
in function _WinMainN@16

Does anyone know what I need to do to fix this? I can't find a library with
this function in it.

Thanks

Cheers :)

Nov 17 '05 #3
Got it...that works...thanks so much!
"Thobias Jones" <tjones@no_spam.humanhead.com> wrote in message
news:40B4B935.3050807@no_spam.humanhead.com...
InitCommonControlsEx is located in comctl32.dll, so you'd need to link
to comctl32.lib.

However, your error says InitCommoncontrolsEx, which is a difference in
capitalization. That could be a problem as well.

Thobias Jones

Randy wrote:
Hello All,
I have a VC project I created a few years back (Visual Studio 97). I'm now trying to recompile it under .NET 2003. I'm getting a linker error...

LNK2019: unresolved external symbol __imp__InitCommoncontrolsEx@4 referenced in function _WinMainN@16

Does anyone know what I need to do to fix this? I can't find a library with this function in it.

Thanks

Cheers :)


Nov 17 '05 #4

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

Similar topics

6
by: Matthew Houseman | last post by:
All, I've created a synonym that points to a package over a database link like so: CREATE SYNONYM API_MYLINK FOR USER.CSAPI_V2@INSTANCE.DOMAIN.COM I've granted execute like so: grant execute...
10
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the...
1
by: Patty O'Dors | last post by:
Hi I'm trying to create an application with a RichEdit control, I found that CreateWindow always returns a null hWnd unless I call LoadLibrary("riched20.dll") first (the error code from...
10
by: Ian Lazarus | last post by:
Hello. How do "unresolved token" link errors occur. How do I fix them? Linking... LINK : error LNK2020: unresolved token (0A000015) ??_7type_info@@6B@ LINK : error LNK2020: unresolved token...
9
by: Ratfish | last post by:
I'm getting a "2014:: Commands out of sync; you can't run this command now" error on a php page when I try to call a second stored procedure against a MySQL db. Does anyone know why I might be...
3
by: pnayak | last post by:
Hi, I am trying to implement an iterator to a List class. The code is included below. I get the following compiler error. At the point where I use a class that is defined inside a template...
2
by: vijayrvs | last post by:
SearchCrawler.java The program search crawler used to search the files from the website. From the following program i got 7 compiler error. can any body clarify it and provide me solution. ...
3
by: GazK | last post by:
I have been using an xml parsing script to parse a number of rss feeds and return relevant results to a database. The script has worked well for a couple of years, despite having very crude...
3
by: phobia1 | last post by:
Hi once again. We have just changed our ISP and things that worked fine now do not, Obviously its in the differences of MYSQL and PHP versions. Have fixed most of the problems but this UPDATE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.