Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Process Pin
VietDelphi16-Jul-04 5:06
VietDelphi16-Jul-04 5:06 
GeneralRe: Memory Process Pin
David Crow16-Jul-04 5:16
David Crow16-Jul-04 5:16 
GeneralRe: Memory Process Pin
bikram singh16-Jul-04 12:01
bikram singh16-Jul-04 12:01 
QuestionMFC with Multiple Dialogs?? Pin
Kunal Shetye16-Jul-04 4:00
Kunal Shetye16-Jul-04 4:00 
AnswerRe: MFC with Multiple Dialogs?? Pin
David Crow16-Jul-04 4:49
David Crow16-Jul-04 4:49 
AnswerRe: MFC with Multiple Dialogs?? Pin
Maximilien16-Jul-04 5:06
Maximilien16-Jul-04 5:06 
GeneralRe: how to get access to the outbox folder Pin
David Crow16-Jul-04 4:46
David Crow16-Jul-04 4:46 
Generalwin32 dll linking problem Pin
ns16-Jul-04 3:43
ns16-Jul-04 3:43 
I had some c (not c++) files which I put into a win32 dll project and compiled. The h file looks like:

KLEINRAYC_API int
RAY_KLEIN_CC
(params_t * params);

and the .c file has the same thing in it:

KLEINRAYC_API int
RAY_KLEIN_CC
(params_t * params)
{

}


I compiled this and used the resulting .lib and .dll files in another project (where I did #include for the .h file and linked to the .lib file in project settings). However the linker says:

error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl RAY_KLEIN_CC(struct CAD_CAC_params *)" (__imp_?RAY_KLEIN_CC@@YAHPAUCAD_CAC_params@@@Z)


Now I had done the exact same thing with another dll except the files in that one were .cpp (not c) and that doesnt cause any problems.

What do I need to do with this .c dll to make the linker happy?

Thanks,
sb

GeneralRe: win32 dll linking problem Pin
Antti Keskinen16-Jul-04 8:44
Antti Keskinen16-Jul-04 8:44 
GeneralRe: win32 dll linking problem Pin
bonosa16-Jul-04 23:39
bonosa16-Jul-04 23:39 
Generalclipboard Pin
albd16-Jul-04 3:13
albd16-Jul-04 3:13 
GeneralRe: clipboard Pin
vcplusplus16-Jul-04 3:31
vcplusplus16-Jul-04 3:31 
GeneralMultiple views in one frame Pin
Maarten Kools16-Jul-04 1:45
professionalMaarten Kools16-Jul-04 1:45 
GeneralRe: Multiple views in one frame Pin
Anonymous16-Jul-04 1:48
Anonymous16-Jul-04 1:48 
GeneralRe: Multiple views in one frame Pin
Maarten Kools16-Jul-04 2:03
professionalMaarten Kools16-Jul-04 2:03 
GeneralRe: Multiple views in one frame Pin
Bob Stanneveld16-Jul-04 2:51
Bob Stanneveld16-Jul-04 2:51 
GeneralRe: Multiple views in one frame Pin
peterchen16-Jul-04 3:15
peterchen16-Jul-04 3:15 
GeneralRe: Multiple views in one frame Pin
mostafa_pasha16-Jul-04 5:00
mostafa_pasha16-Jul-04 5:00 
GeneralMore problems with service pack 6 Pin
Salvador Dali16-Jul-04 0:26
Salvador Dali16-Jul-04 0:26 
GeneralXP Styles and HP_HEADERSORTARROW Pin
Paul Vickery16-Jul-04 0:24
professionalPaul Vickery16-Jul-04 0:24 
GeneralRe: XP Styles and HP_HEADERSORTARROW Pin
Paul Vickery16-Jul-04 1:19
professionalPaul Vickery16-Jul-04 1:19 
GeneralIDE/Editor and syntax highlighting Pin
Jörgen Sigvardsson16-Jul-04 0:07
Jörgen Sigvardsson16-Jul-04 0:07 
GeneralRe: IDE/Editor and syntax highlighting Pin
Johann Gerell16-Jul-04 0:32
Johann Gerell16-Jul-04 0:32 
QuestionWhich directory is my app running out of? Pin
Joel Holdsworth16-Jul-04 0:00
Joel Holdsworth16-Jul-04 0:00 
AnswerRe: Which directory is my app running out of? Pin
Antony M Kancidrowski16-Jul-04 0:31
Antony M Kancidrowski16-Jul-04 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.