Solved

Need help getting this makefile to work

Posted on 2004-08-25
10
428 Views
Last Modified: 2010-05-18
In the Microsoft Platform SDK samples, there is a sample LSP program that I am trying to get to work.  It comes with a Makefile, but when I try and make it, I get the error:

makefile(5) : fatal error U1083: target macro '' expands to nothing

Here is what the makefile looks like:

!include <win32.mak>

all: $(OUTDIR) $(OUTDIR)\lsp.dll $(OUTDIR)\instlsp.exe

$(OUTDIR):
    if not exist "$(OUTDIR)/$(NULL)" mkdir $(OUTDIR)

DLL_OBJS=  $(OUTDIR)\spi.obj        \
           $(OUTDIR)\extension.obj  \
           $(OUTDIR)\overlap.obj    \
           $(OUTDIR)\provider.obj   \
           $(OUTDIR)\sockinfo.obj   \
           $(OUTDIR)\lspguid.obj    \
           $(OUTDIR)\asyncselect.obj

INSTALL_OBJS= $(OUTDIR)\instlsp.obj     \
              $(OUTDIR)\lspguid.obj     \
              $(OUTDIR)\prnpinfo.obj    \
              $(OUTDIR)\provider.obj

LIBS= ws2_32.lib ole32.lib rpcrt4.lib

.cpp{$(OUTDIR)}.obj:
      $(cc) $(cdebug) $(cflags) $(cvarsmt) -DSTRICT -DFD_SETSIZE=1024 $(cvarsdll) /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" $**

$(OUTDIR)\lsp.dll: $(DLL_OBJS)
      $(link) $(linkdebug) $(dlllflags) -def:lsp.def \
      -out:$*.dll -pdb:$*.pdb $(guilibsdll) $** $(LIBS)
        copy $*.dll %SYSTEMROOT%\System32

$(OUTDIR)\instlsp.exe: $(INSTALL_OBJS)
    $(link) $(linkdebug) $(conlflags) -out:$*.exe $** $(LIBS)

clean:
    rmdir /s /q $(OUTDIR)

This is in the platform SDK folder:
C:\Program Files\Microsoft SDK\Samples\netds\WinSock\LSP\
0
Comment
Question by:lwinkenb
  • 5
  • 4
10 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 11897309
Try to add

!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF

OUTDIR=.\Output

after

!include <win32.mak>
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 11897395
Well it tried to compile after that, but got caught up in a bunch of errors.  I can't help but think I am doing something wrong, since I would think that microsoft would give the example ready to compile.

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        if not exist ".\Output/" mkdir .\Output
        cl -Z7 -Od -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D
