|
thanks Zac I'll try that.
|
|
|
|
|
By the way I messed up my project by adding and deleting a dialog and rename the new with the old one. can't open class wizard and keeps on prompting to locate the source even though I set selected it already
|
|
|
|
|
If need be, you can add the code by hand. All it requires is declaring an integer variable in your dialog class, and adding the DDX and DDV calls in DoDataExchange. If you create another dialog app to test it with, you can see the format for those function calls.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
If the maximum value for the edit control is 999, for example, use SetLimitText(3) . If the maximum value is something else like 756, you can't keep 757 from being pasted or typed into the control, but you can disable the OK button. There are other possible solutions, but without more knowledge of the problem, those would be guesses at best.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
By means of "subclassing" the CEdit you can overwrite it's message handlers. This way you can sort out the characters you want to block. Search for "Subclassing" or "SubclassDlgItem" here in the forum. There are good articles about the subject.
MS
|
|
|
|
|
I am writing a program based on a site.
When the user click the "scan" button on the page, a dll will start to work.It will enum the disk for some special files. Then it will return the data to the script.
Now, I want to display a "gif" to show something like "scanning,Please waiting....." .
But my problem comes. Maybe the enum program has used most of the CPU time , the "gif" can not be shown until the enum data retrives. During the wating time,the user can to nothing in the IE.
So, is there any method to solve this ?
thanks
|
|
|
|
|
Could someone give me some examples on decoding ascii85??
I have a rather large file encoded in ascii85 and I need to convert to binary.
The file is around 6mb in size.
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
I just cant seem to understand this ascii85 decoding. Lets say I have the following string of characters:
zzzzzzzz!!!!=*#KP6)]1@O)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6
)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5
(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5
)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6
*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6
)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4
(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4
*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6
*#KP6)]0J6)&O>5(`=>5(`FD4(`XM4)''Y5)BB\4*#oe5*?,h6*>o\6*#KP6)]0J6)&O>5
(`=>5(`FD4(`XM4)''Y5)BB\4+ohTCzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Could someone please explain the sequence of events to decode this to binary data please.
Seems there is lots of info on encoding but only one example of decoding which I dont really understand.
Thanks
|
|
|
|
|
Here is a C-algorithm to decode it: http://www.stillhq.com/cgi-bin/cvsweb/ascii85/decode85.c?rev=1.1.1.1;content-type=text%2Fplain
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Ok then.
How do I apply my ASCII85 string to this code?
The entire file is not ascii85, only about 80% is.
The rest is straight ASCII text.
Thanks.
|
|
|
|
|
You probably won't be able to just copy-and-paste that code. Most likely, you will be able to use it derive your own ASCII85 decode method (the one in that link mixes loading the file with decoding it, which isn't very modular).
So once you have your file loaded, you just have to know the format the file is in (hopefully the ASCII85 data is all lumped together) and you just decode the portion that needs it and leave the rest as it is.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
I am using Microsoft form 2.0 command button active x control. It supports setting static images over button. How can I apply GIF animation over it?
|
|
|
|
|
How to check current user is a administrator or a standard user on vista, I find use GetTokenInformation API is error on vista. Get me some advice.
Thank you.
|
|
|
|
|
hi,
How to add keyboard shortcuts to menu..item..by default Ctrl+N for new document..it is provided by default..i want my own..shortcut keys to the new added menu items..will it work just by adding Ctrl+some character.or ..do i need to any extra work...please help..
regard`s
James
|
|
|
|
|
put a & before the name of the menu.
eg:
&open
E&xit - here x is the short cut key
nave
|
|
|
|
|
That`s ok....but i have menu item graph in file menu..to draw a graph..i want the short key to be Ctrl+G....how to do it...
|
|
|
|
|
for that add new accelerator with the same id of the graph menu
nave
|
|
|
|
|
thank q friend its working
|
|
|
|
|
Is there a way to use the following code with createprocess to startup another application and place it into the current applications child window?
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_MDIWITTYPE,
RUNTIME_CLASS(CMDIWithExeDoc),
RUNTIME_CLASS(CChildFrame),
RUNTIME_CLASS(CMDIWithExeView));
AddDocTemplate(pDocTemplate);
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
return FALSE;
m_pMainWnd = pMainFrame;
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
if (!ProcessShellCommand(cmdInfo))
return FALSE;
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();
Chris
|
|
|
|
|
Hi guys,
what is the best methods to hunt for the memory leaks?
thanks
|
|
|
|
|
Kleser wrote: best methods to hunt for the memory leaks
See here
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Use the debugger, it will show you where the memory was allocated and give you a dump of the values. If it was a string, this is REALLY helpful. A bitmap, less so
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
Hello everyone,
I forget how to use the two tricks in Visual Studio debug mode,
1. What is the short-cut for run to cursor (or run to current line) command?
2. How to modify the value of some variables during debugging?
Any recommended reading materials are welcome.
thanks in advance,
George
|
|
|
|