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

system.security.cryptography.cryptographicexception padding is invalid and...

i keep getting that error. What did i do wrong?String^ cheie;cheie=textBox1->Text;//citirea filei printr-o fereastra de dialogStream^ myStream;OpenFileDialog^ openFileDialogf= gcnew...

View Article


Batch CreateProcess code .bat

hello.currently i have an exe file which will createprocess with targeted IP to run .exe file that has been assign.the main problem is now i wan to create a batch file that will createprocess with...

View Article


Image may be NSFW.
Clik here to view.

messed up solution explorer

Windows 7, 64 bit, Visual Studio 2012I have messed up my Solution Explorer for one project.  The "normal" view is a belowI say "normal" because there is a directory like structure for header files,...

View Article

The Function "SetThreadUILanguage" do not has effect on Function...

    My Programe is a MFC MDI style programe. It calls Function "SetThreadUILanguage" at APP::InitInstance. I create all the resource in two language, english and chinese. When I load resource I create...

View Article

COleDateTime( __time64_t ) constructor one hour fast after 2038.

Hello!I have discovered an interesting phenomenon with COleDateTime.  When constructing it with a value of 2145938400 (midnight, 1/1/2038, local time), the object represents 1:00:00 AM on 1/1/2038 (one...

View Article


STDMETHODIMP

What is STDMETHODIMP? Thanks.

View Article

Upgrading a MFC MDI project to use a ribbon

HiI have followed this tutorial to add a ribbon to my project:http://msdn.microsoft.com/en-us/library/bb983935.aspxI have made good progress but I can't work out why I still have a toolbar visible...

View Article

Image may be NSFW.
Clik here to view.

Issue in Kill focus of CEdit control

Hi,i created a GUI like this.I added OnKillFocus events for the two edit boxes. When i am triggering the killfocus event of 1st edit box; on that ; the KillFocus of second edit box also being called....

View Article


How can i show messagebox in visual C++?

how can i show any text with message box in Visual Studio Team system C++? I can this in C#; like this : MessageBox.Show("Any text here"); but i couldn't this one in C++? Please help me...!!!Thanks;

View Article


Visual C++ problem

This is my program to calculate a!+b!-c! using two functions as in code : #include "stdafx.h" #include<iostream> #include<conio.h> using namespace std; int fact(int); int...

View Article

Create & delete Threads

Hi all,I'm actually trying to integrate a OS in a DLL. In this OS I create about 10 threads using the CreateThread function.To destroy the threads I use  the TerminateThread and CloseHandle functions....

View Article

Dll in VC++.Net to be used for .Net application

Hi,I have requirement like i have to create dll in VC++.Net and created dll has to be used in .Net application. Then i can create dll in VS2010 right? If VC++.Net means is there anything i have to...

View Article

MFC OCX migration from VS-2005 to VS-2013?

Hello Users, Recently we have migrated an MFC OCX source code from VS-2005 to VS-2013. Migration & Compilation was smooth. However the new OCX from VS-2013 does not get registered in Windows...

View Article


Why using afxDump now in VS2013 generates extra TRACE output

Hi,since using VS2013 instead of VS2010 old code using the afxDump object creates "extra" output.Something like:d:\...\bcgcbpro\bcgcbpro.cpp(39) : atlTraceGeneral - BCGCBPRO.DLL Initializing!The reason...

View Article

How load a varbinary(max) type from the database with MFC?

have a good timei puted a file int the database with varbinary(max) type.now i want to load the file from the database in the my app. i work with visual C++ 2013.i know that how open and connect to...

View Article


MSDN Ribbon Tutorial is outdated.

Hello, this tutorial http://msdn.microsoft.com/en-us/library/windows/desktop/dd371193(v=vs.85).aspx is outdated and uses some old and deprecated stuff like CoInitialize() and CComModule in ATL. It...

View Article

windows service could not connect to service controller with 1063 error

'm trying to start and stop the windows service programatically using a notify tray icon. The service and the System Tray Icon App can talk over Named pipes IPC. So, I took this example from msdn and...

View Article


The OpenGL doesn't work in the MFC single document template

I create a MFC single document application using the VC 2012 MFC template.Then I add the opengl support on it as follows:In the View class:#include <gl/GL.h> #include <gl/GLU.h> #include...

View Article

error LNK2019: unresolved external symbol "__declspec(dllimport) public:...

error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall xercesc_3_1::AbstractDOMParser::setValidationScheme(enum xercesc_3_1::AbstractDOMParser::ValSchemes)"...

View Article

How do I print out a log file to a particular location?

For some reason my logfile isn't being created.  How can I create the file in "C:\folder\" directory?Here is the codeusing namespace std; freopen( "Start_terminator BEGINNING.txt", "w", stdout ); cout...

View Article
Browsing all 15302 articles
Browse latest View live


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