|
This is what I meant...
Assuming Visual C++ 6.0 (You may have to search around for similar for VC 7.X or later...)
Open the Project Settings.
Make sure the 'Settings for' mentions your release build, typically 'Win32 Release'.
Go to the 'Link' tab.
Change the Category combobox to say 'Customize'
Make sure the 'Use Program Database' in NOT checked.
Change the Category combobox to say 'Debug'
Make sure that 'Debug Info' is NOT checked.
This will make your release EXE as much as possible without any symbols or line number information in it.
Make sure you do a Rebuild All after changing the settings.
Some companies build a release with enough symbolic information to use the PDB files to debug the release builds. Yours might have been set up or changed to be this way. The steps above will undo those changes.
|
|
|
|
|
Oh! No idea why I didn't find that menu before.
Thanks a lot! Now the binary is a little bit cleaner.
|
|
|
|
|
Hi
I'd like to know how get why LoadLibrary has failed. The error that I'd like to get is the unresolved symbol or dll that the loader cannot find. Like run a process using Explorer. If the .EXE depends of a DLL that do not exists or a function that is not exported by the DLL, the Explorer says the DLL file name or function name that could not be found.
|
|
|
|
|
I'm not sure if I understand you well...
If LoadLibrary fails, it returns NULL, otherwise it returns a handle to the dll module. To know why the function failed, call GetLastError.
Take a look at the MSDN, this might help you.
|
|
|
|
|
But GetLastError do not say what export or dependency could not be resolved. GetLastError only returns the error code.
|
|
|
|
|
When you call LoadLibrary, the dll is explicitly imported that means you'll have to get the adress of all the functions you want to call (using GetProcAddress). So this is normal it doesn't give you an error message to tell which function is not resolved. What you are talking about happens when you import implicitly a dll.
|
|
|
|
|
Yes, but my problem is the dependencies for the dll that is being loaded. Supose that my DLL depends of another DLL (some.dll) that is not present on a system. How to know that LoadLibrary has been failed because the DLL some.dll is not present ?
|
|
|
|
|
To figure out what DLL your program is not able to load:
(1) Install the "FileMon" utility from sysinternals.com.
(2) run it, and have it watch your application.
(3) when it comes time to load the dll, you can scan through the log for file-not-found errors and things like that... very useful!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Thxs. But for this I use dependency walker www.dependencywalker.com
|
|
|
|
|
|
Is there any API to judge if card be inserted into the socket of a cardreader?
|
|
|
|
|
This is hard to say, Does your card reader come with an API? If so does it have a function that returns the card readers state?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
yeah,
i think you r talking about SMart Cards.
i think you shd study documentation od Card Raeder Carefully,it may returning some interuppt may be you are not monitoring the card reader very time or you app.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
IFF the card reader acts like a drive, you might be able to catch WM_DEVICECHANGE:
"The WM_DEVICECHANGE device message notifies an application of a change to the hardware configuration of a device or the computer. A window receives this message through its WindowProc function."
|
|
|
|
|
Hi!
Thank you very much!I am sorry I didn't expatiate my question clearly to you.
As you know,even though there is not any card in the socket of the cardreader,when we attach the cardreader to
the PC,the OS can show us how many drivers this cardreader
has,such as:CARD(G),CARD(H),etc. And,as far as I know, the message WM_DEVICECHANGE must be broadcasted when the
cardreader attached to the PC,but after this,when you insert the card(s)(such as CF,MS,MFC,etc.) into the socket(s),I suppose there is not any message be broadcasted.Am I right?If I am wrong,then can you tell me which kind of message(or something else which can inform us that card(s) arrived) will be broadcast when the card(s) be inserted the socket(s) of the cardreader? If I am right,then can you tell me how can I know the card arrival and leaving?
Thanks!
Best wishes!
momer
|
|
|
|
|
Hi everybody
I'm going to draw a state machine diagram using MFC classes. I'd like my program to:
0. display the diagram on a dialog
1. display this diagram by colored, 3D rectangles and arrows
2. highligh some of the arrows
3. locate the rectangles considering dialog size.
Any ideas, suggestion, or links would be appreciated
regards
|
|
|
|
|
It seems that we have missed off
4. get someone to do my homework for me!
You can do all this sort of work using standard GDI functions.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hello
I've used the eMbedded C++ compilers for Pocket PC programming but this is the first time that I used MS's Visual C++ .NET (Microsoft Visual C++ .NET 69535-005-1427842-18707). I've successfully created a minimal application and incorporated some classes developped for CodeProject and described here. Here's the problem... which has been confusing two of us for several hours already:
We can't move our controls! When we try re-positioning a button on a dialog box by dragging it on the visual editor, it keeps the old value. The .rc file has the correct position for the control and we cannot find the control's id anywhere in the project files or in the registry... where does it remember the old values?? I've tried an example program and had no problem repositioning buttons! I compared project settings, but could not find any difference. I've look for articles or messages here and elsewhere that would deal with the project but I couldn't find any.
Anyone has a clue? Thanks!
-Philippe Gibelin
|
|
|
|
|
I assume the code is repositioning the controls then!? Are you using any layout management code?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
> I assume the code is repositioning the controls then!? Are you
> using any layout management code?
Yes yes yes. Our mistake. Big mistake! That code wasn't doing what we thought it was doing. Thank you!
-Philippe
|
|
|
|
|
Hi,
I am building an MFC ActiveX control. This ActiveX has a child of type CListBox as follows:
In my ActiveXCtl.h file I created a new data member for the child:
CListBox* pmyListBox;
In the ActiveCtl.cpp OnCreate, I added the following:
pmyListBox = new (CListBox);
DWORD dwListStyle = WS_CHILD|WS_VISIBLE|LBS_OWNERDRAWVARIABLE|LBS_NOINTEGRALHEIGHT|LBS_NOTIFY;
pmyListBox->CreateEx(WS_EX_TOPMOST,_T("LISTBOX"), NULL, dwListStyle, CRect(0, 0, 1, 1), this, 1);
Then I added a new method called "AddRow" as follows:
void CMyListboxCtrl::AddRow()
{
CString str;
str.Format(_T("item string %d"), 1);
pmyListBox->AddString( str );
}
Everything works fine until I test my ActiveX under Visual Basic .NET 2003 project, when I call "AddRow" method a NULL reference error is generated. The strange thing is that the control works fine under VB6 and VB .NET 2002!!
Does anyone know the cause of this error, or can help me finding it or how I can get rid of it!
Thanks,
Daed
|
|
|
|
|
How to get the frame rate of a .wmv file while the IWMInfoHeader interface cannot get the related attributes? Thanks
|
|
|
|
|
I have a problem runnin' my application. I used lots of char* 'cause I needed to scan ASCII files. Scanning one file is ok, but with more files, exiting the application generates a messages error
"Instruction xxxx pointed to memory yyyy. Memory couldn't be 'read' (or 'written')"
Debugging the application, the problem is located in dbgheap.h, line 1011.
Changing the type of application, the problem shifts to sbheap.h.
I've read about changing debug settings (using RTTI and so on), but the error still remain.
Any suggestion?
|
|
|
|
|
You are most likely writing past the end of an allocating heap block. You need to work through your code and try and track the cause down. There are various CRT Heap Debugging functions that will help with this. Google "crt debug heap" for help on this.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
Hai Frens.. .
I need to know how to select multiple rows by pressing Ctrl key in flex grid.
If any body finds some tutorials for grid manipulation. . .in net please give me the link.
Thanx bye
|
|
|
|