|
It found out again, no more help needed
|
|
|
|
|
Hi,
How can I use CFileFind to search for more than one type of file at once - like if I want to search for .cpp and .h files in one sweep. I know I can create a class for each search but on a global search that will require searching my whole computer for each file type.
Cheers
James
|
|
|
|
|
Hi,
I would like the command for know how datas I have in my serial buffer .
Thanks
youssef
|
|
|
|
|
One way is to call ClearCommError. This will fill a COMSTAT structure, whose cbInQue member will then hold the number of chars in the buffer.
|
|
|
|
|
Dear,
Thank you for your answer.
I use ClearCommError, COMSTAT and cbInQue;
Best regards
youssef
|
|
|
|
|
|
Oeps, forgot to escape something
value1 <empty> <epmty>
value1 <a value> <a value>
value2 <a value> <a value>
value3 <empty> <empty>
value3 <a value> <a value>
Wim
|
|
|
|
|
My guess is that the list control has one of the sort styles set, but your code expects the list not to be sorting for you.
--Mike--
http://home.inreach.com/mdunn/
"Make sure that if you are using a blow torch that you don't set anything on fire."
-- Chris Maunder
|
|
|
|
|
Good Guess!
Thanks a lot.
Wim
|
|
|
|
|
Hi
what's the best method to add bytes to the *middle* of a binary file?
do i have to read in the data that would otherwise be overwritten, to the end of the file, append the file and then write the data record to a later offset?
Or is there a built in function.....
Cheers
Wills
|
|
|
|
|
Hello? Does anybody know the answer to my question?
Wills
|
|
|
|
|
Sorry, as far as I'm aware, you're going to have to do it the hard way. Read the data in, and dump it all back out with the extra bit in the middle.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
hey peepz, i'm just starting with the doc / view architecture here, seems like a real mess to me. But anyways thats not the point, my question is dumb 'n simple: how do i enable a button i put on the toolbar? they seem to be disabled by default... i cant find any enable/disable code for the other buttons anywhere in the code, yes i know i'm a control freak, can someone also try to explain why there isn't any code for the New document button and menu 'n stuff? i'm really confused...
Thanx
Kuniva
Want, take, have.
(oh btw, best way of learning some language is by looking at examples, start large!) :p
|
|
|
|
|
to control buttons and menu items, you have to use the UpdateUI stuff. go to calss wizard and find the button/menu item you want on the left side and create an UPDATE_UI handler from the right side. (make sense? )
then in the handler, do something like this:
pCmdUI->Enable(m_bEnabled);
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
If you just draw the toolbar button and the ID of the button isn't assigned a message handler then it also will be disabled. Use ClassWizard and add a new function for the toolbar ID in CMainFrame, CView, or CDocument derived class.
|
|
|
|
|
I make static link library and use it but the problem is that if for example I have CHTMLHelp class in my lib and use it in other project (its includes are in global include file), putting a point after variable of its type not opens its members and functions. But if I add that class header once , compile the roject and remove the header, all functions and methods become visible ! How can I do that all methods of the static link library would be visible at once without such tricks.
|
|
|
|
|
I need to create a MDI Application where there is toolbox's that when are active don't cause the main application window or document window to become unactive. The toolbox's should preferably be modeless dialog boxes. Sort of like Adobe Photoshop.
|
|
|
|
|
Hi,
I want to implement a list control that allows dragging of an item from it and dropping it onto some other window (which may belong to a different app). The text of the item being dragged should get copied into the dropped window if allows drag-drop. Can someone provide some hints in doing this?
Thanks in advance
|
|
|
|
|
|
Hi all,
I want to write API program by VC++,
I create cpp file and i wrote my source code, then i create rc file and i add some icon and ...
Now, i want to create a project that i can add my cpp and rc files to prject.
How can i do this ?
I choosed MakeFile in File->New, and i added my files to project, but when i compile, compiler indicate to me Linker problem in Setting menu !!!
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I think you should post more details on your errors ....
|
|
|
|
|
You should choose a Win32 Application and then tell the wizard you want an empty one - or the simple from which you can remove all the files they supply. Then, add your files to it and recompile.
Hope that helps,
> Andrew.
|
|
|
|
|
Hi Andrew,
Now i got this error:
fatal error C1010: unexpected end of file while looking for precompiled header directive
How can i solve it ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
This question is answered in Michael Dunn's Visual C++ Forum FAQ, you can find the answer by clicking here.
> Andrew.
|
|
|
|
|
Hi Mr.Andrew,
Thanks alooooooot for your help ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|