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

Windows 7 and 8 screen overlay

Hi,I am working on an application that would display things(graphics, texts, etc) like an OSD in Windows. The problem is that I am a newbie in windows programming and I could find any proper solution....

View Article


assertion error mfc

HiI am getting an assertion error_gcvt_s( cBuffer,iSizeOfBuffer,dValue,iDigits)when iSizeOfBuffer = 10, dValue = 0.057632339906428, iDigits = 2I do not understand why I am getting an error. I am using...

View Article


Winsock filename gets the same with content

I'm trying to send a file with winsock.The file is Test.txt and contains the text HeyaHowever the end result is a file called:Test.txt4heyaEndConnectionEndConnection is the string that gets sent to the...

View Article

How to get Get CString name from CRegKey in mfc

HiHow can i get string name from the CRegkey in mfc.I am able to get the name of the value and key by using GetValue and GetName but string name i am not able to get.How to get the string name?How to...

View Article

memory device context and device context

what is memory device context and device context ? difference between them ? Can anybody explain me ?Thanks in advanceBR 

View Article


Start Windows application development using Visual Studio 2012

Hi all,I am a beginner in Windows Application programming.The following are the requirements for the application I am building :A window with dropdown list boxEach item in the dropdown list is...

View Article

SQL Server, std::thread

Hi, i got a method, filestodb()int filetodb(std::wstring szwf, SQLHANDLESTR *h);it executes sql commands, such as this:std::wstring szwComGetCompetition = L"SELECT...

View Article

"System" namespace does not exist?

I copied the example from Visual studio C++ examples for DateTimebut it compiles with error:error C2871: 'System' : a namespace with this name does not existafter comment out the DateTime declaration,...

View Article


Trying to compile code for friends !!

Hello.. im ben, im new to programming so sorry if this seems like a stupid question (as it probably is)im using Visual Studio Express 2012 for desktop my problem is, i have written some basic code to...

View Article


Different multicast addresses but same port.

Hello,I have multiple multicasts (with different destination addresses) but with the same destination port and same source address/port. How can I read the data from the different multicast...

View Article

I want to combine my CPP application with MFC app but struck with Linking...

hi i have created one application which will communicate with a hardware token in visual studio ( in c lang) that is working fine. Now i want one GUI for it and in background i want to use the above...

View Article

c++ code required for printing simple 2d graphics line to printer.

Can anyone help ?The printing sample does not work with my code.n.Wright

View Article

Event Sink in ATL

Dear all,We have a base interface for event sink and we are implementing it in two different ATL classes with different clsid( Dlls are also different, one is x86 and second one is x64).It works fine...

View Article


VS 2008 redistributable issue

Usually I use static linkage for my dll . But Had created a Dll in VS2008,  Which is dynamically link to the MFC library. Now had deployed my app on a fresh window7 VM(virtual machine). When I used...

View Article

Deep copy pointer to a vector

This question might sound silly, but its been a long time since I worked in VC++. Please let me know what I am doing is correct or not.I have a thread method which has a pointer to a vector of CString...

View Article


how to use SetWindowSubclass for implementing another wndproc?

Hi All! Please I need some help, i'd like to know how to use SetWindowSubclass for implementing another wndproc without replacing the original one. how to do that? can someone give me an example? thank...

View Article

How to expose a managed class to unmanaged code without /clr

I need to expose a managed class to a fully native application, which cannot be compiled with /clr due to its dependences. I know that, if compiling with /clr was possible, I could just use gcroot. I...

View Article


arranging file in day month year format

I have a text file with years in a column. like 2004 2004 2004 2004 2004 now I need to arrange the table in day, month, year format. say for january, 1 1 2004 2 1 2004 3 1 2004 any help??

View Article

VC++ 6.0 verse vs2008 VC++ compiler

Hi I have working application which users WritePrivateProfileString/GetPrivateProfileString compiled on vc++6.0 over windows terminal services and the return value is H:\windows. When i compile the...

View Article

ftp file upload not working

Hi i am trying to use this code to upload a file to ftp server on my computer with FileSillathe file is not being uploaded CFtpConnection *pConn = NULL; CInternetSession session; pConn =...

View Article
Browsing all 15302 articles
Browse latest View live


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