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

C / C++ / MFC

 
GeneralIClassFactory2 Pin
Raphael Amorim14-Feb-03 3:59
professionalRaphael Amorim14-Feb-03 3:59 
GeneralRe: IClassFactory2 Pin
Jörgen Sigvardsson14-Feb-03 11:28
Jörgen Sigvardsson14-Feb-03 11:28 
GeneralPc without Visual C++ crashes wenn writing/reading files Pin
Willem B14-Feb-03 3:51
Willem B14-Feb-03 3:51 
GeneralRe: Pc without Visual C++ crashes wenn writing/reading files Pin
AlexO14-Feb-03 4:31
AlexO14-Feb-03 4:31 
GeneralRe: Pc without Visual C++ crashes wenn writing/reading files Pin
Roger Allen14-Feb-03 4:31
Roger Allen14-Feb-03 4:31 
Generalwin 32 app to have 2 Windows instead of 1 window and 1 dialog Pin
nitingonsalves14-Feb-03 2:56
nitingonsalves14-Feb-03 2:56 
GeneralRe: win 32 app to have 2 Windows instead of 1 window and 1 dialog Pin
Iain Clarke, Warrior Programmer14-Feb-03 3:12
Iain Clarke, Warrior Programmer14-Feb-03 3:12 
GeneralRe: win 32 app to have 2 Windows instead of 1 window and 1 dialog Pin
nitingonsalves14-Feb-03 4:00
nitingonsalves14-Feb-03 4:00 
Thanks for your quick reply.
But, what would I do about this function and the accelerators?

int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
MSG msg;
HACCEL hAccelTable;

// Initialize global strings
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadString(hInstance, IDC_TRIAL, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance);

// Perform application initialization:
if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}

hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_TRIAL);

// Main message loop:
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return (int) msg.wParam;
}

Thanks
GeneralRe: win 32 app to have 2 Windows instead of 1 window and 1 dialog Pin
nitingonsalves14-Feb-03 4:08
nitingonsalves14-Feb-03 4:08 
GeneralRe: win 32 app to have 2 Windows instead of 1 window and 1 dialog Pin
Hans Ruck14-Feb-03 5:17
Hans Ruck14-Feb-03 5:17 
GeneralRe: win 32 app to have 2 Windows instead of 1 window and 1 dialog Pin
nitingonsalves14-Feb-03 5:25
nitingonsalves14-Feb-03 5:25 
GeneralRe: win 32 app to have 2 Windows instead of 1 window and 1 dialog Pin
Hans Ruck14-Feb-03 6:18
Hans Ruck14-Feb-03 6:18 
GeneralCFileDialog default folder Pin
Martyn Pearson14-Feb-03 0:48
Martyn Pearson14-Feb-03 0:48 
GeneralRe: CFileDialog default folder Pin
HENDRIK R14-Feb-03 0:59
HENDRIK R14-Feb-03 0:59 
GeneralRe: CFileDialog default folder Pin
Martyn Pearson14-Feb-03 1:03
Martyn Pearson14-Feb-03 1:03 
GeneralRe: CFileDialog default folder Pin
HENDRIK R14-Feb-03 1:21
HENDRIK R14-Feb-03 1:21 
QuestionHow to set Excel App Invisible Pin
SPGV14-Feb-03 0:43
SPGV14-Feb-03 0:43 
GeneralDPI control Pin
dennisV14-Feb-03 0:29
dennisV14-Feb-03 0:29 
GeneralSymbol already defined in object / Global variables Pin
-Dy14-Feb-03 0:16
-Dy14-Feb-03 0:16 
GeneralRe: Symbol already defined in object / Global variables Pin
Michael Dunn14-Feb-03 0:27
sitebuilderMichael Dunn14-Feb-03 0:27 
QuestionHow to grab text from text-based apps/objects?!?!!? Solution = money! Pin
Tommy Svensson13-Feb-03 23:57
Tommy Svensson13-Feb-03 23:57 
AnswerRe: How to grab text from text-based apps/objects?!?!!? Solution = money! Pin
MAAK14-Feb-03 1:11
MAAK14-Feb-03 1:11 
GeneralEnhanced MetaFile Pin
satyavasu13-Feb-03 22:59
satyavasu13-Feb-03 22:59 
Generalabstracting to IDispatch Pin
Zizilamoroso13-Feb-03 22:59
Zizilamoroso13-Feb-03 22:59 
GeneralCompare two bitmap Pin
jeremysay13-Feb-03 22:55
jeremysay13-Feb-03 22:55 

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.