Click here to Skip to main content
15,886,772 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
DavJes7-Feb-11 1:47
DavJes7-Feb-11 1:47 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
Hans Dietrich7-Feb-11 2:07
mentorHans Dietrich7-Feb-11 2:07 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
CPallini7-Feb-11 3:00
mveCPallini7-Feb-11 3:00 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
Stefan_Lang8-Feb-11 1:36
Stefan_Lang8-Feb-11 1:36 
Question"Could not find field 'Description'" error in access database. Pin
Le@rner7-Feb-11 1:21
Le@rner7-Feb-11 1:21 
AnswerRe: "Could not find field 'Description'" error in access database. Pin
David Crow7-Feb-11 8:47
David Crow7-Feb-11 8:47 
QuestionProblem using const float ** Pin
Alex80gbg6-Feb-11 22:41
Alex80gbg6-Feb-11 22:41 
AnswerRe: Problem using const float ** Pin
Stefan_Lang6-Feb-11 23:18
Stefan_Lang6-Feb-11 23:18 
The problem here is that the const qualifier does not apply to what you think it does: the next symbol next to const is float in both cases, so the compiler interprets these types as "pointer to const float" in the first case, and "pointer to pointer of const float" in the second.

In the first case, when you pass a pointer of type float*, the compiler will cast it to const float*, since casting a pointer of a non-const type to a pointer to const values of the same type is valid.

In the second case, the compiler cannot make that cast implicitely, as that would require casting a pointer to pointers of one type to a pointer to pointers of another type, which is a different animal. Implicit conversion only works so far - you sometimes have to help the compiler along. Smile | :)

Of course, you might not have meant the float elements to be the const part in this call, but rather the pointers to the floats? If so, you need to shift the const to the right location. Else the solution is as simple as making an explicit type cast.
AnswerRe: Problem using const float ** Pin
Andrew Brock6-Feb-11 23:41
Andrew Brock6-Feb-11 23:41 
QuestionDoModal [modified] Pin
john56326-Feb-11 20:16
john56326-Feb-11 20:16 
AnswerRe: DoModal Pin
Cedric Moonen6-Feb-11 21:30
Cedric Moonen6-Feb-11 21:30 
QuestionHow to provent text selection in CComboBox ? Pin
mesajflaviu6-Feb-11 20:01
mesajflaviu6-Feb-11 20:01 
AnswerRe: How to provent text selection in CComboBox ? Pin
mesajflaviu6-Feb-11 20:20
mesajflaviu6-Feb-11 20:20 
QuestionRe: How to provent text selection in CComboBox ? Pin
David Crow7-Feb-11 3:27
David Crow7-Feb-11 3:27 
AnswerRe: How to provent text selection in CComboBox ? Pin
mesajflaviu7-Feb-11 5:06
mesajflaviu7-Feb-11 5:06 
QuestionReading the file that create from "Print to file" option Pin
Max++6-Feb-11 16:09
Max++6-Feb-11 16:09 
AnswerRe: Reading the file that create from "Print to file" option Pin
Andrew Brock6-Feb-11 18:38
Andrew Brock6-Feb-11 18:38 
Questionhello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
leech4ever6-Feb-11 13:49
leech4ever6-Feb-11 13:49 
AnswerRe: hello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
«_Superman_»6-Feb-11 15:13
professional«_Superman_»6-Feb-11 15:13 
AnswerRe: hello, anyone have an idea of a code in MFC to shut down with time the pc ? in Vs 2008 ? Pin
Andrew Brock6-Feb-11 15:23
Andrew Brock6-Feb-11 15:23 
QuestionHow to make a book provision for multiple authors Pin
Horace Cheng6-Feb-11 11:49
Horace Cheng6-Feb-11 11:49 
AnswerRe: How to make a book provision for multiple authors Pin
Maximilien6-Feb-11 17:11
Maximilien6-Feb-11 17:11 
AnswerRe: How to make a book provision for multiple authors Pin
Richard MacCutchan6-Feb-11 22:08
mveRichard MacCutchan6-Feb-11 22:08 
QuestionBluetooth socket programming Pin
Pranit Kothari6-Feb-11 7:05
Pranit Kothari6-Feb-11 7:05 
AnswerRe: Bluetooth socket programming Pin
Cool_Dev6-Feb-11 18:12
Cool_Dev6-Feb-11 18:12 

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.