Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

Balancing a Binary Search Tree

Hi,I'm trying to implement a binary search tree. I got the insert function to work, but it doesn't balance the tree as a BST should be. How do I implement a balance() function in the binary_tree...

View Article


What does the Standard say about the use of operator int() in the code below?

I already know from here that § 13.3.1.2/2 answers my question about the invocation of operator int() in the expression c = (a - b) * c;below. But I still don't have a quote from the Standard...

View Article


Can I make a COM port global? (or pass it to a function...)

I would like to be able to use a COM port enabled in main in a function. I am using MS Visual C++ 2010 Express.The following code works and generates a usable COM port in main but I can’t figure out...

View Article

Looking for visual c++ 6.0

Hi,I got an assignment to design an application with an old DLL, LIB and Header files from visual c++ 5.0 (the DLL and LIB were compilied with c++ 5.0 and don't have the source code).I've try to work...

View Article

Deduce function template arguments

I've been tracking down an issue where a function template we have cannot deduce a template argument.  I narrowed it down and created the below example to demonstrate the issue.  In the Speak function...

View Article


VS2013 configration setting is confused by name and another configration with...

Hello!mt-gd mt-s mt-sgd mtI made these configrations in my VS2013 solution.and set some options(like use pre-compiled header)... to all projects belong in solutionsproject properties, no problem.but,...

View Article

Download a ZIP or MSI file from server

Hello,My WIN32 application needs to download a file ZIP or MSI from the server. Which is the best method to download a file from server in background using C++.Please suggest me any libraries that I...

View Article

Problem in Visual Studio 2010

I do not understand how to fix the error listed CODE: #include <iomanip> using namespace std; int main() {   double cost;   double tax;   double tip;   double total;   cout <<"please enter...

View Article


How to clone IHTMLDocument2 object using C++

Hi, The html page's body tag contains the <script> and <style> tags inside of it. I want to read the body text of html page excluding the text coming inside the <script> and...

View Article


error get during build the driver

 try to build a 64bit solution using VisualStudio2010, but I have a trouble.This is the error message: ntdef.h(166): fatal error C1189: #error :  "No Target Architecture"help me out?

View Article

socket programming asking for IP address of the pc

Dear AllI have two applications(visual 2012 c++ win 32). One runs on a device connected to my PC and the other one a desktop app which communicates with the connected device. I can display message in...

View Article

operator overloading for derived class objects pointed by base class pointer.

Hello, friends.I have a question on debugging my homework.Well, here's what I'm trying to do:- I defined a series of classes bound by class hierarchy. (from Person to phdStudent and phdWorker)- I...

View Article

gettimeofday

there's a function gettimeofday in linux, however, is there any windows API realize the same function? i got a little confused with getlocaltime and getsystemtime, which one should i choose? and which...

View Article


Finalizer intermittently not called when debugging

Hello!I'm working on a MFC application which has a managed part implemented in C++/CLI using .NET 4. The environment is Visual Studio 2013.The application has a reference class which has member that is...

View Article

Migrating from 32 bit to 64

I am looking for some help with run-time errors in C++ application while converting to 64-bit. It worked fine in 32-bit for almost a decade. I compiled it using Visual Studio 2010 64-bit compiler....

View Article


Basic C++ Questions!

For some reason when I compile this code for a simple grosspay overtime statement, my output is blank!#include <iostream> using namespace std; void main() {int employeeid;  int hoursworked;int...

View Article

Which version/type of Visual studio

Hello,I'm a new user of Visual Studio. I have found a stanford C++ programming course CS106B which has the external header files. But the problem is that the Visual Studio version used was from 2005.I...

View Article


SSPI and GSSAPI interoperabilty

I have implemented RFC3645 in DDNS functionality for my DNS and DHCP servers. The servers are supported in both Linux and windows platforms. This implementation is working fine for both DNS and DHCP...

View Article

Visual studio #include "mex.h" header not working with VS project

So i'm using vs 2012 ultimate 32 bit. I start a new project with a template of CUDA 6.0 Runtime (Cuda 6.0 toolbox installed)I put the header #include "mex.h" and I get the message Error: cannot open...

View Article

Compiling C file with /c and /MD options, then linking .lib files

I have a C file which uses 3-4 external libraries. It's built using cl.exe and link.exe(MSVC). The build script shows that the process of generating the exe is in two stages- Use the '/c' option with...

View Article
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>