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

How to save the keyboard entered value in a notepad file using cmd or powershell

I want to save the full output of the below C program in a .txt file.#include<stdio.h>#include<conio.h>void main(){int a, b, c; printf("Enter two numbers to add\n");...

View Article


64bits: CoCreateInstance 0x80040154 Class not registered

Hi All,I am trying to create a COM component for 64bits... so I decide to follow the following article: http://www.codeproject.com/Articles/338268/COM-in-C I have register my component like...

View Article


VS 2013 build win32 project cannot open 'kernel32.lib'

I just started using VS. And I only want to use it for C programming. So I only ticked  VC++ when I installed it.After I created a win32 project, I added a C source file and coded a test program. But...

View Article

In Direct2D Image Quality lost while rendering the image brush has viewport...

we are developing a application which renders XPS document as images using Direct 2D. In that we are facing a problem with xps image brushes having some brush transform with viewport as (0,0,1,1),...

View Article

Migration from VC6.0 to VS2012, 20sec delay in modbus communication(TCP/IP)...

Hi All, Recently I converted our legacy VC6.0 based project to VS2012, had few issue which got resolved. Now facing a problem in modbus TCP/IP communication, observed the 20sec delay in reading the...

View Article


Customized cl+link for V.S 2010

Hello,I wrote new cl+link from scratch in order to run a compiler + linker for another O.S (vxWorks).When I compile a file, my cl is running and when I link the application,my link is running.After...

View Article

Current Directory Conflict

Hi all,I am developing in Native C++ in a Win32 API environment using Visual Studio 2008. I have installed Visual Studio on my Laptop and the entire project copied onto the same Directory as my...

View Article

vc++ to create a dialog box and display position of mouse pointer within the...

i want to run this program. "vc++ to create a dialog box and display position of mouse pointer within the dialog box" the problem is- i m not able to change member variable category and variable type...

View Article


How to send a multicast request to 239.255.255.253, seeking an SLP Directory...

Hi,How to send a multicast request to 239.255.255.253, seeking an SLP Directory Agent (DA) in C++?Thanks in advance.

View Article


How to write the code in c++ to solve 2nd order partial differential equation?

Sample equation:d2y / dx2 = a sin(y) + c

View Article

Is my observation correct, or there is some trick to call the public function...

I've got this example (slightly modified by insertion of main()) from Stroustrup's new book, page 469.#include <iostream> template<typename T> class Tree{ using value_type = T; // member...

View Article

Need help in browse folder dialog. Is there a MFC class to implement this?

I am using MFC class CFileDialog. It selects files. I need to select whole folder. Is there a class to do this?

View Article

Why in the world does this compile?

This is a section of code compiled with C++/CLR. I don't believe it's important to know the details of what it is part of, but I will be happy to give them if asked. What perplexes me is the comma at...

View Article


Using Boost serialization, boost_shared pointer does not work.. give compile...

Hi All, I'm trying to serialize shared pointer using boost but it gives error :Error 1 error C4308: negative integral constant converted to unsigned type...

View Article

Problem instaling allegro 5

1>LINK : fatal error LNK1104: cannot open file '%.obj' I cannot for the life of me figure this out. Any help would be greatly appreciated.

View Article


cfolderpickerdialog

Hi guys I was trying to find a way to select a folder. So I used the CFilePickerDialog, but the problem is it opens the dialog at different path.My question is how to make the select file dialog to...

View Article

problem using CString::Format

Hi, I wrote the following code in my project:CString s;s.Format("%2d", num1);but it generates the following error message when compiling:d:\my documents\visual studio...

View Article


Cannot open include file: 'winapifamily.h': No such file or directory

I am just setting my my environment to build an existing project.  We are using VisualStudio2010 + WDK 8.0.  After installing both ( in that order ) and trying to build the project, I get that error...

View Article

C++/CLI Managed Byte Array to BYTE* and vice-versa

Hello, I haven't been on here for a while, but I need help with this situation that I cannot wrap my head around.In C++/CLI, I am trying to convert array<unsigned char>^intoBYTE*Now, I had this...

View Article

C++ need help

#include<iostream> #include<string> using namespace std; int main(){ string name1=" ",name2=" "; char choice1,choice2; char tictactoe[3][3]={{'1','2','3'},{'4','5','6',},{'7','8','9',}};...

View Article
Browsing all 15302 articles
Browse latest View live


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