|
If you have an existing MFC project you want to compile and run, select File, Open, and then Project/Solution. Visual Studio uses solution files (with the extension .sln) and project files (with the extension .vcproj). Navigate to the folder that contains your MFC project. Choose the .sln file it it exists, and the .vcproj file otherwise.
If you want to create an initial project to experiment with, select File, New, Project. In the dialog that opens, choose Visual C++ and then MFC in the tree on the left. In the list on the right, select MFC Application. At the bottom of the dialog, choose a location and a name for your project. You will then see a wizard for choosing the basic features for the application you want to create.
|
|
|
|
|
i have implemented the dfs algo in c++ using recursion but i wish to find all routes from source to destination. any good article or guidelines will helpful..i wish to do it using a link list if possible..!!!
|
|
|
|
|
This entry from wikipedia will probably help you - Depth-first search[^]
It has a python implementation with and without recursion.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Ok so i was testing my chat system by outputting some random messages which i had typed into the code, and i came across this very strange occurance..
I recreated the error with an extremely small command prompt program:-
#include <iostream>
using namespace std;
void main()
{
printf("\n");
printf("!!!!\n");
printf("????\n");
printf("??!\n\n");
printf("Why is this:- |\n\n");
printf("Also here -> ??! <-\n");
printf("\n");
getchar();
}
I swear to god this is not a wind up, it took me ages to find out why a | was appearing where i had typed "??!". Can someone please compile this program and tell me if you get the same thing happening. Im using Visual Studio 2008
Thanks,
Leigh
|
|
|
|
|
swifty666_2000 wrote: I swear to god this is not a wind up, it took me ages to find out why a | was appearing where i had typed "??!".
Search for trigraph.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Oh wow. I've never heard of that before ).
What are they for though? Or is it just some legacy thing?
Thanks very much!
|
|
|
|
|
swifty666_2000 wrote: What are they for though?
Trigraphs, sequences of three characters (introduced by two consecutive question marks), allow C programs to be written using only the ISO Invariant Code Set. You can use them in C source files with a character set that does not contain convenient graphic representations for some punctuation characters.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
I've got a problem with sinhronisation of a function which is called from several threads. The function do no use static variables. And there is no connection variables between threads. In debuger the aplication crashes on new or delete operators inside the function. In internet I've read that these operators are already synhronized. Please help me to find solution of the problem.
|
|
|
|
|
Are you using a multi-threaded variant of the C runtime?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I am not realy know what you mean with "multi-threaded variant of the C runtime"? If this is project settings in VC6.0 on page "Code generation", I have for "Use run-time library" defined "Debug Multithreaded DLL" and "Multithreaded DLL" for realize. If I am wrong please tell me in detail what did you mean.
|
|
|
|
|
That's what I meant - so it's obviously not that that's your problem...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I found the problem, there was "static" variables inside functions.
|
|
|
|
|
Hi,
I have built 2 MSI with same configuration. Just rebuilded. When I am comparing those 2 MSIs using MSIPackageDiff, I am getting some of the error in Binary Table.
Can someone explain me what are these changes?
Thanks & Regards,
Swapnil D. Lokhande
|
|
|
|
|
Can someone please direct me to a source of information on how to trace / debug standard MFC commands. For example File.. Save.. I am using "MFC Internals" for a guide but cannot see how to debug the command message flow.
Thanks for reading
Cheers Vaclav
Update
I have overridden OnCommand in main and MDI frame and can trace the command flow from the main menu to the MDI OnCommand. Now how do I get / step into base class? F11 does not respond.
modified on Tuesday, July 21, 2009 4:07 PM
|
|
|
|
|
|
Thanks Mike,
The article does confirm what I got from the book. What I am still missing is how to get to the base class using debug steps.
I must be missing some options in my VC 6.0 because F11 just does not do anything visible and the program is stuck in last debug point. I will try just source code of the MFC base class next.
Vaclav
|
|
|
|
|
Up to a point, I think at the Win32 level, there is no more visible "code" to step into.
This signature was proudly tested on animals.
|
|
|
|
|
After raking a short brake from coding I came to the same conclusion.
It always amazes me how taking breaks from many “problems” gives person a different outlook on things. Was that covered in some famous book?
Thanks for your help.
Vaclav
|
|
|
|
|
I would like to use the CMFCtoolBars to replace CToolBars, so I am guessing I need to integrate the Feature Pack to my MFC application. Do I have to change all the base classes(CStatusBar, CWinApp...etc) to those from the feature pack if I only wanted to change the CToolbar, or can I change CToolBar only and still get it to work?
Thanks
|
|
|
|
|
I think you can just "plug'n'play".
This signature was proudly tested on animals.
|
|
|
|
|
I created a test application using LsaEnumerateLogonSessions and LsaGetLogonSessionData, which displays the number of interactive logged on users. It works fine on Windows XP, but it displays 2 interactive logged on users on Windows Vista, even though I have only one user: the Administrator.
Can anyone tell me why this happens?
Thanks!
|
|
|
|
|
Eikthrynir wrote: ...but it displays 2 interactive logged on users on Windows Vista, even though I have only one user: the Administrator.
Is the other a legitimate user, just not logged on?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I modified the application so that it displays also the user name. It's the same user...
|
|
|
|
|
The LogonId data members are different, even though the UserName data member are the same...
|
|
|
|