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

CFile::GetStatus problem

I get the modified date and time for an specific file in follow way:CFileStatus status; CFile::GetStatus(_T("D:\Temp\myfile.txt"), status); TRACE("%s\n", status.m_mtime.Format(_T("%X")));but the hour...

View Article


change parent window to desktop

Hi,I am developing an MFC app in Visual studio 12. I have created a child window but would like the parent window to be the desktop so I can move the window about, in a similar manner as a modeless...

View Article


How shall I handle these memory allocation in recursive function

// Word out all permutations of a given string. vector<char*> CppAlgorithms::permut(char s[], int length) { vector<char*> permutations; if(length == 1) { if(s[0] != ' ') {...

View Article

error c2064:term does not evaluate to a function taking 2 arguments

Hi AllI did the migration of my application from vc++ 6.0 to vc++ 2013 version,after migration i got some errors in my code.error c2064:term does not evaluate to a function taking 2 argumentsinline...

View Article

error LNK1561:entry point must be defined.

Hi all Iam migrating my application from vc++ 0.6 to vc++ 2013.There are a total of 30 projects which is to be migrated from vc++ 0.6 to vc++ 2013 version.The first error iam facing is error...

View Article


How to get error code or Exception for password protected Power point...

I am using C++ office automation to open word, excel and power point documents and getting a error codes (800A1520 for word and 800A03EC for excel)  if i try to open a password protected word and excel...

View Article

exit error

I have some VS 2005 C++/cli Win32 apps which are deployed on a Windows 2008 R2 platform. They run there as WoW64 processes and seem fine except for one problem. Intermittently, and for certain users,...

View Article

Why is VC++ 2008 compiler complaining about SDK headers msxml.h and gl.h?

I'm trying to compile a C++ application on WinXP SP2 in which one of my headers includes windows.h, and the chain of includes brings in both msxml.h and gl.h from my SDK installation, which is in...

View Article


Window resizing in mfc

Can anyone plz tell how to resize window in mfc non dialog based application..(SDI based).????/

View Article


Rich Edit Control double-spacing table

I have a Rich Edit control that I am using to display constant, static text. The text comes from a document that I built in MS Word. I display it using StreamIn() and a callback.The text all displays...

View Article

How to hook/attach to Add a printer wizard in Windows XP/7/8/8.1

All,I'm looking into a way to hook/attach to Add a printer wizard, to the point where the user is in the Find Printers screen and has searched for the printers by pressing Find Now and then performs...

View Article

easy STL container question

I need a container class with pop_back (to maintain a fixed size) & push_front (for new arrivals) with iterator accesss to elements.deque appears to fit the bill but are there other options?pushing...

View Article

Generating DLL from VS 2013 on a 64bit system

Hello All,I am trying to build a DLL 64bit from Visual Studio 2013 (C++ to be used with Matlab 2013). I have several linking errors, which I cannot seem to be able to resolve and I have included below....

View Article


MSScriptControl throws _com_error on Release().

Hi all, first off: I'm kinda new to this forum.Second off: I'm kinda new to COM as well. Inspired by the example here (http://support.microsoft.com/kb/229669/), I decided to try running the code in its...

View Article

Unable to copy a char* type string to _bstr_t data type in vc++ ,application...

Can anybody provide a solution for below problem. Code : vc++ under VS 2010  /////////////////////////////////////////////////Note: project settings used character set is NotSet.patternValue=  タイプ...

View Article


C++ MoveToStart();

[ENG]If possible, please reply to Russian.I am writing in C + +. And I want to use the "MoveToStart ();" "Private: System :: Void wall_MouseEnter (System :: Object ^ sender, System :: EventArgs e)...

View Article

CFileDialog crashes after calling DoModal on Windows Server 2012 and Windows 8

CFileDialog crashes after calling DoModal on Windows Server 2012 and Windows 8Below code snippet crashes in windows server 2012. It works fine on Windows 7.TCHAR ptFiles[2048];    ptFiles[0] =NULL;...

View Article


Creating dll with given size?

I have a dll file, it's size is about 10.000 bytes. I want to increase about 100000 bytes to it's size. İs this possible to increase dll file's size by code?

View Article

l want to get started on using visual studio 12

l really need detail on how to use visual studio how it works and samples of projects for me to understand pleease

View Article

Correct way to catch Native exceptions and marshal them throughout multiple...

I am creating a C++/CLI Wrapper for a C++ Native Library inVisual Studio 2012.So I know you can catch exceptions and deal with Exceptions like in this post.However I am wrapping some classes that may...

View Article
Browsing all 15302 articles
Browse latest View live


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