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

how to create a new platform configuration that have its own predefined macros?

Greetings,I'd like to know how to create a new project platform configuration in which I define its own preprocessor macros.how to do that?thanks for helping me.

View Article


generated copy constructor in vs 2013 Nov. CTP

Hi,This compiler generates a usable copy constructor(and probably assignment operator) even when I define a move constructor or a move assignment op. I think that is not standard at least GCC does not...

View Article


How to Cancel or Stop Current copyings when i use IFileOperation and hide its...

Hi,Guys: I use IFileOperationProgressSink to custom My own Progressctrl,and it works well.howerver,how can i cancel current copyings without Its orignal progress window(it was hiden by Settings on...

View Article

LoadImage limitation

I have the follow code:BOOL CMyDoc::OnOpenDocument(LPCTSTR lpszPathName) { if(! CDocument::OnOpenDocument(lpszPathName)) return FALSE; // TODO: Add your specialized creation code here...

View Article

How to Use STL in win32 Application

Hi,  I am creating win32 windows based application.  I have to write code which does create hirarchy.  I wants to use STL for it (map,multimap etc ).Is it possible to use STL in combination with WIN32....

View Article


CreateFontIndirect giving wrong result in windows 8

Hello, Below program is to demonstrate my problem    #include <windows.h> #include <Strsafe.h> #include <iostream> #include <conio.h> using namespace std; int main() {...

View Article

OPENFILENAME ofn;

OK given...OPENFILENAME ofn; comes from the old Win32, I was wondering what is the best usage to span XP through Windows 8.1 to open file*.TXT is the mask in mind, however I am also interested in...

View Article

How to correctly generate a certificate using CryptSignAndEncodeCertificate...

I have generated a self-signed certificate that has the CERT_KEY_CERT_SIGN_KEY_USAGE flag correctly set. It has the CN set to "Demo".Now I am trying to use "Demo" to issue a certificate for...

View Article


Visual C++ directories and the Windows SDK

I'm using Visual Studio 2010 Pro w/SP1 on Windows 7 Pro w/SP1.  My question concerns use of Visual C++ for building native/Win32/MFC code.After installing VS I installed the Windows 8 SDK.  This...

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

Adding attributes to PKCS#7 envelpe

Hello, currently I'm trying to add attributes to pcks#7 envelope but I cannot find any info how to add attributes.Here is an example from...

View Article

Enum NETWORK folder error. Can't get SHFILEINFO fi.

I will get Network folder, is following, can't get SHFILEINFO fi, what's wrong? LPITEMIDLIST net; LPSHELLFOLDER ShellFolder=NULL; LPSHELLFOLDER desk; LPMALLOC pMalloc; ::SHGetMalloc(&pMalloc);...

View Article

lock and unlock workstarion

How to problematically know my remote desktop  is locked or not. I used the following code. this doesn't work. But following code works fine when not in remote connection. HDESK hDesk =...

View Article


CopyFile function fails when copying file to a network share

Hi All!I have a problem with copying a local file to a network share using the CopyFile function (in an MFC application).{ const DWORD maxPathLength = 256; TCHAR tempPath[maxPathLength]; if...

View Article

Linker Errors

Hi, Porting VS2005 to VS2012  successfully built in VS2005but I get linker error as below:Can anyone help on this issue   Creating library ../../WIN32/dbqmsv/nt-i386/RELEASE/tdqmview.lib and object ....

View Article


How to limit SDI screen size to minimum in MFC

Hi I have an application that cretes SDI window of 700 by 500 pixels. I want that this screen shd not be reduced than this size though it can maximize to fullscreen. Pls let me know how to do it.

View Article

How to delete Temp files using win32 Api calls

I am creating temp files ".tmp" in my application and i need to keep them deleting regularly. How can i delete the generated temp files using win32 Api calls.saikalyan

View Article


can`t set an owner to file Question

Hello, guys. I`m trying to set owner to file using SetFileSecurity function.  but I can`t complete my task due to a error. Error code is 5. (no access) Look below the code hFile = CreateFile(filename,...

View Article

Child window is coming up as minimized

I have one dialog based application and in that dialog  I have one button. Once user will click that button I am launching one more dialog . But that dialog is coming as minimized..Can anybody tell me...

View Article

Visual Studio C++ Longterm support > 5 years

I had a question regarding the following i hope this is the correct forum for this question because it mainly concerns visual studio C++Main question: In what manner can we guarantee that we can build...

View Article
Browsing all 15302 articles
Browse latest View live


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