Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Rendering Performance gets better with Windows Media Player??? Pin
baboguru2-Aug-04 2:48
baboguru2-Aug-04 2:48 
Generalcreating a MS Acess database Pin
si_692-Aug-04 1:52
si_692-Aug-04 1:52 
GeneralRe: creating a MS Acess database Pin
Manfred Staiger2-Aug-04 2:13
Manfred Staiger2-Aug-04 2:13 
GeneralRe: creating a MS Acess database Pin
si_692-Aug-04 2:22
si_692-Aug-04 2:22 
QuestionHow can find free space in hard drive? Pin
Rajesh_K_Sharma2-Aug-04 0:54
Rajesh_K_Sharma2-Aug-04 0:54 
AnswerRe: How can find free space in hard drive? Pin
wb2-Aug-04 1:17
wb2-Aug-04 1:17 
Questionhow to ZOOM a Bmp Picture Pin
Zeeshan Bilal2-Aug-04 0:51
Zeeshan Bilal2-Aug-04 0:51 
GeneralDLL works with C++, but linker error with C Pin
normanS2-Aug-04 0:40
normanS2-Aug-04 0:40 
Hi - I read about InpOut32.dll (dll letting you access I/O ports in Nt / 2000 / XP) on some CodeProject article. The link for the DLL, with source code, is http://www.logix4u.net/inpout32.htm.

I downloaded InpOut32 and copied the relevant lines from their sample CPP application to my "C" application, but I got linker errors as shown below:

TestProg.obj : error LNK2001: unresolved external symbol _Inp32@4<br />
TestProg.obj : error LNK2001: unresolved external symbol _Out32@8<br />
Debug/TestProg.exe : fatal error LNK1120: 2 unresolved externals<br />
Error executing link.exe.


After hours of trying to find differences between my program and the sample program, someone suggested that "C" files and "CPP" files are handled differently. I changed the name of my main program file from TestProg.c to TestProg.cpp, and the project now compiles and runs fine. I made no other changes to the project (same libraries linked, etc.)

Unfortunately, the change from C to CPP compilation affects other parts of the program, so I would like to change the main program back to "C".

What are the differences between how Visual Studio 6 handles "C" files compared to how it handles "CPP" files?

How do I get this DLL to work with my C application?
GeneralPROBLEM SOLVED Pin
normanS2-Aug-04 1:51
normanS2-Aug-04 1:51 
QuestionHow to copy a LPWSTR? Pin
ting6682-Aug-04 0:06
ting6682-Aug-04 0:06 
AnswerRe: How to copy a LPWSTR? Pin
NormDroid2-Aug-04 0:40
professionalNormDroid2-Aug-04 0:40 
AnswerRe: How to copy a LPWSTR? Pin
Milton Karimbekallil2-Aug-04 0:51
Milton Karimbekallil2-Aug-04 0:51 
Questionhow to print a CString Pin
V.1-Aug-04 23:46
professionalV.1-Aug-04 23:46 
AnswerRe: how to print a CString Pin
Roger Allen1-Aug-04 23:59
Roger Allen1-Aug-04 23:59 
GeneralRe: how to print a CString Pin
V.2-Aug-04 2:36
professionalV.2-Aug-04 2:36 
QuestionHow to display part of Meta File Pin
Azghar Hussain1-Aug-04 23:40
professionalAzghar Hussain1-Aug-04 23:40 
QuestionCheck if download? Pin
Larsson1-Aug-04 22:50
Larsson1-Aug-04 22:50 
Question[MFC] How can I print a HTML file using the WebBrowser AcvtiveX? Pin
Erik1-Aug-04 22:49
Erik1-Aug-04 22:49 
GeneralSearch node in IXMLDOMDocument Pin
JensB1-Aug-04 22:46
JensB1-Aug-04 22:46 
GeneralRe: Search node in IXMLDOMDocument Pin
Antony M Kancidrowski2-Aug-04 0:09
Antony M Kancidrowski2-Aug-04 0:09 
GeneralRe: Search node in IXMLDOMDocument Pin
JensB2-Aug-04 1:25
JensB2-Aug-04 1:25 
GeneralRe: Search node in IXMLDOMDocument [modified] Pin
Antony M Kancidrowski2-Aug-04 3:08
Antony M Kancidrowski2-Aug-04 3:08 
GeneralRe: Search node in IXMLDOMDocument Pin
palbano2-Aug-04 6:26
palbano2-Aug-04 6:26 
GeneralRe: Search node in IXMLDOMDocument Pin
JensB2-Aug-04 20:30
JensB2-Aug-04 20:30 
GeneralRe: Search node in IXMLDOMDocument Pin
palbano3-Aug-04 7:52
palbano3-Aug-04 7:52 

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.