473,386 Members | 1,752 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,386 software developers and data experts.

error LNK 2019

hye,

i'm very new to object oriented programming.i dont know why i get this error LNK 2019.I'm using VB2005 using MFC dialog based with a static library.
i'm trying to use SetupDiGetClassDev to get the device information set.i've already get to implement the function,however there's problem with the linking part.it appears this in the output box:

1>Linking...
1>THIRD.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsW@16 referenced in function "void __cdecl `dynamic initializer for 'hardwareDeviceInfo''(void)" (??__EhardwareDeviceInfo@@YAXXZ)
1>C:\Documents and Settings\nmoham5\Desktop\THIRD\Debug\THIRD.exe : fatal error LNK1120: 1 unresolved externals

This is the code that i wrote,if i comment out this line.it will compiles and link perfectly:

HDEVINFO hardwareDeviceInfo = SetupDiGetClassDevs(&Audio_IoCTL,NULL,NULL,DIGCF_P RESENT|DIGCF_DEVICEINTERFACE);

here are the library that i include in order for the compiler to compiles perfectly:

#include <InitGuid.h>
#include <winnt.h>
#include <Setupapi.h>

What should i do next to eliminate this error?i'm very new to this environment,so please bear with me.
Feb 1 '08 #1
1 1348
debasisdas
8,127 Expert 4TB
Question moved to .net forum.
Feb 1 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: sandeepkavade | last post by:
i am a newbie and using visual studio 2003 for my TinyXML parser test application. While building the project I am getting the following errors. Searched a lot on net but not got the solution to the...
13
by: windsorben | last post by:
I have some javascript that checks whether or not an answer is correct. It was working fine when the question was asked with text but now that I'm asking the question with audio, the javascript no...
5
by: GaneshVel | last post by:
Hello, I am trying to compile a C code using Visu al Studio 2005 Command Prompt but I get unresloved external symbol glp_lpx_create_problem_reference error LNK 2019 error. I am tyring to run...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
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,...
0
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...
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...

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.