Hi I want to round of a double to 3 decimal places but I keep getting 1.000000
My example is
double m_CordX = 1084/720;
I should get 1.5055555555 but im getting 1.0000000
I need to ro...
How do I "import" a DLL in C++? That is, how do I take a DLL file and start using it's functions in a C++ project.
Microsoft Visual Studio, 2005.
C++
I would like to read in numbers separated by comma in lines in a textfile using C++. Can someone quickly show how I can possibly do it?
Hello expert!
I am working for a customer of us, where I am responsible for a server written in C++. The company uses Microsoft Visual Studio 2005. While going through the code to see bette...
Hi,
I have a dll that was built in VS 2008. I am trying to load it using LoadLibrary() function call. I am getting a Runtime error R6034. I am running the application in debug mode with br...
Hello. I am learning C++ and I am following a series of educational videos + some books. All these
books declare the main function as
void main()
However, when I downloaded and install...
I have created a simple MFC Dialog application in Visual Studio 6 C++.
I have drawn a rectangle onto the Dialog:
void CTesterman2Dlg::OnPaint()
{
CPaintDC dc(this);
// Background ...
Hello,
I have a openssl function that gives me a unisgned char*. I have a unicode software and now I have to bring this unsigned char* to a Unicode CString. Anybody here how to do this?
...
I've written a B+ tree in C++, now I want to be able to display it graphically using MFC in Visual C++. I was thinking of just representing each node in the tree as a rectangle with some numb...
Hello everyone, I hate to make my first question as my first post, I would like to become a part of this seemingly great community, but I need to ask a question because I am stumped.
I need...
hi experts,
I am having trouble impmenting AfxBeginThread.
What i want is, when i call this function to create a thread, the function in the thread is going to take a while to do some stuff,...
I have a fully trusted browser-based InfoPath 2007 form with C# code on the loading event to pull user information from Active Directory which I then populates some form fields. If I preview ...
Hello,
I have a high school student coming into the office next week for me to oversee his visual c++ development of a very basic contact manager he is developing for his senior project.
...
I need help with the code attached. I need to get all the data a device connected to my serial port sends in a given amount of time. The problem is the device doesn`t send it all in one bulk, ...
I have a dialog based MFC application. In my main dialog i have a Tab Control. 3 dialog windows are created and mapped to the tab control.
In all the 3 child dialogs i needed to create contro...
Hello,
I am implementing an MFC static library module in C language with Visual Studio 6.0 and i want to implement a function that makes zoom into a picture by a percent given. (For 0< percen...
OK, probably an easy question. I've got Visual Studio 6.0 installed, and some sample code provided to me, which SHOULD compile, since I haven't made any changes as yet. The code given to me ...
I have an VC++ app developed using vs 2005, the app runs fine on the dev machine.
but when i run the application on the test machine which has no mfc dlls (i.e. not ran vcredist_x86.exe)
the...
While trying to declare a vector of vectors with an initial size Visual studio reports that the code below is a syntax error.
error C2059: syntax error : 'constant'
In fact I get the sam...
Hi
I want to iterate through a std::vector of base class pointers and call functions from the pointers and have the function calls resolve to the correct derived class function. I can do th...
How to use C# dll in VC++ 2003. can anyone tell me the source code of it as soon as possible?
Thanx
Dear Experts,
I am writing text to a notepad window and pressing an enter key. My code works in debug mode but not in release. It compiles fines without any errors. I can see the enter key...
Hi Experts,
I'm trying to find an example of an n-ary tree for void data types. I understand the basics but I am struggling with implementation, so an example of a simple n-ary tree would ...
I am trying to build a static lib and getting the following warning :
__NULL_IMPORT_DESCRIPTOR already defined.
This is because I need to use the other dependency libs while building this st...
I'm working on a single document based application using VC++ 2008 / Windows XP. I have created a simple CDialog-derived class "CMyDialog" and overridden its OnInitDialog to initialize the co...