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

Upload image file with winhttp in c++

I have been trying to upload an image to a local webserver based on php this is a simple php script that accepts the file parameter and saves it to the serverPHP Code:$target_path = "uploads/";...

View Article


Do I need special permissions for networking in a service?

So I tried putting some winsock server code inside a service,but I cannot connect to it.Then I made an app with the same code that works perfectly(I can connect to it).Then,I made a service that...

View Article


VS2010 C++/CLI MFC app - Application popup on program exit (hang)

Windows Server 2003 Version 3790 (Service Pack 2) UP Free x86 compatibleThis is a MFC console application (MFC in a shared DLL) that was converted to call ourC# assembly using the technique described...

View Article

copy the middle of 2dim array into another array

I want to copy the middle of 2dim array into another array. who knows how i can do it. for example I have:int A[4][2]={{1,2},{5,6},{7,8},{3,4}};copy the second and third rows into another array to have...

View Article

Book language

What coding language is Game Development Essentials in?

View Article


mfc wizard 2010 makes fake apps. How do I make it stop.

Hi.Whenever I create a new project using mfc, I get multiple views (properties window, treeview window, etc.) that I did not ask for.Additionally, my implentation of OnFileOpen() does not get...

View Article

Using imaginary number " i ". Dev C++ vs. VS2008!

Hi There! I created an algorithm that uses imaginary numbers. It is fine on Dev C++, and now I am trying to port to VS2008. I figured out most things, including how to declare complex numbers. However,...

View Article

pthread_cond_wait is causing deadlock!

Hi All! Please I need some help. I'm using pthread for working with condition variables inside my app, but the use of the pthread_cond_wait function is causing a deadlock for my application : here is...

View Article


#include .. broken

Microsoft Visual c++ 2012 express fails...Cannot open file:'initializer_list' no such file or directoryIS it possible I am not pointed to the right library?  I have a simular question with std::less...

View Article


Button not refreshing on going different window forms

I had created buttons on a dialog using resource editor(using Visual C++,X64) . On the button click  event i have to show another window which is exactly of the same size and at same place (For further...

View Article

Stop Visual Studio (C++) 2012 from inserting //

When a single line comment is created (i.e. "// Some comment") and enter is pressed, two '/' characters are added to the beginning of the next line. How can I disable this feature? I searched the C++...

View Article

C++ command definitions

Hello Everybodyhow to define macros with parameters  in visual c++ 6.0 from command line and how to expand them???eg: I want to define a this macro in command definitions and I want to expand it in my...

View Article

Converting a CString to Hex and Vice Versa in MFC

Howdy?! I don't have any history with MFC, much more with C++. And I need to make a class, which converts CString to Hexadecimal and vice-versa.   I have read this one and YES it is working.Converting...

View Article


Issue with CrichEditCtrl ::FindText() in unicode app

Hi All, I am facing some issue related to text search with CrichEditCtrl  in unicode app ..CRichEditCtrl *pvoEditCtrl; //Load text here {  /////// }CString strFindWhat = _T("Hello");FINDTEXTEX...

View Article

calling domodal off pointer vs off instance

in a previous thread i had run time error: memory around xx corruptedthe code looks like thismyclass    vars(...)vars.domodal();the domodal executes fine but when cancel button is hit on the dialog...

View Article


C++ compiling from command prompt

I have installed Visual Studio 2012 Ultimate edition on a Windows 7 x64 computer. How to set path variable for C++ so that the compiling can be run from default command CMD prompt? Please help!!!

View Article

STA Threads and Need for Window Messages

Hi alli have been reading a lot on COM Threading models and have some real time experience developing COM code, but one aspects of STA and need for Message loop have always puzzled me, hope experts...

View Article


How to read from a text file in a windows form application (C++)

Hi, i'm new to the whole windows form application in C++. I want to make a simple app that prompts the user to enter his name. The app should open a text.txt file and output the corresponding mobile...

View Article

Passing a value to a form in Web Browser Control

Hello! Right now I have .cpp file containing a variable that has GPS coordinate values. I would like if I am able to pass this value to a form/querybox located in a website (Google Maps) which I have...

View Article

serialdatareceivedEventargs problem

Hi everyone,I am doing one project by using VC++. Data come every 1.8 second pass through serial port. Sometime, incoming data receive 3.1 second. How to receive every 1.8 second from VC++? anything...

View Article
Browsing all 15302 articles
Browse latest View live


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