Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: TextBox creation, w/o resource editor? Pin
mla15426-Dec-06 5:58
mla15426-Dec-06 5:58 
AnswerRe: TextBox creation, w/o resource editor? Pin
Mark Salsbery26-Dec-06 6:00
Mark Salsbery26-Dec-06 6:00 
GeneralRe: Thanks Pin
mla15426-Dec-06 6:46
mla15426-Dec-06 6:46 
GeneralRe: TextBox creation, w/o resource editor? Pin
prasad_som26-Dec-06 18:07
prasad_som26-Dec-06 18:07 
GeneralRe: Thanks Pin
mla15427-Dec-06 2:06
mla15427-Dec-06 2:06 
GeneralRe: Thanks Pin
prasad_som27-Dec-06 2:30
prasad_som27-Dec-06 2:30 
AnswerRe: TextBox creation, w/o resource editor? Pin
Hamid_RT26-Dec-06 6:35
Hamid_RT26-Dec-06 6:35 
QuestionProblem with Debug compiler after installing LIB files Pin
ndfspeed197126-Dec-06 4:04
ndfspeed197126-Dec-06 4:04 
Hi Everyone,

Many thanks in advance for all your help.

Compiler is a Visual C++ 6.0 SP6
machine Dell 3GHz 1 GB memory.
XP Pro

The whole problem started once I decided to include two LIB files to my program. These LIB files are not run unless the user goes into a 3rd CDialog menu and then presses the Start button underneath it. The two LIB files do there jobs and then release the resources and everything is fine. When I made the implementation the compiler gave me some problems and with a help of a college we got the release version to work but the Debug section just doesn't work.

Here are some symptoms:

After Compiling I get this error
Linking...
LINK : warning LNK4098: defaultlib "nafxcw.lib" conflicts with use of other libs; use /NODEFAULTLIB:library

After i press the "Run Debugger" button:
Debug Assertion Failure
Program : C:\WinTAP_Debug.exe
File : appui.cpp
Line 91

After pressing "Retry" then it will take me to this line of code

CDocument* CWinApp::OpenDocumentFile(LPCTSTR lpszFileName)
{
ASSERT(m_pDocManager != NULL); //****->it will point me to this line
return m_pDocManager->OpenDocumentFile(lpszFileName);
}

in the APPUI.cpp file.

I abort after this.

It also points me a line of code in my watch list
ntohs(the_data->data[0])
This is a function that I use in many places of my code but cant seem to find where exactly it is coming from. This is a simple conversion function that has a struct attached to it.

If i step into it then I get
Access Violation 0x0000005


The project settings are:
General TAB **********************************
Use MFC in Static Lib

Link tab************************
Link->Input->Object/Selection module = are the LIB files I included.
TrackerLIB.lib ScanClasssLIB.lib

Ignore Lib section
libc.lib,libcmt.lib,msvcrt.lib,libcd.lib,msvcrtd.lib

Project options has the following
TrackerLIB.lib ScanClasssLIB.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/WinTAP_Debug.pdb" /debug /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libcmt.lib" /nodefaultlib:"msvcrt.lib" /nodefaultlib:"libcd.lib" /nodefaultlib:"msvcrtd.lib" /out:"\WinTAP_Debug.exe" /pdbtype:sept

Link->Customize
\WinTAP_Debug.exe

C++ Tab****************************
Code Generation
Blend
Debug Multithreaded

Project options
/nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fp"Debug/SurvailanceRadarDataFilter.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c

I checked the LIB projects and they are also Multithreaded.

So what is this really. I never had a problem like this.

Many thanks in advance.


ndfspeed
AnswerRe: Problem with Debug compiler after installing LIB files Pin
ndfspeed197126-Dec-06 4:08
ndfspeed197126-Dec-06 4:08 
GeneralRe: Problem with Debug compiler after installing LIB files Pin
Mark Salsbery26-Dec-06 5:53
Mark Salsbery26-Dec-06 5:53 
Questionhow to code a c++ only accept digit with limit? Pin
Member 367224126-Dec-06 3:18
Member 367224126-Dec-06 3:18 
AnswerRe: how to code a c++ only accept digit with limit? Pin
John R. Shaw26-Dec-06 4:43
John R. Shaw26-Dec-06 4:43 
QuestionCan't use Undo in Edit View Pin
Max++26-Dec-06 3:07
Max++26-Dec-06 3:07 
AnswerRe: Can't use Undo in Edit View Pin
prasad_som26-Dec-06 4:33
prasad_som26-Dec-06 4:33 
GeneralRe: Can't use Undo in Edit View Pin
Max++26-Dec-06 4:46
Max++26-Dec-06 4:46 
GeneralRe: Can't use Undo in Edit View Pin
Max++26-Dec-06 5:44
Max++26-Dec-06 5:44 
AnswerRe: Can't use Undo in Edit View Pin
prasad_som26-Dec-06 18:12
prasad_som26-Dec-06 18:12 
GeneralRe: Can't use Undo in Edit View Pin
karle26-Dec-06 8:33
karle26-Dec-06 8:33 
QuestionHow to get files and folders name of windows\\system32 directory for Windows XP 64 bit OS by programming Pin
ashtwin26-Dec-06 2:43
ashtwin26-Dec-06 2:43 
AnswerRe: How to get files and folders name of windows\\system32 directory for Windows XP 64 bit OS by programming Pin
Michael Dunn26-Dec-06 15:55
sitebuilderMichael Dunn26-Dec-06 15:55 
AnswerRe: How to get files and folders name of windows\\system32 directory for Windows XP 64 bit OS by programming Pin
ashtwin26-Dec-06 23:26
ashtwin26-Dec-06 23:26 
QuestionUDP multicast problem Pin
eli1502197926-Dec-06 2:21
eli1502197926-Dec-06 2:21 
AnswerRe: UDP multicast problem Pin
Mark Salsbery26-Dec-06 5:58
Mark Salsbery26-Dec-06 5:58 
QuestionStopping user interaction from dialogs. How ? Pin
Sakthiu26-Dec-06 1:31
Sakthiu26-Dec-06 1:31 
QuestionRe: Stopping user interaction from dialogs. How ? Pin
prasad_som26-Dec-06 2:05
prasad_som26-Dec-06 2:05 

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.