|
Hi guys.
I have a problem. I want to delete/remove some character in the file; for example I want to remove 10 bytes of character from specific file.
Thanks.
|
|
|
|
|
Hi Mohammad
Use 2 files, one original file and another temperory file.
Copy wanted bytes from original file to temperoroy files and remove original file. Rename temperory file to original file's name
Best of Luck
Regards
KK
|
|
|
|
|
I couldn't use as this way.Since I have a file in the size of 500MB and every time I want to insert, update and delete some character from file.If the file size is small,I absolutely use this way, but for large-size files couldn't.
Thanks for your help.
Affectionately.
Truely yours.
|
|
|
|
|
Mohammad Khodaea wrote: ...but for large-size files couldn't.
Why not?
If a second, temporary file is not possible, do the insert/update operation(s) in memory, and then write to the same file.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
i'm a newbie in the coding world. Now i'm facing with a trouble that how can i collect all window class name kinds (like WindowsForms10.Window.8.0.2bf8098,WindowsForms10.Window.8.app.0.2bf8098, WindowsForms10.Window.8.app.1,WindowsForms10.Window.8.app.2..etc.). Because i have a capture tool and i want to map the windows or controls have winclass and wintype with myself definition class like the example below:
winclass wintype myclass
Ex: WindowsForms10.BUTTON.appb checkbox checkbox
But my problem is the <hexappdomainhash> element ('appb' in above example) in window class name form maybe change,it's not stable. So i cannot have the general way in my mapping.
Have anyone please show me where i can collect all of window class name kinds?
best regards,
khuong.ngo
|
|
|
|
|
khuong.ngo wrote: Have anyone please show me where i can collect all of window class name kinds?
Use GetClassInfo(NULL, ...) .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I would like to know how to force the output of command "tasklist" to a file?
(I launch the command "tasklist" by WinExec!)
Please help!
|
|
|
|
|
LaHaHa wrote: I would like to know how to force the output of command "tasklist" to a file?
(I launch the command "tasklist" by WinExec!)
I guess WinExec is deprecated, right?.
You can use the following command to dump output from tasklist to a text file...
cmd /c tasklist >> C:\nibu.txt
|
|
|
|
|
|
I am putting together something and I need to get a list of active windows and the window that is on top, or in focus. How exactly could I go about this? I would imagine there is a specific function to call to for this. Does anyone know what it might be?
|
|
|
|
|
Is EnumDesktopWindows helpfuls?
|
|
|
|
|
TFMegatron wrote: I need to get...the window that is...in focus.
How about GetForegroundWindow() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am new to this so off the bat I don't know for sure but I will look into those functions. Thank you very much.
TFMegatron
|
|
|
|
|
Hello! Is there any method to automatically close the AfxMessageBox after create it? Also I would like to make a short delay!
Please help!
|
|
|
|
|
LaHaHa wrote: Hello! Is there any method to automatically close the AfxMessageBox after create it? Also I would like to make a short delay!
Since message boxes are modal AFAIK it won't work as you would expect as it would block execution.
You can do this. Create a simple message box kind of dialog and inside this dialog class you can create a timer to destroy the dialog box.
|
|
|
|
|
Is there any other method to do this?
|
|
|
|
|
Use FindWindow to get handle to message box, and use SendMessage to close it after required delay.
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Is anyone aware of a Windows based terminal emulator program that would allow programatically creating a dial connection through it. My program would pass the phone number for the application to dial into an ANSII type server (a lot like the old BBSes). we currently manually create connections in hyperterminal, but we need to secure all the phone numbers for our sites, so the user of the "dialer" application (the app I'm writing) cannot see the number being pulled from the DB and sent to the terminal emulator.
Thank you,
Chuck
-- modified at 22:43 Tuesday 7th November, 2006
|
|
|
|
|
Does anyone know how to discover the 'legal' limits for register ESP at runtime.
i.e. in some code I'm writing, (far more complicated than can be explained in a few lines here), I've to check whether a value is a reasonable value(i.e falls within the legal range for esp values). This function resides in a DLL, and would not be privy to the 'Host' Stacksize directives. I can read startup values from the EXE PE File, but these are startup values. Maybe some process somewhere (in some unknown language) could change this at runtime.
regards
LateNightsInNewry
|
|
|
|
|
I wonder what's the difference
float fff;
doube ddd;
fff = (float) dddd;
fff = static_cast <float> ddd;
|
|
|
|
|
Did you mean this?
float fff;
doube ddd;
fff = (float) dddd;
fff = static_cast<float>(ddd);
The parenthesis cast operator is from C. C++ introduced a family of casting operators:
dynamic_cast, static_cast, const_cast, and reinterpret_cast. "static_cast" does the same
compile-time cast as the C style cast.
Mark
|
|
|
|
|
Yes. My finger got going a little too fast. Sorry.
Thank you Mark.
|
|
|
|
|
Hi,
I have a simple dialog that has a list control which displays a history of commands entered into the system.
Let's say I want to select the last argument from a command and copy and paste it somewhere, I just can't do that in a list control since it let me select the whole line only.
I tried using rich edit, but it has no notion of AddString which just adds text as we go.
Is there any control out there to solve this problem before I sub class Rich Edit ?????
Thanks.
|
|
|
|
|
I have No idea of what you wanty to achieve, other than to try and pick an individual piece of test out of a line in a control of some kind.You must be using something like a List or Tree Control, and you are probably trying to achieve an effect you have seen in some microsoft products. Do not forget, Microsoft has the luxurary of being able to throw say 500 writers at a problem, and sort it by the weekend, and also provide these writers with details of proven but not yet released features. Subclassing will probably work, but is a lot of work on your end, and may not mesh in with future microsoft code releases.
Why not try to be safe, and do as follows:-:
When you pick the line, bring up a Dialog Box with the entry in it in a readonly Edit box, Allow the user to pick a section of text, and work from there. You still will have to go thru the pallaver of validating the entry, etc, but at least you have your (several)problems isolated.
regards
LateNightsInNewry
|
|
|
|