Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with CFileFind in a NT Service Pin
Anders Molin27-Nov-00 4:18
professionalAnders Molin27-Nov-00 4:18 
QuestionHow to use storeproc and transaction in ODBC API? Pin
26-Nov-00 1:05
suss26-Nov-00 1:05 
GeneralGraphics in C++ Pin
25-Nov-00 22:31
suss25-Nov-00 22:31 
GeneralRe: Graphics in C++ Pin
Christian Graus26-Nov-00 16:30
protectorChristian Graus26-Nov-00 16:30 
GeneralFunny Error Pin
25-Nov-00 9:04
suss25-Nov-00 9:04 
GeneralRe: Funny Error Pin
Rick Benish25-Nov-00 9:42
Rick Benish25-Nov-00 9:42 
GeneralRe: Funny Error Pin
Rick Benish25-Nov-00 9:45
Rick Benish25-Nov-00 9:45 
GeneralRe: Funny Error Pin
Tim Deveaux25-Nov-00 9:43
Tim Deveaux25-Nov-00 9:43 
Oh ouch... yuck...

Well, you'll have to do a bit of searching here. The LNK2005 indicates that you have more than one definition of ghWndMain. See the docs on LNK2005 for ideas. ghWndMain is declared in HOOK.C and should be extern to other modules. BTW sometimes you can use the FORCE switch to override this, but not a great idea.

But hey - maybe all of this stems from the fact that you are trying to use the C++ compiler to compile the WINCAP C sample - or at least integrate into your code(?). If you are not using MFC and stuff, you might be better off using C - if there are only C files in your project, you'll see much different results.

hmmm... might need an extern HINSTANCE ghInst; in dlgopen.c...

BTW with C++, you might also need to use extern "C" HANDLE var; in certain places instead of just extern HANDLE var; - this will turn off the name mangling and might help.

Maybe someone else has experience with this sample and using / porting it to C++.
GeneralRe: Funny Error Pin
25-Nov-00 12:21
suss25-Nov-00 12:21 
GeneralRe: Funny Error Pin
25-Nov-00 12:21
suss25-Nov-00 12:21 
GeneralRe: Funny Error Pin
Tim Deveaux25-Nov-00 13:10
Tim Deveaux25-Nov-00 13:10 
GeneralRe: Funny Error Pin
25-Nov-00 13:28
suss25-Nov-00 13:28 
GeneralRe: Funny Error Pin
25-Nov-00 12:29
suss25-Nov-00 12:29 
GeneralRe: Funny Error Pin
25-Nov-00 13:21
suss25-Nov-00 13:21 
GeneralRe: Funny Error Pin
25-Nov-00 13:21
suss25-Nov-00 13:21 
GeneralError Again! Pin
24-Nov-00 20:51
suss24-Nov-00 20:51 
GeneralRe: Error Again! Pin
Rick Benish24-Nov-00 23:25
Rick Benish24-Nov-00 23:25 
GeneralEye Candy Idea needed Pin
ColinDavies24-Nov-00 15:32
ColinDavies24-Nov-00 15:32 
GeneralRe: Eye Candy Idea needed Pin
Wolfram Steinke24-Nov-00 21:47
Wolfram Steinke24-Nov-00 21:47 
GeneralRe: Eye Candy Idea needed Pin
ColinDavies25-Nov-00 19:25
ColinDavies25-Nov-00 19:25 
GeneralRe: Eye Candy Idea needed Pin
26-Nov-00 4:23
suss26-Nov-00 4:23 
GeneralRe: Eye Candy Idea needed Pin
30-Nov-00 3:32
suss30-Nov-00 3:32 
GeneralRe: Eye Candy Idea needed Pin
NormDroid30-Nov-00 4:54
professionalNormDroid30-Nov-00 4:54 
Generalstream to and from a rich edit control Pin
24-Nov-00 13:27
suss24-Nov-00 13:27 
GeneralRe: stream to and from a rich edit control Pin
27-Nov-00 7:11
suss27-Nov-00 7:11 

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.