_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32  -D_WIN3
2 -D_MT -MT -DSTRICT -DFD_SETSIZE=1024 -DWIN32  -D_WIN32 -D_MT -D_DLL -MD /Fo".\
Output\\" /Fd".\Output\\" spi.cpp
Command line warning D4025 : overriding '/MT' with '/MD'
spi.cpp
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(69) : error C206
5: 'SOCKET' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(69) : error C214
6: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(69) : warning C4
229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(73) : error C205
9: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(89) : error C214
6: syntax error : missing ')' before identifier 'hSocket'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(89) : warning C4
229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(96) : error C205
9: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(101) : error C21
46: syntax error : missing ')' before identifier 'sListenSocket'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(101) : warning C
4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(109) : error C20
59: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(131) : error C21
46: syntax error : missing ')' before identifier 'hSocket'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(131) : error C21
65: 'left-side modifier' : cannot modify pointers to data
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(131) : error C20
71: 'LPFN_TRANSMITFILE' : illegal storage class
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(138) : error C20
59: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(146) : error C21
46: syntax error : missing ')' before identifier 'sListenSocket'
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(146) : error C21
65: 'left-side modifier' : cannot modify pointers to data
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(146) : error C20
71: 'LPFN_ACCEPTEX' : illegal storage class
C:\Program Files\Microsoft Visual Studio\VC98\include\mswsock.h(154) : error C20
59: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(85) : error C23
78: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(101) : error C2
146: syntax error : missing ';' before identifier 'fd_array'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(101) : error C2
501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(101) : error C2
501: 'fd_array' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(104) : error C2
059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1422) : error C
2143: syntax error : missing ';' before '__stdcall'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1422) : error C
2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1422) : error C
2370: 'SOCKET' : redefinition; different storage class
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1424) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1424) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1424) : error C
2501: 'accept' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1427) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1445) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1445) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1445) : error C
2491: 'bind' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1448) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1467) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1467) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1467) : error C
2491: 'closesocket' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1467) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1483) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1483) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1483) : error C
2491: 'connect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1486) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1504) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1504) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1504) : error C
2491: 'ioctlsocket' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1507) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1525) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1525) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1525) : error C
2491: 'getpeername' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1528) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1546) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1546) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1546) : error C
2491: 'getsockname' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1549) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1567) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1567) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1567) : error C
2491: 'getsockopt' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1572) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1660) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1660) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1660) : error C
2491: 'listen' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1662) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1713) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1713) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1713) : error C
2491: 'recv' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1717) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1736) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1736) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1736) : error C
2491: 'recvfrom' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1742) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1788) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1788) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1788) : error C
2491: 'send' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1792) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1811) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1811) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1811) : error C
2491: 'sendto' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1817) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1838) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1838) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1838) : error C
2491: 'setsockopt' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1843) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1863) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1863) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1863) : error C
2491: 'shutdown' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1865) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1880) : error C
2143: syntax error : missing ';' before '__stdcall'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1880) : error C
2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(1880) : error C
2370: 'SOCKET' : redefinition; different storage class
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2349) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2349) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2349) : error C
2491: 'WSAAsyncSelect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2353) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2399) : error C
2143: syntax error : missing ';' before '__stdcall'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2399) : error C
2501: 'SOCKET' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2399) : error C
2370: 'SOCKET' : redefinition; different storage class
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2401) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2401) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2401) : error C
2501: 'WSAAccept' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2406) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2443) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2443) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2443) : error C
2491: 'WSAConnect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2450) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2489) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2489) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2489) : error C
2491: 'WSADuplicateSocketA' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2492) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2497) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2497) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2497) : error C
2491: 'WSADuplicateSocketW' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2500) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2535) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2535) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2535) : error C
2491: 'WSAEnumNetworkEvents' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2538) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2602) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2602) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2602) : error C
2491: 'WSAEventSelect' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2605) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2623) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2623) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2623) : error C
2491: 'WSAGetOverlappedResult' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2628) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2648) : error C
2146: syntax error : missing ')' before identifier 's'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2648) : warning
 C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2648) : error C
2491: 'WSAGetQOSByName' : definition of dllimport data not allowed
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2651) : error C
2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(2651) : fatal e
rror C1003: error count exceeds 100; stopping compilation
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
0
 
LVL 86

Expert Comment

by:jkr
ID: 11897407
>> Well it tried to compile after that, but got caught up in a bunch of errors.

Hm, they're unrelated to the makefile issue. Have you updated your PSDK also?
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 11897442
Yeah, I just downloaded it last night.
All the errors listed above appear to be from the Visual C++ include files, and not the platform SDK include files.  Could that be part of the problem?  Shouldnt the program be using the platform SDK version of winsock2.h instead of the VC++ version?
0
 
LVL 86

Expert Comment

by:jkr
ID: 11898973
Try to build with the /e option and check from where the include files are being read...
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 86

Expert Comment

by:jkr
ID: 11907503
Actually, /P ("preprocess to file") might be more efficiant.
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 11909845
Now I'm confused...

I got a new harddrive yesterday, so I reinstalled windows and everything on it.  This time after downloading the platform sdk, the Makefile compiled everything fine without making any changes at all to it.

It placed the output files in the
/WIN2000_DEBUG/ directory, so I guess that OUTDIR was set to /WIN2000_DEBUG
How does OUTDIR get set?  Im not an expert at reading Makefiles, but it doesn't appear that OUTDIR is getting set in there.
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 11909853
Also, how would I do a release build instead of a debug build?
(I realize Im compounding questions into one thread.  I'll create a new topic if necessary).
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 11909863
bah, I think I answered many of my questions.
OUTDIR is set in Win32.mak.  To compile a release build, I did:
nmake NODEBUG=true

0
 

Expert Comment

by:replylalit
ID: 20538811
I am facing exactly the same problem can you please give me the location from which you installed the SDK, the hyperlink..PLEASE...


The location from where i was downloading is broken and stops when not able to find a CAB file
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now