|
First create your menu in in the resource editor. if you have not added a menu then you will need to add one first.
After you've created your menu then in your dialog attach it. In .Net look in the properties menu for your dialog screen. In VS 6.0 right click on your dialog screen and choose properties. In the first tab you will see a drop down to choose your menu ID that you wich to use.
Hope this helps
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hi,
I need to crank out a quick, lightweight error reporting helper application, and would like to add a screenshot to it. I have a rough idea how I would do that, but do you know something "out of the box"?
Related: I'd love to save this to an e-mail file (including the image as attachment). Any lightweight helpers for that?
we are here to help each other get through this thing, whatever it is Vonnegut jr. boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
I want to put Skin of a PNG image on scrollbar of richedit control.how can i.
Learner always
|
|
|
|
|
When VS genereates a binary it writes full local path to pdb file as a string to it.
For example C:\Solution\Project\Release\Project.pdb
How to disable this and maybe other private information leackage?
|
|
|
|
|
What if you don't generate the PDB in the first place?
Then it might not write anything.
|
|
|
|
|
What do you by 'first place'?
Tried to switch to Debug and clean then back to Release and no success. String with path still presents even if pbd file doesn't exists.
|
|
|
|
|
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)
|
|
|
|