Click here to Skip to main content
15,908,020 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to get the size of an array Pin
Bob Stanneveld5-Sep-05 9:44
Bob Stanneveld5-Sep-05 9:44 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:33
Jose Lamas Rios5-Sep-05 16:33 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:07
Jose Lamas Rios5-Sep-05 16:07 
AnswerRe: how to get the size of an array Pin
toxcct5-Sep-05 21:20
toxcct5-Sep-05 21:20 
AnswerRe: how to get the size of an array Pin
Waleed Eissa6-Sep-05 4:56
Waleed Eissa6-Sep-05 4:56 
QuestionDraw Icon In Combo Box Pin
Skute5-Sep-05 5:58
Skute5-Sep-05 5:58 
QuestionDynamic Disk Pin
sanjaylk5-Sep-05 5:53
sanjaylk5-Sep-05 5:53 
QuestionVC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 5:24
professionalRavi Bhavnani5-Sep-05 5:24 
Amazingly, this code seems to compile without errors in VC6.  Are you able to repro this or am I doing something stupid?
#include "stdafx.h"
 
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
 
<code>//////////////////////////////////////
// The one and only application object</code>
CWinApp theApp;
 
void foo
  (CString str)
{
}
 
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
  <code>// Initialize MFC and print and error on failure</code>
  if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)) {
      printf ("Fatal Error: MFC initialization failed");
      return (1);
  }
 
  unsigned int x = 1;
  foo (x);  <code>// <-- no compiler error generated</code>
  foo (1);  <code>// <-- no compiler error generated</code>
 
  return (0);
}
/ravi

My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com

AnswerRe: VC6 compiler bug? Pin
Gary R. Wheeler5-Sep-05 5:35
Gary R. Wheeler5-Sep-05 5:35 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 5:45
professionalRavi Bhavnani5-Sep-05 5:45 
GeneralRe: VC6 compiler bug? Pin
Gary R. Wheeler5-Sep-05 5:49
Gary R. Wheeler5-Sep-05 5:49 
GeneralRe: VC6 compiler bug? Pin
Bob Stanneveld5-Sep-05 9:46
Bob Stanneveld5-Sep-05 9:46 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 9:53
professionalRavi Bhavnani5-Sep-05 9:53 
QuestionHelp on WebBrowser Pin
Cao Jianlin5-Sep-05 5:05
Cao Jianlin5-Sep-05 5:05 
QuestionRegistry Editing C++ Pin
u6ik5-Sep-05 5:03
u6ik5-Sep-05 5:03 
AnswerRe: Registry Editing C++ Pin
u6ik5-Sep-05 6:44
u6ik5-Sep-05 6:44 
QuestionAbout MS Access Database in vc++:==Plz Help Pin
parims5-Sep-05 3:13
parims5-Sep-05 3:13 
AnswerRe: About MS Access Database in vc++:==Plz Help Pin
Marc Soleda5-Sep-05 3:39
Marc Soleda5-Sep-05 3:39 
QuestionRemove Device Pin
Peter Prescher5-Sep-05 2:56
Peter Prescher5-Sep-05 2:56 
QuestionChanging Color of Ctrl Pin
Identity Undisclosed5-Sep-05 2:40
Identity Undisclosed5-Sep-05 2:40 
AnswerRe: Changing Color of Ctrl Pin
toxcct5-Sep-05 2:48
toxcct5-Sep-05 2:48 
AnswerRe: Changing Color of Ctrl Pin
seq-5-Sep-05 11:11
seq-5-Sep-05 11:11 
QuestionCHttp Pin
Tcpip20055-Sep-05 2:15
Tcpip20055-Sep-05 2:15 
AnswerRe: CHttpFile Pin
Tcpip20055-Sep-05 2:19
Tcpip20055-Sep-05 2:19 
GeneralRe: CHttpFile Pin
Neagoe Gabriel5-Sep-05 2:42
Neagoe Gabriel5-Sep-05 2:42 

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.