Click here to Skip to main content
15,909,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBitmaps again! Pin
Dennis L1-Feb-04 9:10
Dennis L1-Feb-04 9:10 
GeneralRe: Bitmaps again! Pin
CodeBrain2-Feb-04 0:42
CodeBrain2-Feb-04 0:42 
GeneralRe: Bitmaps again! Pin
John R. Shaw2-Feb-04 1:29
John R. Shaw2-Feb-04 1:29 
GeneralCharacters Pin
seth.jackson1-Feb-04 9:03
seth.jackson1-Feb-04 9:03 
GeneralRe: Characters Pin
Robert A. T. Káldy2-Feb-04 13:46
Robert A. T. Káldy2-Feb-04 13:46 
GeneralC++ Question. Pin
WREY1-Feb-04 9:00
WREY1-Feb-04 9:00 
GeneralRe: C++ Question. Pin
Ryan Binns1-Feb-04 17:19
Ryan Binns1-Feb-04 17:19 
GeneralRe: C++ Question. Pin
WREY2-Feb-04 1:34
WREY2-Feb-04 1:34 
Thanks for replying.

What you suggested, was one of several things I had tried prior to posting the question, and was one of the many results that produced a compile error (of one kind or another). (Take my word for it, I tried many different things, including the use of numbers to depict the size of the array.)

Lets give the size of the array (for simplicity sake) a size of 5. The compile error would then read, "cannot convert parameter 1 from 'short [5][5]' to 'short ** '." (That's the error received from trying your suggestion, which I myself had tried long before.)

With regards to your reason why the compiler would never do what I'm trying to accomplish, I have narrowed it down to one of three reasons. But before I get to what they are, allow me to point you to Lippman's "C++ Primer: 3rd Ed." page 348, first line (second sentence) where he states, "When the parameter is a reference to an array type, the array size becomes part of the parameter and argument types, and the compiler checks that the size of the array argument matches the one specified in the function parameter type." He then proceeds to give two examples: one correct and the other, incorrect (for the reader to understand what he's talking about).

Notice also, the compiler did not complain about the way I was passing that kind of parameter and argument. It complained about the way it was being accessed in the "called" function, which brings me around to one of my three reasons why I believe I'm not getting a clean compile.

1. I cannot pass multi-dimensional arrays (of ANY size) this way.

2. The compiler I'm using is out of compliance with the Standard.

3. Lippman is wrong.

Because I've had problems before with this compiler (MS VC6) being out of compliance with the Standard, that suspicion is very plausible. However, in this instance, I more tend to believe it's reason #1.

Bottom line: What you suggested did not work either.

Thanks anyway. I appreciate the suggestion.

Frown | :(

William

Fortes in fide et opere!
GeneralAnother MFC Question Pin
Dev5781-Feb-04 8:57
Dev5781-Feb-04 8:57 
GeneralRe: Another MFC Question Pin
Diddy1-Feb-04 9:03
Diddy1-Feb-04 9:03 
GeneralRe: Another MFC Question Pin
Dev5781-Feb-04 9:45
Dev5781-Feb-04 9:45 
GeneralRe: Another MFC Question Pin
Roger Wright1-Feb-04 10:44
professionalRoger Wright1-Feb-04 10:44 
GeneralRe: Another MFC Question Pin
Roger Allen2-Feb-04 0:53
Roger Allen2-Feb-04 0:53 
General"Volume Control" question Pin
User 66581-Feb-04 8:31
User 66581-Feb-04 8:31 
GeneralRe: "Volume Control" question Pin
Michael P Butler1-Feb-04 9:06
Michael P Butler1-Feb-04 9:06 
GeneralRe: "Volume Control" question Pin
Diddy1-Feb-04 9:10
Diddy1-Feb-04 9:10 
GeneralThanks! Pin
User 66581-Feb-04 9:20
User 66581-Feb-04 9:20 
GeneralProblem With Making New Project Pin
Rassul Yunussov1-Feb-04 7:48
Rassul Yunussov1-Feb-04 7:48 
GeneralRe: Problem With Making New Project Pin
Michael P Butler1-Feb-04 8:07
Michael P Butler1-Feb-04 8:07 
GeneralRe: Problem With Making New Project Pin
anonimous1-Feb-04 22:52
anonimous1-Feb-04 22:52 
GeneralRe: Problem With Making New Project Pin
Michael P Butler1-Feb-04 22:58
Michael P Butler1-Feb-04 22:58 
GeneralRe: Problem With Making New Project Pin
Anonymous1-Feb-04 23:28
Anonymous1-Feb-04 23:28 
GeneralRe: Problem With Making New Project Pin
Rassul Yunussov2-Feb-04 5:39
Rassul Yunussov2-Feb-04 5:39 
GeneralRe: Problem With Making New Project Pin
Michael P Butler2-Feb-04 5:50
Michael P Butler2-Feb-04 5:50 
GeneralRe: Problem With Making New Project Pin
Rassul Yunussov3-Feb-04 5:33
Rassul Yunussov3-Feb-04 5:33 

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.