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

rpc_e_cantcallout_ininputsynccall

To avoid the error rpc_e_cantcallout_ininputsynccall, i'm posting the message from the handler function of WM_ACTIVATETOPLEVEL.   But once i did that window fails to receive/process WM_SYSCOMMAND...

View Article


Native Method

Hi,I want need one article for Native methods in c#.

View Article


Unresloved symbol?!@ GUID_EapHost_Help_Troubleshooting

Trying to fill the EAP_ERROR struct.  But i can't seem to find the library that has theGUID_EapHost_Cause_IdentityUnknown GUID_EapHost_Repair_ContactSysadminGUID_EapHost_Help_Troubleshootingvalues....

View Article

MFC text drawing APIs: kerning and ligatures

Programming with VS2010, and drawing text  with the UTF-16 versions  DrawTextW,  TextOutW,  ExtTextOutW of the  old  APIs (and their MFC wrappers in the CDC class):If one selects an Open Type font then...

View Article

Unhandled exception at 0x77F3CCD2 (msvcp110d.dll) in...

Hello,I am trying to solve an assignment containing file handling.I am getting error "Memory access violation error".I know the erroneous statement is "file.read((char*)&p,sizeof(Product))" in...

View Article


How Can I Get the Windows Desktop App Development Help into Visual Studio 2013?

I have Visual Studio 2013 Pro, and if I press F1 while the cursor is on something like aGetWindowRect function call the Microsoft Help Viewer pops up on some obscure CDockingPanesRow:: class.This is...

View Article

Change Title Bar of MFC Application

Hi!I'm working on Visual Studio 2013 Ultimate. I'm working with MFC Application. In the title Bar it is showing "app-untitled".I want to change that Caption But don't know how. Please Help!I'm making a...

View Article

Showing A Prime Number

Well, Hello. :)I'm making an Code that shows Prime Number.#include <stdio.h> #include <windows.h> int main(void) { int num,t,l; num = 2; l = 1; printf("%d.", num); mygoto: num = num + 1; t...

View Article


Reading a file.csv into an array in C++ 2010 via the use of vectors.

Dear all I am trying to read a csv file into an array in c++ via vectors. ISN,Date,Open,High,Low,Close,Volume,Adj Close US128745,20140602,20.62,20.82,20.43,20.52,501500,20.52...

View Article


FrameRgn doesn't draw the border evenly

Hello All,I am trying to draw a rounded rectangle with border using SetWindowRgn and FrameRgn.CRectrect= CRect(0, 0, 100, 100);CRgnrgn;rgn.CreateRoundRectRgn (rect.left, rect.top, rect.right,...

View Article

dynamic_cast bad performance

I have a huge C++ application (compiled with VS2008) that uses a lot of dynamic_cast callsI had done profiling check, in order to improve performance, and found that _RTDynamicCast takes about 20% of...

View Article

map not initialised properly, Pnode is null

I have this code:std::map<string,fType> FileMap::fTypeMap; void FileMap::setTypes() {  // project file   fTypeMap["FIDX"] = FIDX;// etc}(fType is an enum)This line crashes at runtime with an...

View Article

Visual Studio 2013 updates mayhem!

Can I install Update 2 without Update 1 installed?

View Article


Using CImage in multi-thread

CImage has a private static member:staticCDCCache s_cache;And, in CImage's GetDC function, CDCCache's GetDC is executed:inline HDC CImage::CDCCache::GetDC()throw(){ HDC hDC;for(int iDC =0; iDC <...

View Article

DAO

Hi, In my VC++ project, I use afxdao.h in which I mentioned the GUIDs of dao. Now I changed the .mdb file to .accdb file. It works fine  (both with mdb and accdb) for me if I test in a machine in which...

View Article


run time error 7

Hi,I am working on MFC application that uses Datagrid.  I can build and launch the application without any problems.while I am trying to edit the dialog box for datagrid, I am getting the out of memory...

View Article

CHtmlEditCtrlBase::SetDocumentHTML() with UniCode content

I am using mshtml control in a simple MFC dialog based application.In the dialog I have an edit control and mshtml control.I read the content from edit control and set the content to mshtml control.Eg...

View Article


Memory Management of Value & Ref & Normal Class in C++/CLI

Hi, I need to clear my funda regarding memory management of ref, value & normal C++ classes in C++/CLI. So I am writing an example over here.Example: // Header Filepublic ref class Karan...

View Article

Multiple threads writing in multiple files optimization

Hello, I need to develop a C++ application in which multiple threads will write in multiple (different) files.I managed to do this, however, it's very slow and I'm looking for a way to optimize this...

View Article

is SQL Server required to use Xquery?

I plan to use XPath or Xquery on my XML DOM structure, whichever is more convenient.However, from the MSDN documentation, XQUERY requires SQL Server but XPath does not.Is this correct?

View Article
Browsing all 15302 articles
Browse latest View live


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