Click here to Skip to main content
15,908,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class View Pin
Amit Dey17-May-02 15:00
Amit Dey17-May-02 15:00 
GeneralRe: Class View Pin
Francisco Moraes18-May-02 2:44
Francisco Moraes18-May-02 2:44 
GeneralRe: Class View Pin
Francisco Moraes18-May-02 3:49
Francisco Moraes18-May-02 3:49 
GeneralTwo Errors LNK2001 and LNK1120 Pin
Dee17-May-02 13:18
Dee17-May-02 13:18 
GeneralRe: Two Errors LNK2001 and LNK1120 Pin
Christian Graus17-May-02 13:50
protectorChristian Graus17-May-02 13:50 
Generalunace.dll Pin
carrie17-May-02 13:11
carrie17-May-02 13:11 
GeneralRe: unace.dll Pin
Mukkie18-May-02 0:38
Mukkie18-May-02 0:38 
Generalsimple question Pin
rbc17-May-02 12:50
rbc17-May-02 12:50 
I have this dll with a routine in it that I what to call.
Lets call it comp1.


So ... I create a project and add a C++ file to it that looks like this
I change my prject setting so that comp1.lib is in that setting
window.

#include <stdio.h>
#include "comp1.h"

void main( int argc, char * argv[] ) {
char array[19];

comp1( "blah", "blah1", "blah3", array );
}

I compile ok but when I link I get this error

LNK2001: unresolved exteranl symbol "int __cdecl comp1( char *, char*, char*, char *const)" (?comp1@@YAHOOSOMETHING@Z)

What am i doing wrong?
GeneralRe: simple question Pin
Jack Handy17-May-02 13:34
Jack Handy17-May-02 13:34 
GeneralRe: simple question Pin
rbc17-May-02 14:00
rbc17-May-02 14:00 
GeneralRe: simple question Pin
rbc17-May-02 14:09
rbc17-May-02 14:09 
GeneralUDP broadcast again!! Pin
Rickard Andersson2017-May-02 12:34
Rickard Andersson2017-May-02 12:34 
GeneralCListView.. OnPaint().. Help! Pin
RobJones17-May-02 11:33
RobJones17-May-02 11:33 
GeneralRe: CListView.. OnPaint().. Help! Pin
Shog917-May-02 14:30
sitebuilderShog917-May-02 14:30 
GeneralSame problem :( Pin
17-May-02 14:42
suss17-May-02 14:42 
GeneralRe: Same problem :( Pin
Shog917-May-02 15:52
sitebuilderShog917-May-02 15:52 
GeneralThanks! Pin
RobJones20-May-02 6:18
RobJones20-May-02 6:18 
GeneralMAPIAddress() and the default button Pin
Shog917-May-02 11:23
sitebuilderShog917-May-02 11:23 
GeneralCTreeCtrl issues Pin
dazinith17-May-02 10:33
dazinith17-May-02 10:33 
GeneralRe: CTreeCtrl issues Pin
Ravi Bhavnani17-May-02 11:06
professionalRavi Bhavnani17-May-02 11:06 
GeneralRe: CTreeCtrl issues Pin
dazinith20-May-02 3:59
dazinith20-May-02 3:59 
GeneralProblems with MNEMONICS !! Pin
Cris17-May-02 10:25
Cris17-May-02 10:25 
GeneralRe: Problems with MNEMONICS !! Pin
Ravi Bhavnani17-May-02 11:07
professionalRavi Bhavnani17-May-02 11:07 
GeneralRe: Problems with MNEMONICS !! Pin
Cris20-May-02 2:18
Cris20-May-02 2:18 
QuestionQT, anyone? Pin
Ravi Bhavnani17-May-02 9:45
professionalRavi Bhavnani17-May-02 9:45 

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.