Click here to Skip to main content
15,911,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: convert double to Integer????????? Pin
jhwurmbach2-Feb-04 23:03
jhwurmbach2-Feb-04 23:03 
Questionhow can i find sqlcli1.h? Pin
google732-Feb-04 18:05
google732-Feb-04 18:05 
AnswerRe: how can i find sqlcli1.h? Pin
Roger Wright2-Feb-04 18:22
professionalRoger Wright2-Feb-04 18:22 
GeneralRe: how can i find sqlcli1.h? Pin
google732-Feb-04 18:47
google732-Feb-04 18:47 
QuestionProgram not responding? Pin
Xzyx987X2-Feb-04 17:46
Xzyx987X2-Feb-04 17:46 
Generalansi/iso C++ compiler Pin
Anonymous2-Feb-04 17:33
Anonymous2-Feb-04 17:33 
GeneralRe: ansi/iso C++ compiler Pin
valikac2-Feb-04 17:35
valikac2-Feb-04 17:35 
GeneralRe: ansi/iso C++ compiler Pin
Joe Woodbury2-Feb-04 18:23
professionalJoe Woodbury2-Feb-04 18:23 
GeneralRe: ansi/iso C++ compiler Pin
jhwurmbach2-Feb-04 23:08
jhwurmbach2-Feb-04 23:08 
GeneralRe: ansi/iso C++ compiler Pin
Nemanja Trifunovic3-Feb-04 5:18
Nemanja Trifunovic3-Feb-04 5:18 
Generalcompilie error: error C2955: 'modulus' : use of class template requires template argument list Pin
Sheetal S P2-Feb-04 17:21
sussSheetal S P2-Feb-04 17:21 
GeneralRe: compilie error: error C2955: 'modulus' : use of class template requires template argument list Pin
jan larsen3-Feb-04 1:45
jan larsen3-Feb-04 1:45 
GeneralCRectTracker+CScrollView="going crazy!!!" Pin
Gavriloaie Andrei2-Feb-04 16:34
Gavriloaie Andrei2-Feb-04 16:34 
Generaltypedef vector<vector<vector<double> > > vMatrix; Pin
closecall2-Feb-04 15:52
closecall2-Feb-04 15:52 
GeneralRe: typedef vector<vector<vector<double> > > vMatrix; Pin
ZoogieZork2-Feb-04 19:10
ZoogieZork2-Feb-04 19:10 
GeneralRegisterHotKey function Pin
zephyr1232-Feb-04 15:05
susszephyr1232-Feb-04 15:05 
GeneralRe: RegisterHotKey function Pin
valikac2-Feb-04 17:37
valikac2-Feb-04 17:37 
GeneralRe: RegisterHotKey function Pin
Zephy1232-Feb-04 20:37
sussZephy1232-Feb-04 20:37 
Generaldavidlee108 Pin
davidlee1082-Feb-04 14:59
sussdavidlee1082-Feb-04 14:59 
GeneralOpenFile > Cancel - Problem Pin
TiberiusvP2-Feb-04 14:32
TiberiusvP2-Feb-04 14:32 
Hi there!
I have a problem with my MDI-application.
When the application starts, i want to have an OpenFile dialog. I have

cmdInfo.m_nShellCommand = CCommandLineInfo::FileOpen;

in CMyappApp::InitInstance() and

DoPromptFileNames(filename, AFX_IDS_OPENFILE,OFN_HIDEREADONLY | OFN_FILEMUSTEXIST , TRUE, NULL)))

in CMyappDoc::OnOpenDocument(), everything works fine, the dialog opens on startup.

Now the problem: by pressing the 'Cancel'-button, one would expect nothing to happen, no view to open, just the dialog to disappear.
But the view opens just like it would if one selected a file, and produces lots of trouble cause it actually has no file to handle.

I tried to work around this by closing it right away by calling CWnd::DestroyWindow() in my view's OnInitialUpdate() if there's no file to handle, but then I get in trouble with my CDoc*...

What I want is just a simple solution for this: Open a fileOpen-dialog, just close it by pressing 'Cancel' and closing it and launching my view by selecting a file...

I hope it is understandable, my english isn't actually the best Smile | :)
thank you and greetz

Tib

----------------------------------------------------------
I once had a nightmare in binary --- I think there was a 2
GeneralRe: OpenFile > Cancel - Problem Pin
Roger Allen3-Feb-04 2:59
Roger Allen3-Feb-04 2:59 
GeneralRe: OpenFile > Cancel - Problem Pin
TiberiusvP3-Feb-04 3:44
TiberiusvP3-Feb-04 3:44 
GeneralGoing Crazy (How to Install a Font) Pin
netx20032-Feb-04 13:18
netx20032-Feb-04 13:18 
GeneralRe: Going Crazy (How to Install a Font) Pin
Anonymous2-Feb-04 15:20
Anonymous2-Feb-04 15:20 
GeneralRe: Going Crazy (How to Install a Font) Pin
Roger Allen3-Feb-04 3:02
Roger Allen3-Feb-04 3:02 

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.