|
after making the dll press f5 to debug it a messagbox will come asking for the location of the exe to load enter the path of the executable in that
hope that helps
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
thankx for ur reply but my problem is I DON'T SEE the processes in the process dialog....
Build|Start debug|Attach to process...
now in the process dialog all the running processes r there.... but on my system it's blank(not a single process is there)..... YYYYYYY is my question.... do i have to make any settings for this??????
|
|
|
|
|
This command allows you to attach the debugger into an existing process. It does not allow you to attach your DLL into an existing process.
What you need to do is create a simple application that loads your DLL. Then set a breakpoint into the DLL's DllMain function. Now, run the sample application in debug mode, and after the LoadLibrary call, the DllMain's breakpoint gets fired.
At least on my computer I was able to attach the debugger into a remote process, break it, run through a set of assembly code lines, and then terminate it.
Might it be that you don't have any processes running, or that your user has no rights to see them ? Check CTRL+ALT+DEL and Task Manager. Can you see the processes there ?
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
no i have the admistrative rights and when i do CTRL+ALT+DEL i can see all the running processes in the Task Manager.
|
|
|
|
|
If all you want is to debug a DLL, then you're going about it the wrong way. Attaching to a process is used when you want to debug that process. To debug your DLL, you need a program that loads and uses the DLL. When you hit F5 the first time, VC asks you what EXE to run, that's where you tell it the name of the program that will use the DLL.
For example, if your DLL were an IE plugin, you would use IE as the program.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
You cannot truly appreciate Dilbert unless you've read it in the original Klingon.
|
|
|
|
|
Hi~Can anyone help me? How to input a number and output with the commas for every 3 digits before the decimal point? Is there any function in VC++ library can be used?
|
|
|
|
|
There is no standard way of doing what you are asking for, but there are no of controls that do simiar thing.
Check out these controls here in Codeproject.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
If you're writing a Windows app, you can do this:
CString strFloat;
float fNumber = 123456.10;
strFloat.Format (_T("%f"), fNumber);
TCHAR szFormatted [255];
::GetNumberFormat (LOCALE_USER_DEFAULT, 0, strFloat, 0, szFormatted, 255);
szFormatted should now contain "123,456.10".
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I use VC6 to create toolbar resources. When the toolbars are displayed with the flat XP style, the separators are displayed merely as a couple of extra pixels of separation between the adjacent buttons. I'd like the separators to be displayed as thin lines, as I see in other apps such as Word. How can I make that happen?
I'm using an XP style manifest XML file to instruct the app to use the XP style. That makes the buttons flat, which is what I want. But the logical grouping of buttons is not clear to the user when the only indication is an extra pixel or two of separation instead of a thin line.
Thanking in advance for help.
Cheers
-- Mark Walsen
markwa@notation.com
Notation Software, Inc.
www.notation.com
|
|
|
|
|
I figured out what the problem was. I needed to call CreateEx instead of
Create for the toolbar window (a CToolBar in MFC), and include a
TBSTYLE_FLAT style flat.
Cheers
-- Mark
|
|
|
|
|
Hi all.
I really need how to do this fast:
How do we draw lines that we can pick and move?
I need to store their start and their endpoint.
Can somebody help me please?
aartee.
|
|
|
|
|
Point start, end;
You need to store two points, keep track of when the mouse is near them to 'pick them up', and move them when they are being held by the mouse. It's a fairly basic problem, just think about it in terms of what messages you can catch from your MFC app, and how they relate to what you want to do. Your OnPaint will always draw a line between the points, then you just need to catch mouse clicks when the pointer is near a point, move the point in OnMouseMove, and let go when the mouse button is lifted.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi Christian
But how can a simple point catch an event?
Is it really so simple?
Do I not need to implement it as some type of control or whatever?
Thanks,
aartee.
|
|
|
|
|
No, it's easy as pie. When you click the mouse, your app gets a message which includes the position of the mouse. Same when you move the mouse or lift the button. You just need to call a method to turn the position relative to the top left corner of the screen to a position relative to the top left corner of your window.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
One more question:
how do we store the lines so that when we change the positions of the line we can update our positions stored for that line accordingly.
I mean, if we store the lines in a list, how do we know at node in the list the line is so that the information at that node can be updated?
-Aartee.
|
|
|
|
|
When you click the mouse, you iterate through the list until you find a point that corresponds to where the person clicks. Then you remember that this is the item you're working on and change it's values. I guess the best bet is to use a list and keep an iterator as a member variable.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
hi everyone..
while working and not going to faculty this year, i want to create a c++ project with mfc to refresh my c++ memory.
i would like to create a multiple richedit document view with splitter window and the listview/window explorer view on the left...
all i want to know at the moment is, how to start creating a project like that?
should i do mfc app wizard with richeditview and then try to add explorer view on the left? if so, how should i do that?
help me out.. i'm lost.
thanks to all. awesome site btw
regards
|
|
|
|
|
You didn't say which version of VC you have, but in v6 the AppWizard can make a splitter with a tree on the left for you.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
|
|
|
|
|
well..
i have vc++ 6.0
and when going thru wizard, i just know, it asks me, how do i want my application to look. mfc or explorer style. and if i do explorer style, how to change the main view then to richedit box?
thanks.
|
|
|
|
|
|
Hello.
Where is the option to view and debug source code directly in assembly mode via the Disassembly Window in Visual C++ .NET? Older versions including 6.0 has a menu item, View->Debug Windows->Disassembly.
Thanks,
Kuphryn
|
|
|
|
|
Whilst running in Debug mode, choose Debug->Windows-Disassembly, or alternatively press CTRL+ALT+D. The Disassembly mode is unavailable in Design (coding) mode. You must run the debugger in order to show/hide this window.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Okay. Thanks.
I still cannot view the assembly code in debug mode. The error is "(Disassembly cannot be displayed in run mode.)." The problem is you cannot "debug" a module without running it.
I need to be able to see the assembly code line by line.
Kuphryn
|
|
|
|
|
This is because you are "live" running the program in debug mode. In order to see the disassembly, you must set breakpoints into the code and fill the necessary requirements for the breakpoint to be reached (For example, if you set a breakpoint to a button click, you must manually click the button in order to reach the breakpoint).
If you want to step through the entire code in debug mode, you must first run the program, then choose Debug->Break All, and Debug->Restart. This will take you to the first line of assembly code in the program, and you can use F10 to step forwards through the code.
The reason why the assembly code is not shown while the program is 'live' is simple: the code would run before your eyes way too fast for you to follow it. That is why you must set breakpoints. When a break is reached, the cursor will stop on the line where the break is, and the disassembly window will show the assembly code lines residing in the vicinity of this code line, namely, the codes required to execute this procedure.
So, you can only see the assembly code line by line if you set a breakpoint and the code reaches this point. If you want to step through the entire program (which will take AGES), then use Debug->Start, Debug->Break All, Debug->Restart.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|