|
lol
I Dream of Absolute Zero
|
|
|
|
|
Honestly, I go crazy soon...
I'm trying to remotely debug an application, both PCs are connected trough LAN. I have all the correct .pdb files along with the dlls, but when there is an assert or a breakpoint, I can't see the source code, only assembler, and on the context call stack I have only hex numbers.
I don't know how to make this thing work...
Are there any tips and tricks to know to efficiently use remote debugger ?
Regards
Daniel
|
|
|
|
|
You might be working on the release version. Check it out!!!
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
I'm working with the debug version, and all my dlls are debug dlls aswell, all compiled with debug-info and program database activated.
Any other clue?
I only have the source code visible on the main project, if the call goes into a dll, i get only assembler...
|
|
|
|
|
You can try this.
If you have the source codes for the dll, you can probably start debugging that dll code by specifying the EXE name ( you already have that!!! Right ) in Project->Settings->Debug->"Executable for Debug Session".
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
Is the same source code on both sides? For remote debugging I run my project off a network drive so both sides have the same exact setup.
John
|
|
|
|
|
Hi again !
I'm using Visual Studio 6, and I have a problem with the editor that I never understood. When I'm in the .cpp file of a class and want to jump to a specific method, I use the listbox on the toolbar (this listbox is displaying all the methods of my class) and click on the one I want to jump to.
But, for some methods, the editor is not able to reach it and I get this error message :
'Cannot find the definition for this function. Classview cannot find functions definitions until they are saved at least once.'
Well, I did save them ! Some of the method of the class can be found, others cannot....
Any idea why and how to correct this problem ?
Thanks !
Jerome
|
|
|
|
|
I think the ide havenot create browse file for workspace.
rebuild it,and cover cursor on the mothed, press F12,you can reach to
where it definited.
dupengfei
|
|
|
|
|
I already tried what you said, but the problem remains !
Jerome
|
|
|
|
|
Hi Jerome,
Sometimes the ClassWizard gets out of sync or corrupt for some reasons I don't know of. It's a common problem but the suggested solution is always the same: rebuilding the ClassWizard files.
Simply delete your .clw and .opt files and bring up ClassWizard again and it should tell you "The ClassWizard database <path> does not exist. Would you like to build it from your source files?". Answer "Yes" in that dialog and a new dialog appears where you can select additional files outside the project. The files in your project are already added but if you have external files that you want to add to your ClassWizard database you should add them through this dialog.
Click "OK" and your problem should be gone.
Hope this helps
--
Rog
|
|
|
|
|
Hi everyone,
How can I convert a WCHAR array to an STL string. I am using the FILE_NOTIFY_INFORMATION structure which has a WCHAR parameter as Filename (not null terminated) and a long as FileLength. Now I want to convert this WCHAR array to a STL string. Any suggestions on how to do it would be really appreciated.
Pankaj
Without struggle, there is no progress
|
|
|
|
|
|
|
Hi !
I'd like to get some hints or suggestions from you on how ot implement a multiple-undo/redo.
I'vew been thinking about that for some time, but cannot figure out how a central undo/redo can work with many different objets. Some will be destroyed, some action will delete things in memory, other in the database...Or, when a user change some data in an object through a dialog box, what to I have to do : do I have to keep a copy of the objet before the modification ? Do I have to implement an unique object handling the history and being able to undo any change ?
Well, as you can see, this subject is quite obscure to me !!!
Thank you for your help !
Jerome
|
|
|
|
|
I suggest that :
first way:
maybe you can use IStorage and IStream;
before user change the object, you create IStorage object and save user's object data to Storage. if user undo his change, load this object.
secondly: use clipboard, you can create the different clip tags but the tags have the same letter such as "'object1', 'object2','object3'...."
if user undo object3, you can load object2.
certainly, the memory is limmitted. so can set fixed num for operatoring.
hope helpful for you.
good luck
dupengfei
|
|
|
|
|
Think about the operations you are doing as commands, each command need to be self-contained.
for example, drawing a square in a drawing program, what is the undo ? cut ? ok, but what is the redo ? paste or just the same command that you originally draw the square ?
and from the other side, if you cut a square, what is the undo ? paste or juste drawing back the square ?
from my experience, each command should be able to generate it's onw undo command from the data it uses to generate the command.
It can be simple or hard.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
A better approach would be store the delta. After a particular operation, save only the changes the user has made to the document, and when he wants to undo it, apply the changes, and thats it
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
when i want to get same refreshrates(display frequency) with the windows function EnumDisplaySettings. i got as a result a 0.(this means default rate)
ende=EnumDisplaySettings(NULL,index,&devmode);
i have the equal result, when i want to get the refreshrate with directx7 function IDirectDraw7->EnumDisplayModes(..) with the EnumModesCallback2 function.
hret = dlg.lpDD->EnumDisplayModes( 0, NULL, NULL, EnumModesCallback2);
HRESULT WINAPI EnumModesCallback2( LPDDSURFACEDESC2 pddsd, LPVOID pContext)<br />
{<br />
if(global_pdm->modecount<256){<br />
global_pdm->modes[global_pdm->modecount].cx=pddsd->dwWidth;<br />
global_pdm->modes[global_pdm->modecount].cy=pddsd->dwHeight;<br />
global_pdm->colorbits[global_pdm->modecount]=pddsd->ddpfPixelFormat.dwRGBBitCount;<br />
global_pdm->refreshrate[global_pdm->modecount]=pddsd->dwRefreshRate;<br />
global_pdm->modecount++;<br />
}<br />
return TRUE;<br />
}
in all modes the refreshrate are 0.(0 == default refreshrate)
is everybody here to tell me!! how can i get a list of all kinds of refreshrates of a resolution(sample: 1024x768)??
i have one idee!! in the registry i have found modes with refreshrates.
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Display\0000\MODES]
maybe i can read this !?! but the refreshrate is a value there are from graphic card and monitor !!
please help me !!
and thanx ahead !!
|
|
|
|
|
Oi! This belongs in The Lounge.
No non-programming posts here!
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
this is my mistake.
3x; ^_^
regard
dupengfei
|
|
|
|
|
that is - to get picture without writing into the file.
But-
To get as file or as picture.
thanks.
|
|
|
|
|
If you store the picture as a binary resource, then use the appropriate GIF loading mechanism on the binary resource, you should be able to obtain a HBITMAP that'll let you display the pic. Have no idea where to get the code to load the GIF file though, someone did give it to me years ago, but not sure where they got it from
Alan.
|
|
|
|
|
Maybe CMemFile help you.
pengfeidu
|
|
|
|
|
CMemFile -good Idea.
Need comments how they are used by file name.
____________
Especially need to sabe - differently formatted files- but not only pictures in
most expensive form.
|
|
|
|
|
CMemFile is the CFile-derived class But supports memory files .
if you want particular content, press "CMemFile" in the index cote of MSDN.
the article is detailed in msdn.
dupengfei
|
|
|
|