Click here to Skip to main content
16,005,734 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Deque using elements from a class [modified] Pin
George L. Jackson4-Oct-07 5:54
George L. Jackson4-Oct-07 5:54 
GeneralRe: Deque using elements from a class Pin
led mike4-Oct-07 6:20
led mike4-Oct-07 6:20 
GeneralRe: Deque using elements from a class Pin
George L. Jackson4-Oct-07 6:32
George L. Jackson4-Oct-07 6:32 
GeneralRe: Deque using elements from a class Pin
led mike4-Oct-07 7:20
led mike4-Oct-07 7:20 
AnswerRe: Deque using elements from a class Pin
led mike4-Oct-07 6:17
led mike4-Oct-07 6:17 
AnswerRe: Deque using elements from a class Pin
John R. Shaw4-Oct-07 12:24
John R. Shaw4-Oct-07 12:24 
GeneralRe: Deque using elements from a class Pin
PolarFuzz5-Oct-07 8:35
PolarFuzz5-Oct-07 8:35 
GeneralRe: Deque using elements from a class Pin
John R. Shaw5-Oct-07 21:57
John R. Shaw5-Oct-07 21:57 
I have seen that error many times, but all I know at the moment is that something is missing. The error message is [technically] wrong! My first thought was that you did not use “std::deque”, or a using statement (I never do in C++), but that was wrong. Look in your header file and try to see if you are missing something; that is my first reaction. Beyond that I do not know, because I have always found the problem and did not bother to think about it beyond that. You have a syntax error, some minor one, but one just the same.

As noted in my last post, I highly recommend that you stop using “char*” and start using “std::string” for the reasons I gave. The method in your original post mixed C and C++, and the C++ solution (STL) for handling strings is much better if memory allocation is involved.

If you gave the error number it might help a little, and I stress little, because the description you just gave (this time) is good enough. The exact cause could be a number of things (I think), but unless you (meaning myself) are the one doing the debugging, it is unpredictable.

Most of the time that you find yourself doing a work-around, there is something wrong with the original code or you are making some minor mistake (which I do not see).

I know that was of no help, but please consider what I said about “std::string”. Even if you only use them internally to your class, you will save yourself a lot of trouble.

P.S. Also make those parameters constant (“const char*”).


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: Deque using elements from a class Pin
PolarFuzz8-Oct-07 2:05
PolarFuzz8-Oct-07 2:05 
Questionwhat is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 5:07
carabutnicolae12344-Oct-07 5:07 
QuestionRe: what is the API that MS Office is calling to save a file under a different name ? Pin
David Crow4-Oct-07 5:34
David Crow4-Oct-07 5:34 
AnswerRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 5:52
carabutnicolae12344-Oct-07 5:52 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
David Crow4-Oct-07 6:38
David Crow4-Oct-07 6:38 
AnswerRe: what is the API that MS Office is calling to save a file under a different name ? Pin
Mark Salsbery4-Oct-07 5:53
Mark Salsbery4-Oct-07 5:53 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 6:06
carabutnicolae12344-Oct-07 6:06 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
Mark Salsbery4-Oct-07 6:13
Mark Salsbery4-Oct-07 6:13 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 6:15
carabutnicolae12344-Oct-07 6:15 
QuestionHow to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 4:39
hvanzyll4-Oct-07 4:39 
QuestionRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 5:56
Mark Salsbery4-Oct-07 5:56 
AnswerRe: How to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 6:05
hvanzyll4-Oct-07 6:05 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 6:19
Mark Salsbery4-Oct-07 6:19 
GeneralRe: How to draw bitmaps without access to HDC or HWND [modified] Pin
hvanzyll4-Oct-07 6:27
hvanzyll4-Oct-07 6:27 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 6:54
Mark Salsbery4-Oct-07 6:54 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 6:57
hvanzyll4-Oct-07 6:57 
Questionwhat can send WM_ERASEBKGND? Pin
dawka19064-Oct-07 4:05
dawka19064-Oct-07 4: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.