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

delete pointer cann't fix memory leak, why?

I am a new programmer in visual studio 2012 C++, now I found there always were memory leak problems. I have located it, but even I deleted the pointer. there still has no change about memory leak. The...

View Article


How to release the cache used by CHtmlEditCtrl

Hi All!My English is very poor, So hope you can understand what I say and thanks for your reading.I have a VC9.0 project. I use CHtmlEditCtrl to developed a chat program. The control was used to show...

View Article


HttpClientWithSslExample with Self Signed Cert

Hello,How can I expand the sample HttpClientWithSslExample  http://msdn.microsoft.com/en-us/library/windows/desktop/dd323351(v=vs.85).aspxto work with a server that has a self signed certificate.Thanks!

View Article

Do I always need to put "int" when declaring a variable?

Do I always need to put "int" when declaring a variable?Thanks

View Article

access specifiers with virtual functions

thought I was getting the hang of public, private & protected access specifiers and the use of virtual functions but saw this in a class the other day and got confused:private:  virtual void...

View Article


This app can't be activated by the Built-in Administrator

Alright, so after upgrading to VS2013 I figured I could finally get a starter kit to build.STARTER KIT I'M USINGI load the project and build it...ERRORThis app can't be activated by the Built-in...

View Article

How to add Multiple CFormView in SDI application

Hi, I have app developed as MFC SDI (CFormView). I want to add multiple CFormViews in SDI app so that I can use controls on each view. For e.g. first screen is Log-In screen and once the logged in...

View Article

Parallel port with Windows 8

Could someone please give me some sample C++ or Visual Basic code for accessing a PCI express Parallel Port card using the CreateFile ("LPT2" ,etc) and DeviceIoControl API commands with Windows 7 or 8...

View Article


how to transfer files through wifi in MFC

how to transfer files through  wifi in MFC

View Article


how to restore a pan which is derived froma CIDPDockPaneBase ?

How to restore a pan's position dynamically and not to restart the application?

View Article

#import .tlb file make compile error in a specific configuration and specific...

HiI make import in stdafx.h//----- Inventor interfaces include#pragmawarning(disable:4192 4049)#import<RxInventor.tlb>  rename_namespace("Inventor") named_guids raw_dispinterfaces...

View Article

app crash in DDX_Control

Hi,I have encountered crash in mfc DDX_Control, I have a PropertyPage inheried from CPropertyPage, Its work fine with CPropertySheet, but I need to display this page in a dialog box as child window...

View Article

How to embed Flash Player in Visual C++

I have the following code I compiled in Visual Studio 2010 Pro, it compiles and runs without any errors but I don't see anything inside the window, neither a Flash player nor the SWF file.Can anyone...

View Article


How should I call ATL COM project created in VS 2012 from an MFC project ?

I've created an ATL project in VS2012. It auto created a PS project with these files:myProj_i.hmyProj_i.cmyProj_p.cI want to create my ATL method from an MFC project. What is the best way to do it ? I...

View Article

Linker Errors when Migrating from VC2005 to VC2012

Hi,error LNK2019: unresolved external symbol "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) referenced in function "public: void __thiscall std::basic_string<char,struct...

View Article


Empty class has link errors...

I just write an empty class asclass AudioLoudnessController {}And when i build it with vs2012 express, i get the following errors. What' s wrong with that?Error 4 error LNK2001: unresolved external...

View Article

MSflexgrid vc++2010

I am using VC++ 2010 and have inserted a Flexgrid,I want to recieve serial data in one of the columns of flexgrid.please provide with a code ,as how to establish a serial communication and read data in...

View Article


error C2036: 'void *' : unknown size

Greetings,I have a syntax similar to this :void* data;int number_to_increment;data+= number_to_increment;I think this is ok for GNU/GCC compiler, but how to do to make it working in MSVC?

View Article

HOW to initialize a char array from function?

Greetings,I have the following code:char* getdriverlocation();char driverLocation[255] = getdriverlocation();but this is not working, I get error C2075: 'driverLocation' : array initialization needs...

View Article

IE 11 crashes in Windows 8.1 with LSP

Hi All,I'm using my own application to do something in a browser. For doing this I'm installing an LSP into the machine. And it's working fine in the OS versions below Windows 8.1 preview. But, in...

View Article
Browsing all 15302 articles
Browse latest View live


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