|
|
thank u i will also
try to use the documentation
tool "doxygen"
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
|
hello everybody,
i read some days ago here on VC++ forum that one could use the DependencyWalker tool to check the libraries an executable needs to run well.
i'd like to give an MFC program i made to a friend that don't have any of the basic libs (msvcrt.dll, mfcxx.dll, ...) but i don't have a formal way to find the info and i cannot find such a tool !?
any tip ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
It's installed with Visual Studio within the related tools. It should appear when you right click the mouse over an exe (View Dependencies) and also in the Visual Studio Tools menu group of the programs bar.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
maybe it should, but it isn't... neither under my Visual Studio 6 nor Visual Studio .NET 2003 (both fully installed)...
but anyway, thx for the info... (i download it again from the link provided in one's previous post...)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
i read some days ago here on VC++ forum that one could use the DependencyWalker tool to check the libraries an executable needs to run well.
True, but only for those libraries that were implicitly linked with.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
True, but only for those libraries that were implicitly linked with.
yes, of course, thx for the info David.
Actually, i don't link implicitely any library, but even if i was, i may know which one. my problem is almost for libraries needed to start, such as MFC, C-runtime, etc...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hello comumity,
how to get an handle to an CListCtrl Control from another Class? I want to use ::SendMessage(...) Funcion and i need the HWND handle to send the message to this contrlol, and the same control is member from the dialog class, i mean, the control is on the dialog box?!
regards
break;
|
|
|
|
|
Write a public function in Dialog class to return the handle of the ListCtrl control.
m_hWnd member of your CListCtrl variable of dialogbox contains the handle to the control.
Hope this helps u
Regards
Adi
|
|
|
|
|
It is a bad design to assume that the dialog box owns the list control. Instead, send the message to the dialog and let it route it on to the control as it sees fit. This way the control can be changed without the calling routine needing to know the details.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hello,
i send the message to the main dialog box, and call the target funcion?!
::SendMessage(AfxGetApp()->GetMainWnd()->m_hWnd, WM_LISTCTR_MSG,0,(LPARAM)lpParam);
this works
With best regards
break;
|
|
|
|
|
hi!
i hav designed a menu. now i want that on clicking the menu item "import file", FileOpen dialog gets opened. what code to write for it and where.
could anybody help me.
thanx
|
|
|
|
|
Ru using MFC or SDK
if MFC then SDI or MDI,
I think u need to get hold on VC++
first .
get some good book
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
first map the function click of the menu with its IDC no and in its function write the following code :
CFileDialog fileDlg (FALSE, "txt", "*.txt",
0, ".txt", this);
fileDlg.DoModal();
see mdn for the explanation on the parameters
|
|
|
|
|
Hi,
After changing alot of code in my MFC application, it is no longer
opens up. Compile has no errors or warnings. It seems that the program
DOES load, but exit immediatly.
Any idea where to look for? Any idea where i can put a break point to
help me catch it? How to define an entry point?
|
|
|
|
|
If you have a dialog based app you could look into the InitInstance method and add a breakpoint where you call the DoModal method. If the problem is inside the dialog class then begin looking into OnInitDialog method.
Hope it helps,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
I've put a breakpoint in that function.
Does not reach there.... debuger did not stop there.
|
|
|
|
|
Does it reach the constructor of the app?
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
|
press F10
u will go to
extern "C" int WINAPI
_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}
no press F10 again and then F11 to go to the defination of afxwinmain
check out the afxwinmain function in "Winmain.cpp" by pressing "F10"
find out from which function call the program exit
int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
No help.
Pressing f10 or f11 does not reach anywhere.
Again, it seems it starts (the layout of the VS changes) and it immediattly returns with return number 0xff.
|
|
|
|
|
Found my error. A simple bug in some other lib i used. But, i could find it after i added breakpoints to ALL the functions used in the solution.
Is there any simple way to debug an application from the first instruction?
|
|
|
|
|
Adding a breakpoint at the declaration of the global app object?
CYourApp theApp;
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|