|
Memory leaks are caused by calling new without calling a corresponding delete .
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
vikas amin wrote: ...which is resulting in a Memory Leak
How are you verifying this?
vikas amin wrote: I dont
know why its occuring ?
Neither do we (with a description like that).
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi
I used CListCtrl to create virtual list. I set LParam field in virtual list, but it not working properly. Kindly help
I also need to sort the list
KK
|
|
|
|
|
This a very well known and common problem. See microsoft knowledge base article 555375 here[^] for more information.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Love it!
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
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
|
|
|
|