|
Hi,
I use Microsoft visual studio .net 2003.
When I'm in debug mode I can press F10 to execute single instructions (that are usually 5/10 disassembly instructions).
I have a problem with my software, and I need to execute disassembly instructions one by one.
Someone knows a way to change the editor setup and press F10(or something quite faster) to do this?
Thanks to all
|
|
|
|
|
If you debug from the assembly view it will execute the instructions one at a time.
|
|
|
|
|
Sorry but the real problem is different:
Someone used my pc last week and now everytime that I press F10 the debugger execute a single disassembly instruction!
That person remembers that he changed a flag into the opsions-setup, but he don't remember what!!!!
can you help me??
|
|
|
|
|
i have made an apllication that creates a 5MB shared memory.But analysing the memory usage displayed in the taskmanager,i found out that,this memory is not added to the process' memory.Can anyone tell where is the shared memory created and to whom's account it goes?
nav
|
|
|
|
|
Make sure you look at 'VM Size' and not 'Mem Usage' column.
The increased use of the Virtual Memory will be reflected in the 'VM Size' column.
Each process 'mapping' the shared memory will reflect the 5 MB in its 'VM Size' column in task manager. No particular proces 'owns' the memory, they all do. Each process has it mapped into its own virtual address space. The base address need not necessarily be the same in each process, but it can be forced that way.
|
|
|
|
|
Hi all,
I want to write a little tool which reads some characters from the serial port
and puts them directly into the keyboard buffer, so that they appear in the
currently active application at the current cursor position.
Handling of the seral port isn't a problem, but can anyone give me a hint how
to emulate a keystroke from within a program (C/C++, WinXp)
Thanks!
Reinhard
|
|
|
|
|
|
You can use the SendInput function for that purpose but I don't think this is a great idea. What kind of application are you using ? Console app or windows app ?
In both cases this won't work as expected. In the console app, you can only see text appear if the program reaqire some entry (cin for example) and for the window application, the control inside which you want to display the text needs to have the focus.
Why don't you choose an easier solution: read the data from the serial port yourself and print it yourself. It is much more simple !
|
|
|
|
|
What about:
SendMessage(hwnd, WM_CHAR, <char>, 0);
|
|
|
|
|
Hello,
This[^] will be helpfull.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Many thanks to all of you!!!
I've tried some of the hints and esp. the SendKeys object helped a lot.
You've saved my day...
Reinhard
|
|
|
|
|
reinhard_jd wrote: I've tried some of the hints and esp. the SendKeys object helped a lot.
you can try keybd_event Function tooo
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Anyone give me some hints or source code how capture video from usb device and get pixels values to memory.
9ine
|
|
|
|
|
You need to install DirectX SDK,
SDK includes a lot of Multimedia sample codes
There you can find video capture source codes with DirectShow
|
|
|
|
|
In the following code snippet which delete should I use??
char *ptr1=new char[100];
char arr[10]="abcdefghi";
strcpy(ptr1,arr);
//delete ptr1;
delete []ptr1;
Should I use delete ptr1; or delete []ptr1;
|
|
|
|
|
delete[]
but they get to the same place anyway..
|
|
|
|
|
__yb wrote: but they get to the same place anyway..
What do you mean by going to the same place ? If you mean that you can use one instead of the other, it's not true. Check this link[^]
|
|
|
|
|
They in fact do not. However, it is common for POD arrays to both compile down to a call to free. But you should never rely on that since it is implementation specific.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
u're right, its per implementation, I was refering to mine - VC6
|
|
|
|
|
delete[] because the memory has been allocated with new[].
The rule is simple: if memory is allocated with new[], then use delete[]. If memory is allocated with new, use delete.
|
|
|
|
|
if u r allocating an array of data
say
*ptr=new [100]
then go for delete[]
complier will know an array of data has to be deleted.Otherwise if u dont do this only the first block of data (depending upon data type say char only first byte in case of char will be deleted this memory leak!)
remember this combination
new-->delete
new[]-->delete[]
|
|
|
|
|
new ------> delete
new [] ---> delete[]
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hallo, I must copy/save every file my program find.
There are files from Access, Windows and so on...
SHFileOperation or other standard-Routines cant work so.
Have any an idea? Thanks.
|
|
|
|
|
I have h2200,i wish run ,my application at startup ,windows ce.
please help me.
|
|
|
|
|
doesn't Windows CE have a registry too ?!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|