Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMovable button Pin
junkan123417-Feb-04 11:48
junkan123417-Feb-04 11:48 
GeneralRe: Movable button Pin
Robert A. T. Káldy18-Feb-04 0:26
Robert A. T. Káldy18-Feb-04 0:26 
GeneralActiveX control Pin
Anonymous17-Feb-04 11:10
Anonymous17-Feb-04 11:10 
GeneralBasic Serial I/O in VC++ Pin
JoeMass17-Feb-04 11:03
JoeMass17-Feb-04 11:03 
GeneralRe: Basic Serial I/O in VC++ Pin
Anonymous17-Feb-04 13:34
Anonymous17-Feb-04 13:34 
GeneralRe: Basic Serial I/O in VC++ Pin
r i s h a b h s17-Feb-04 22:19
r i s h a b h s17-Feb-04 22:19 
GeneralRe: Basic Serial I/O in VC++ Pin
jhorstkamp18-Feb-04 3:12
jhorstkamp18-Feb-04 3:12 
GeneralRe: Defining functions in other files Pin
satcat17-Feb-04 10:22
satcat17-Feb-04 10:22 
I've created the .H files and I've put the include. Now my problem is with keeping the linker from complaining about multiply-defined symbols... I'm getting some linker errors and I've read in the page that you told me but I'm lost. I don't know which symbols should I define so I don't get this linker errors.
I'm getting this errors:
<br />
imevo.obj : error LNK2001: unresolved external symbol _IID_ITTSBufNotifySink<br />
imevo.obj : error LNK2001: unresolved external symbol _CLSID_TTSEnumerator<br />
imevo.obj : error LNK2001: unresolved external symbol _IID_ITTSFindA<br />
imevo.obj : error LNK2001: unresolved external symbol _CLSID_MMAudioDest<br />
imevo.obj : error LNK2001: unresolved external symbol _IID_IAudioMultiMediaDevice<br />

In imevo.cpp these symbols are used in some functions like these:
hRes = CoCreateInstance(CLSID_MMAudioDest,NULL,CLSCTX_ALL,IID_IAudioMultiMediaDevice,
			(void**)&pIAMM);

hRes=CoCreateInstance(CLSID_TTSEnumerator,NULL,CLSCTX_ALL,IID_ITTSFind,(void**)&pITTSFind);
hRes=pITTSFind->Select(TTSModeInfo.gModeID, &pITTSCentral, (LPUNKNOWN) pIAMM);

hRes=pITTSCentral->TextData(CHARSET_TEXT,0,datos,NULL,IID_ITTSBufNotifySinkW);


I think I've defined all variables that I should (in imevo.cpp)
<br />
ITTSCentral *pITTSCentral;<br />
IAudioMultiMediaDevice *pIAMM;<br />
PITTSFIND pITTSFind;<br />


But I get these errors. Any idea? How should I use yor advice (I don't know if I need it or not)
<br />
#if !defined(some_unique_symbol_here)<br />
#define some_unique_symbol_here<br />
#pragma once<br />

?

Thank you very much Smile | :)
GeneralRe: Defining functions in other files Pin
Michael Gunlock17-Feb-04 19:16
Michael Gunlock17-Feb-04 19:16 
GeneralRecord count on a CRecordSet Pin
Ger Hayden17-Feb-04 10:11
Ger Hayden17-Feb-04 10:11 
GeneralRe: Record count on a CRecordSet Pin
David Crow17-Feb-04 10:52
David Crow17-Feb-04 10:52 
GeneralRe: Record count on a CRecordSet Pin
basementman17-Feb-04 11:17
basementman17-Feb-04 11:17 
GeneralRe: Record count on a CRecordSet Pin
David Crow18-Feb-04 2:23
David Crow18-Feb-04 2:23 
GeneralSubclassing an ActiveX Pin
Hosam CFJ17-Feb-04 9:51
Hosam CFJ17-Feb-04 9:51 
GeneralDetecting Presence of and sending actions to windows within another program Pin
Member 88819117-Feb-04 9:27
Member 88819117-Feb-04 9:27 
GeneralDetecting Presence of and sending actions to windows within another program Pin
Member 88819117-Feb-04 9:27
Member 88819117-Feb-04 9:27 
GeneralRe: Detecting Presence of and sending actions to windows within another program Pin
David Crow17-Feb-04 9:38
David Crow17-Feb-04 9:38 
GeneralRe: Detecting Presence of and sending actions to windows within another program Pin
Member 88819117-Feb-04 9:42
Member 88819117-Feb-04 9:42 
GeneralRe: Detecting Presence of and sending actions to windows within another program Pin
Antti Keskinen17-Feb-04 9:56
Antti Keskinen17-Feb-04 9:56 
GeneralRe: Detecting Presence of and sending actions to windows within another program Pin
LanUx17-Feb-04 16:34
LanUx17-Feb-04 16:34 
GeneralNetUserSetInfo question Pin
jamm_8217-Feb-04 9:17
jamm_8217-Feb-04 9:17 
GeneralRe: NetUserSetInfo question Pin
David Crow17-Feb-04 9:33
David Crow17-Feb-04 9:33 
GeneralRe: NetUserSetInfo question Pin
jamm_8218-Feb-04 3:23
jamm_8218-Feb-04 3:23 
GeneralRe: NetUserSetInfo question Pin
David Crow18-Feb-04 3:41
David Crow18-Feb-04 3:41 
QuestionULONG_PTR? Pin
Abin17-Feb-04 8:09
Abin17-Feb-04 8:09 

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.