Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: map object in STL Pin
ns2-Oct-02 7:48
ns2-Oct-02 7:48 
QuestionIs there a way to send a script file to a server and run it there in VC++ code? Pin
Anonymous2-Oct-02 7:21
Anonymous2-Oct-02 7:21 
AnswerRe: Is there a way to send a script file to a server and run it there in VC++ code? Pin
TyMatthews2-Oct-02 10:54
TyMatthews2-Oct-02 10:54 
GeneralCatch image bar under the mouse Pin
progman2-Oct-02 6:59
progman2-Oct-02 6:59 
Generalmakeing VC project with MINGW Pin
sagmam2-Oct-02 6:49
sagmam2-Oct-02 6:49 
GeneralRe: makeing VC project with MINGW Pin
Mike Eriksson2-Oct-02 21:18
Mike Eriksson2-Oct-02 21:18 
GeneralSTL queue Pin
JohnnyG2-Oct-02 6:32
JohnnyG2-Oct-02 6:32 
GeneralRe: STL queue Pin
TyMatthews2-Oct-02 9:04
TyMatthews2-Oct-02 9:04 
There isn't a max_size limit. There is a max_size() function in the vector and list containers, but they are merely measurements of how many actual elements you can store; it's not something you can purposefully set.

My suggestion would be to check the current size (via the size() method) of the queue before doing a push. If it's already at your maximum size, do your error code there and skip the push.

    Ty


"The significant problems we face cannot be solved at the same level of thinking we were at when we created them." -Albert Einstein


GeneralRe: STL queue Pin
JohnnyG2-Oct-02 10:16
JohnnyG2-Oct-02 10:16 
GeneralRe: STL queue Pin
TyMatthews2-Oct-02 10:34
TyMatthews2-Oct-02 10:34 
GeneralGetting an HWND from an HINSTANCE Pin
Harold Bamford2-Oct-02 6:21
Harold Bamford2-Oct-02 6:21 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Phil J Pearson2-Oct-02 7:14
Phil J Pearson2-Oct-02 7:14 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Chris Richardson2-Oct-02 9:58
Chris Richardson2-Oct-02 9:58 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Harold Bamford2-Oct-02 11:46
Harold Bamford2-Oct-02 11:46 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Chris Richardson2-Oct-02 11:59
Chris Richardson2-Oct-02 11:59 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Phil J Pearson2-Oct-02 12:10
Phil J Pearson2-Oct-02 12:10 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Chris Richardson2-Oct-02 12:19
Chris Richardson2-Oct-02 12:19 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Harold Bamford2-Oct-02 12:20
Harold Bamford2-Oct-02 12:20 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Chris Richardson2-Oct-02 12:40
Chris Richardson2-Oct-02 12:40 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Harold Bamford2-Oct-02 12:48
Harold Bamford2-Oct-02 12:48 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Chris Richardson2-Oct-02 12:55
Chris Richardson2-Oct-02 12:55 
GeneralRe: Getting an HWND from an HINSTANCE Pin
JT Anderson2-Oct-02 13:07
JT Anderson2-Oct-02 13:07 
GeneralRe: Getting an HWND from an HINSTANCE Pin
Harold Bamford3-Oct-02 7:39
Harold Bamford3-Oct-02 7:39 
GeneralSaving File Formats Pin
SanShou2-Oct-02 6:17
SanShou2-Oct-02 6:17 
GeneralRe: Saving File Formats Pin
JohnnyG2-Oct-02 6:38
JohnnyG2-Oct-02 6:38 

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.