|
brianwelsch wrote:
Why wouldn't they add that as an option under build?? Any clue?
That is a mystery to me because it is not very difficult to implemnt..
John
|
|
|
|
|
Here is another example:
http://www.flounder.com/incrementing_build_numbers.htm
|
|
|
|
|
Gracias!
BW
"I don't remember, but I know we played together because I've seen the posters." - Joe Walsh talking with Ozzy Osbourne about touring together in the 70's
|
|
|
|
|
I'm trying to use the Enhanced CPropertySheet from the "Free size and extended styles in CPropertySheets" article, but when I call CPropertySheetEnh::OnInitDialog() from my property sheet's OnInitDialog() I get the error:
CPropertySheetEnh::OnInitDialog' : illegal call of non-static member function
Anyone know why?
|
|
|
|
|
There are two causes of this error:
1. You're calling a non-static member function from a static member function
2. You're calling non-static member function as though it were a static member function.
As far as I can see, it won't be the first one. The most likely cause is that your property sheet is still derived from CPropertySheet , not CPropertySheetEnh .
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi...I am BS student and planning to do my final year project on Implementation of Digital watermarking on image,audio and video files.
If any one know about Digital Watermarking(or its implementation gauidlines) plz help me and If any one can tell me that in which language it would be better to implement it, in VC++ or C#.
Thanx in anticipatoin.
Rizwan.
LoVe FoR aLL HaTrEd FoR NoNe
|
|
|
|
|
essentially watermarking is hiding some known data in a file such that it doesnt degrade the file at all and can be recovered by the right software ... u have to have an algorithm that tells u where to look for the watermark data that obviously u wouldnt want other ppl to find out about or they could change the watermark data and that data must not affect the data of the original file ... images and video are easier but audio can present some problems cos a single wrong data point can cause a click or pop in the playback
it wouldnt matter what language u used for the process of watermarking ... it would depend on what language u were writing the app in
"penguins have no bill" biz stuff about me
|
|
|
|
|
Hello,
I have trouble with my Combo and EditBoxes: If the InputFocus is set to a Combo or EditBox and then the ENTER-Key is pressed, the dialog disappears and in certain cases the application crashes.
How can I catch up those messages, caused by the Enter-Key to avoid this problem?
Best regards
(I have a dialog-based app with MSVC6.00 and MFC)
|
|
|
|
|
|
Hello I'm interested in coding my own parser for various files using bison and flex. Does anyone know of any good information/tutorials about these tools?
Andy
|
|
|
|
|
I learnt with "Lex & Yacc" by John Levine, Tony Mason & Doug Brown, by O'Reilly press. It's fairly comprehensive and makes a good reference book, but is simple enough to learn from. There are a couple of substantial examples to explain things (a SQL parser and a menu generation language).
Hope this helps
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Ok my next question is where can I get a copy of these programs?
Andy
|
|
|
|
|
Bison: http://www.gnu.org/software/bison/bison.html[^]
Flex (GNU lex): http://www.gnu.org/software/flex/flex.html[^]
It's for linux, but compiles under Windows (I've done it)
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Thanks, my unix is a bit rusty do i need to get make and all that to compile it or can I do it under VisC++?
Andy
|
|
|
|
|
VC++ compiles it just fine. If it throws up an error about missing "unistd.h", just create a blank file and put it in your include directory. It's not a necessary file, but it saves from messing with the source . I can't remember if it asks for it or not. I think that the generated lex or bison C files include it, but it's not necessary and a blank dummy file works fine.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
In Activex control designed by MFC wizhard, if we put child windows inside it, while embedding this into IE, in IE scroll, painting child windows is improper. If we invalidate child control either in PosChanged event or paint event, flickering occurs. How to solve this painting problem without any flickering. If any idea, please help me.
|
|
|
|
|
Hi,
I have to transfer of one formview(MDI) of data to the other formview(MDI). There is no link between these two formview ,only similarity is that both r derived from CFormView.
I am using "file ". In One formview i have "listbox"(which contain data) and transfer of data to the other formview in "editbox".
Thanks
|
|
|
|
|
You should use a templated function in your parent's window in order to be able to pass data from one form to the other one.
IE:
PassData(csDestinationWndName, TemplatedDataToPass);
Hope this helps...
|
|
|
|
|
Hi all,
At the moment my Dialog based program runs 2 threads from inside ...Dlg.cpp. The user interface is updated by the Dialog box, and I am using one for doing all the main functionality, while the other thread prints to a file every minute to let the user know it hasnt crashed. The way it was supposed to work was if the program crashed the printing to the log would stop and a external program would detect this and restart the program. But if(when!) the program throws an exception the dialog saying an exception comes up and the app keeps running its other threads. Wouldnt an unhandled exception stop all the other threads associated with the process, and if not how could i make it do that so i could restart the program?
Thanks
|
|
|
|
|
Ubersnack wrote:
Wouldnt an unhandled exception stop all the other threads associated with the process
Nope. Exceptions only affect a single thread.
My solution would be to not write to a file at all. I would have the program send a message to the other program (use SendMessage() to the other program's window) periodically, in response to a WM_TIMER message. Do this from the same thread as the one that takes input. If there is an exception, the timer handler will not get called, and the message will not get sent. If the other program doesn't receive a message within a certain time period (I would set it to 2-3 times the message period) then it can restart the program.
Hope this helps,
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
cheers mate
|
|
|
|
|
The only way for your program to crash from an exception is from an unhanded exception. Unhanded exceptions are bugs! Make sure you catch your exceptions. When an exception occurs; notify the dialog, stop all threads, and restart the threads. There is not need to have a 2nd application watching and restarting.
If your application requires a complete restart to get things going again, reorganize your code. It needs to be more object oriented.
Hack on!
Jonathan Craig
www.mcw-tech.com
|
|
|
|
|
Hi CPians!
I am currently trying to write an app that emulates the mousewheel functionnality. A third part software we often use (a kind of text editor) does not seem to handle mouse wheel messages, so i had the idea to set a hook on mouse messages, to identify the top window, and to send a message to that window.
The problem is, the top window does not respond to my PostMessage or SendMessage . If I use "direct" MFC functions (ShowWindow,ScrollWindow ), it works fine, but not when using messages. And the vertical scroll functionnality is only available using a message :
pWndChild->PostMessage(WM_VSCROLL,SB_LINEUP); has no effect at all.
I've also tried to send WM_KEYUP/KEYDOWN messages (trying to make the app react "as if" the user had hit several times the up or down arrow, or pgup/pgdn), but no way.
My pWndChild which is a CWnd* is alright, because it works fine with functions like ShowWindow ,GetWindowText ...
Any idea ?
~RaGE();
|
|
|
|
|
The question is, does the top window process WM_xSCROLL messages, or is it done by one of its children (a contained view, for example)? To sum up, are you sure you're sending the messages to the good window?
All my life, who am I?
|
|
|
|
|
Rage wrote:
Any idea ?
Try setting the lParam of the message to the window handle of the window's scrollbar control.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|