Help me to reslove this linking error,please..
-
while trying to make a java compatible dll for my application i'm getting a linking error msg in VC++ (VS6.0) as error LNK2001 : unresolved external symbol _imp_mciSendCommandA@16 i'm using this dll for accessing the mic. can anybody help me in solving this problem
swaroop
-
while trying to make a java compatible dll for my application i'm getting a linking error msg in VC++ (VS6.0) as error LNK2001 : unresolved external symbol _imp_mciSendCommandA@16 i'm using this dll for accessing the mic. can anybody help me in solving this problem
swaroop
did you correctly provide the .lib file to you linker settings ?
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
while trying to make a java compatible dll for my application i'm getting a linking error msg in VC++ (VS6.0) as error LNK2001 : unresolved external symbol _imp_mciSendCommandA@16 i'm using this dll for accessing the mic. can anybody help me in solving this problem
swaroop
Did you import
Winmm.lib
?
WhiteSky
-
did you correctly provide the .lib file to you linker settings ?
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
Did you import
Winmm.lib
?
WhiteSky
-
yes, all the lib files needed for the function is given in the settings of the VS 6.0.. as per the msdn winmm,lib is the lib file needed for that and still the problem exist. also two more header file is needed for the function is also included.
swaroop
did you try a C linkage ? because your symbole seems to be mangled...
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
did you try a C linkage ? because your symbole seems to be mangled...
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
extern "C"[^] before the name of the method in the declaration in the header
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
extern "C"[^] before the name of the method in the declaration in the header
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
the function i mentioned in the error is a inbuilt function for handling the mic's and all should i use extern for that also, if so hw?
swaroop
man, your _imp_mciSendCommandA() function if declared in a header file, right ? then prepend its declaration with a extern "C"... like this for instance :
extern "C" int _imp_mciSendCommandA(int);
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
man, your _imp_mciSendCommandA() function if declared in a header file, right ? then prepend its declaration with a extern "C"... like this for instance :
extern "C" int _imp_mciSendCommandA(int);
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
sorry for troubling u again , Actually i'm not declaring that function in my code...i'm just using that function, where the function is declared in Mmsystem.h(inbuilt header file)... i use this function to open the mic,close the mic and for recording.. syntax of the function in mmsystem.h WINMMAPI MCIERROR WINAPI mciSendCommandA(MCIDEVICEID mciID,UINT uMSG,DWORD dwparam1,DWORD dwparam2); sorry for the trouble..please reply
swaroop
-
swaroopkb wrote:
yes, i imported that library .
How? Saying you did it, and doing it right, are not always the same thing.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne