Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3039 articles
Browse latest View live
↧

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 Article


Needs 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 Article


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 Article

Waitable 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 Article

How 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 Article

Is 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 Article

Parallel 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 Article


Seive 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 Article


need 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 Article

Red/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 Article

A 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 Article

How 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 Article


Text 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 Article

Append 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 Article


return 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 Article

How 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 Article


boost 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 Article

How 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 Article

Console 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
Browsing all 3039 articles
Browse latest View live