Click here to Skip to main content
15,914,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
Arsalan Malik15-Sep-04 21:27
Arsalan Malik15-Sep-04 21:27 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
gokings18-Sep-04 2:39
gokings18-Sep-04 2:39 
GeneralRe: Get Hard Drive Serial Number in VC++ Pin
Aamir Butt16-Sep-04 2:09
Aamir Butt16-Sep-04 2:09 
GeneralDoes MFC Supports IPv6 Pin
Alpha Siera15-Sep-04 20:13
Alpha Siera15-Sep-04 20:13 
GeneralRe: Does MFC Supports IPv6 Pin
Alexander M.,16-Sep-04 9:53
Alexander M.,16-Sep-04 9:53 
GeneralRe: Does MFC Supports IPv6 Pin
Alpha Siera16-Sep-04 18:34
Alpha Siera16-Sep-04 18:34 
GeneralConnection to COM object Pin
dudic15-Sep-04 19:37
dudic15-Sep-04 19:37 
GeneralRe: Connection to COM object Pin
Antti Keskinen16-Sep-04 0:58
Antti Keskinen16-Sep-04 0:58 
There's only one error in the actual code. The CComPtr is a template class, and should be declared accordingly. Either you have forgotten the < and > signs or the forum is not displaying them. Anyway they should be there.

The linker errors are generated because the GUIDs you define do not explicitly state the precise GUID numbers you wish to use. I couldn't find the IIOConverter interface definition from anywhere, so more than likely you have forgotten to link with the static library that defines these interfaces, or have forgotten to include a necessary header file. Check your settings.

There doesn't seem to be other errors. If you need more help, you need to paste the entire DEFINE_GUID macros, and not just "..." as they might cause the errors as well. Also, you have not defined the IID_IIOConverter properly, thus the error. You can use __uuidof( IIOConverter ) if you don't know the interface's GUID, but know the interface name.

Also remember that in order to use the CComPtr class, include atlcomcli.h. To use CoInitializeEx, include objbase.h and link with ole32.lib. Remember that these are Platform SDK features, so you need to define the correct versioning macros as well. For more information, see MSDN with "Platform SDK, Using the Platform SDK" index word.

Hope this helps

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
QuestionHow to Remove ActiveX from project VC++6 Pin
Sumit Kapoor15-Sep-04 19:20
Sumit Kapoor15-Sep-04 19:20 
AnswerRe: How to Remove ActiveX from project VC++6 Pin
Hardy_Smith15-Sep-04 21:52
Hardy_Smith15-Sep-04 21:52 
GeneralMany Fancy window style in vc++ Pin
vc-programmer-15-Sep-04 19:16
vc-programmer-15-Sep-04 19:16 
GeneralRe: Many Fancy window style in vc++ Pin
ThatsAlok6-May-05 23:35
ThatsAlok6-May-05 23:35 
GeneralSerial Comm in VC++ 6.0 Pin
vc-programmer-15-Sep-04 17:24
vc-programmer-15-Sep-04 17:24 
GeneralRe: Serial Comm in VC++ 6.0 Pin
Colin Urquhart15-Sep-04 17:36
Colin Urquhart15-Sep-04 17:36 
GeneralRe: Serial Comm in VC++ 6.0 Pin
ThatsAlok6-May-05 23:33
ThatsAlok6-May-05 23:33 
General_mkgmtime in msvcrt Pin
Anonymous15-Sep-04 17:04
Anonymous15-Sep-04 17:04 
GeneralTo emmbed Flash (*.swf) into Visual C++ Pin
utnqbao15-Sep-04 16:46
professionalutnqbao15-Sep-04 16:46 
GeneralRe: To emmbed Flash (*.swf) into Visual C++ Pin
rotu16-Sep-04 0:02
rotu16-Sep-04 0:02 
GeneralI can't enumerate my network.Help me, please!!!!!!!! Pin
utnqbao15-Sep-04 16:44
professionalutnqbao15-Sep-04 16:44 
GeneralNew to Visual C++ - Simple Program Help Pin
neoborn15-Sep-04 15:49
neoborn15-Sep-04 15:49 
GeneralRe: New to Visual C++ - Simple Program Help Pin
Christian Graus15-Sep-04 16:24
protectorChristian Graus15-Sep-04 16:24 
GeneralRe: New to Visual C++ - Simple Program Help Pin
neoborn15-Sep-04 18:05
neoborn15-Sep-04 18:05 
GeneralCould really use some suggestions Pin
Tom Wright15-Sep-04 11:49
Tom Wright15-Sep-04 11:49 
GeneralRe: Could really use some suggestions Pin
Christian Graus15-Sep-04 11:59
protectorChristian Graus15-Sep-04 11:59 
GeneralRe: Could really use some suggestions Pin
Tom Wright15-Sep-04 12:20
Tom Wright15-Sep-04 12:20 

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.