|
uday kiran janaswamy wrote: client block at 0x0D732450
There is an article in MSDN with the following heading
"Detecting and Isolating Memory Leaks Using Microsoft Visual C++"
This artcile will explain to you what are client blocks and normal blocks and how to set breakpoints on allocations.
|
|
|
|
|
uday kiran janaswamy wrote: GTDSwitchBasic.cpp(70) : {185679} client block at 0x0D732450, subtype c0, 200 bytes long.
What is line 70 in your cpp ?
|
|
|
|
|
Hi Prasad,
The Line 70 is
mC_ONShape = new CGTDObjectShape(pui_SwitchDrawObjID , 0); //Line 70.
Please help me out prasad.
Uday kiran
|
|
|
|
|
Does d'tor of CGTDSwitchBasic is getting called ? If CGTDSwitchBasic is created on heap, are you calling delete on it ?
Does c'tor of class CGTDObjectShape does some memory allocation , which is not getting deleted ?
|
|
|
|
|
Hi,
I am trying to execute .bat file using CreateProcess API .
like below
CreateProcess("C:\\WINNT\\system32\\cmd.exe", // lpszImageName
"C:\\Tomcat.bat", // lpszCommandLine
0, // lpsaProcess
0, // lpsaThread
TRUE, // fInheritHandles
CREATE_NO_WINDOW, // fdwCreate
0, // lpvEnvironment
0, // lpszCurDir
&si, // lpsiStartupInfo
&pi // lppiProcInfo
))
But its not working. Can any one help me out in this ?
Thanks and Regards,
Subbu
|
|
|
|
|
Y don't u use ShellExecute(), instead of CreateProcess()?
Come online at:-
jubinc@skype
|
|
|
|
|
I am having lots exe files to execute .. so I will be going in a loop and exexute each exe through CreateProcess. All this process will done in a windows service
|
|
|
|
|
Don Box wrote: Y don't u
May I please ask you to make use of proper language? Saving your key strokes?
toxcct already asked you this, didn't he?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I had seen a couple of articles on drag and drop between listboxes on the .NET framework IDE whihc uses some very helpful built-in functions. However, I am still on VC 6. Just wondering if it is possible to implement the drag and drop feature? Any clues and suggestions welcomed. Thanks.
|
|
|
|
|
whatever@whatever.com wrote: I am still on VC 6.
Look up CDragListBox .
|
|
|
|
|
CDragListBox allows drag and drop within its own listbox for arrangement purposes but not onto another list box.
|
|
|
|
|
|
Can't really find anything relevant to VC6.
|
|
|
|
|
Really?
Link1[^]
Link2[^]
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Yeah. Thanks for the effort, but I was looking for dragging and dropping from one listbox to another, rather than within the same listbox for arrangement purpose. I guess such a feature is not supported in VC6.
|
|
|
|
|
whatever@whatever.com wrote: I guess such a feature is not supported in VC6
This[^] should given an idea. Drag and drop between listboxes is not intrinsically supported but you can provide this support through coding.
|
|
|
|
|
See this article by Paul DiLascia, from his "C++ Q&A" column in the October 2004 issue of MSDN: "Create Client Windows, Drag and Drop Between Listboxes" at http://msdn.microsoft.com/msdnmag/issues/04/10/CQA/[^]
It explains the coding needed to obtain drag and drop between different list boxes in the same application.
Mike
|
|
|
|
|
Thanks! U made my dae. Also thanks to all others who had given their comments.
|
|
|
|
|
Hi
All
I want to design resource in japanese, marathi font how can i set font of resource to japanese by using coding. Is there any API for setting font of resources. I don't want to set font from control panel because it is meaningless because by doing this user have to set font manually which affects fonts of all application in Win XP.
Atool
|
|
|
|
|
M. Atul wrote: marathi font how can i set font of resource to japanese by using coding.
You need to provide the same resource for multiple languages. You can choose a language for a resource in the resource editor.
|
|
|
|
|
To manualy cheange the font, I find the simplest way is to open the .rc file in a text editor and chage the "system 10" for each window to whatever font you want to use.
In my experience, I write many English/Chinese apps, the best way is to distribte the font with your app. When your program starts, create the font and enumerate all the child windows setting the new font for each.
|
|
|
|
|
I would go to Microsoft’s web-sight and look up internationalization, there is a book that was presented in the VC 6.0 version of the MSDN; which has since been updated. In general the idea is to have a DLL supply all the strings required in you application, instead of building it in as an application resource, and then just loading the appropriate DLL, based on then national language, at runtime.
Another method I have used in the passed (non-unicode) was to copy the multi-byte string from another document and just paste it between “” in the resource file. Also remember that files, such as text files, can be included in the resource file as an external source.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Hi,
I have done "report generation" in vc++(MFC).After generate the report,which
can take the print on printer(HP officejet printer) ok....till now nothing else
but when i use different type of printers like compaq,canon,Epson,etc there is
araise some problems like print preview region problem and page size problem.
For example,
1.When i take print(A4 size) on HP officejet printer ,no problem
2.when i take print(A4 size) on other printers like Epson..., only partial of data will be shown.
How can i solve the print preview region problem.Currently i am using visual studio 2005.
Thanks in advance...
|
|
|
|
|
I saw so many articles in codeproject all are working under _MBCS , but wHEN define UNICODE,_UNICODE the encrypt and decypt is not working.
plz Help me out
|
|
|
|
|
kiranin wrote: the encrypt and decypt
What is encrypt and decrypt that you are talking about? Are you taking care of string handling accordingly when in UNICODE build?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|