How to get pointer to CDialogBar from CView class?
My program (Test) is a basic MFC AppWizard (exe) created project. I have followed the steps in the link below to create a docked dialog box (myDialog) using VC++....
View ArticleNeeds some clarification about string to double conversion
Hello, I have the following piece of code: Quote: string ss = findNodeValue( str, "Horizon"); cout << "ss is: " << ss << endl; double dd = atof( ss.c_str()); cout << "dd is: "...
View ArticleHow to tell if a user account is set up with a roaming profile?
Is there a way to know from a Windows service application (running as a local-system) if a specific logged in interactive user account is configured with a roaming profile? PS. Oh yes, forgot to say, I...
View ArticleWaitable timer spotty precision
I'm using a version of the following code in my actual production code. It sets a waitable timer for some time in the future and then has one worker thread waiting for it to fire: Code: //Create timer...
View ArticleHow do print a mathematical series on the screen using c++
Hello Everyone This my first thread.I came here in search of a simple question but appears very hard to me.How do I print a mathematical series such as 1 + 2/2! - 3/3! + ...... n/n! //n is read from...
View Article[RESOLVED] How to tell if a user account is set up with a roaming profile?
Is there a way to know from a Windows service application (running as a local-system) if a specific logged in interactive user account is configured with a roaming profile? PS. Oh yes, forgot to say, I...
View ArticleIs it plousable MemDC to BitMap?
Hello, I am having a problem with a code I wrote. As an expansion to a program I need to draw an bitmap and return the bitmap (im making an DLL) I am new to this and never workt with bitmaps bevore. I...
View ArticleParallel Computers C language question
I'm having a hard time to write this piece of code and i can use help question is On a n sized hypercube("n-D hypercube) there will be a broadcast using commands "send" and "receive".Write this program...
View ArticleSeive of Atkin
What can be done to enhance this code. Like its gotta be bug free and efficient enough Code: #include <iostream> #include <cmath> #include <fstream> using namespace std; int main (int...
View Articleneed help the program is showing zero in output section need help
need help the program is showing zero in output section need help cant figure how what im doing wrong Code: #include <iostream> #include <cstdio> #include <fstream> #include...
View ArticleRed/Black Trees Deletion
Hey, so I've been working on my deletion function for Red and Black trees but can't seem to get it to work. From what I can tell, the remove function, instead of deleting the single value that will my...
View ArticleA link error in C++
Hello, I have a question about using Visual Studio to compile c++ codes. I created 3 projects: A, B and C. A and B were created as dynamic library, while C was created as static library. There are 3...
View ArticleHow to add a symbol of function into the file .exp
Hello, If there are two projects A and B. A is created as .dll, while B is created as static library. project A has a class "classA" classA: public classB { public: testA(); }; project B has a class...
View ArticleText Justification
I need some guidance in this code,how can i start off with. As there is not much material on internet about this type of code so i need some help from you guys. thanks. Code:...
View ArticleAppend two bitmaps
Is there a way to append two bitmaps, one of them in a top of another one ? I mean arrange them like tile horizontally. I made a search to internet, but I didn't find something appropriate ... Any...
View Articlereturn string from COM method
i try to make dll and install it under "Component Services". i tried to make method that return string but when i test it i don't get any result Code: STDMETHODIMP CSimpleChat::CellMe(BSTR name, BSTR**...
View ArticleHow to implement crosshairs (whole screen) in mdi-app?
Hello, I am working on a solution for the above problem. Without success by now. To draw it within OnMouseMove with XOR-operation in not a good solution. One problem: OnMouseMove is not called if the...
View Articleboost is not a namespace
exportmain.cpp Code: #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> // Create an empty property tree object using boost::property_tree::ptree;...
View ArticleHow to get pointer to CMyView class from CMainFrame class?
My program is a basic MFC AppWizard (exe) created project in VC++ 6. In MainFrm.cpp, I am trying to access some user defined CMyView member functions. However when I try to do the standard procedure to...
View ArticleConsole to GUI
Can someone please refer to my a book or website where I can make a transition from console programming to GUI programming. I'm totally confused about this. I know how to program in console and can...
View Article