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

Image may be NSFW.
Clik here to view.

problems with doing a [x][y] array

all the code that involves the array is here#define lvlWidth 20 #define lvlHeight 15 int level[lvlHeight][lvlWidth] = { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},...

View Article


How to undo the effects of CDC::ExcludeClipRect

I perform two drawing operations in my application. The first one chronologically requires me to exclude a certain rectangle from the drawing region. I accomplish this effect using the excludeClipRect...

View Article


function doesnot match delegate type

The delegate in the code isprivate:delegate void UpdateProgressCallback(Int64^Bt,Int64^Tb);and the function isprivate:void UpdateProgress(Int64 Bt,Int64 Tb)  {  }I used the following code...

View Article

Problems with opening the file in VC++2010

I'm building an XLL addin for excel with VC++ 2010.In my addin, I need to open one txt file to read information.I've been using Windows API to display the OpenFileDialog and get the full path of the...

View Article

SHBrowseForFolder does not show newly created folder when Run As different user

Hi all,My application displays Browse Folder using SHBrowseForFolder. (The root folder is given as NULL ). It works perfectly fine when I run it normally. But when my application is Run As a different...

View Article


SHBrowseForFolder does not show newly created folder when Run As different user

Hi all,My application displays Browse Folder using SHBrowseForFolder. (The root folder is given as NULL ). It works perfectly fine when I run it normally.But when my application is Run As a different...

View Article

How can I convert ATL::CTime into ATL::COleDateTime ?

Hi All,I wish to convert ATL::CTime into ATL::COleDateTime. So how can I do this? Pls help.Thanks in advance.R-VR

View Article

Tooltip on WS_POPUP style window.

Hi Everyone,ContextI've a CWnd with WS_POPUP style which hosts a couple of controls on my FrameWnd.This window, is positioned on the right most corner of menu bar, to give a feel of toolbar on...

View Article


Activation context generation failed

Recieved this error from a program that was developed and compiled on one machine and and ran properly on that one but when moving the executable to another machine the sxs error comes up.This is what...

View Article


Win8 & Visual Studio not working

Help! Big problems with my new Windows 8 Laptop. I can´t create a new project after installing Visual Studio 2008 and for control reasons 2012. The following window about project settings is empty....

View Article

ATL using struct in x64

I have a ATL project using MFC in vs2008, and I defined two struct in .idl, then wrote a function to return it. When I build it to win32, it works perfect, but when I build it to x64, the struct data...

View Article

C++\CLI

Hello everyone, I just want to merely know from you, that is C++\CLI is as good as C# for Windows Programming or not?Can we create WCF and WPF applications using C++\CLI ot MFC?Can we create Web-Based...

View Article

assemblies regarding

Can a namespace contain many assemblies?Do classes in a namespace remain in the assembly  format?

View Article


Looping under timer

Hi All,i am facing a problem which is i running a while loop under a timer, this is a 120 millisecond timer. Every time valueA(integer) need to be plus 1. But sometimes the looping is taking more than...

View Article

How to avoid C6011 for fail-safe functions

Some member functions may be fail-safe in the sense that they check for "this == nullptr" before accessing a member. However, the code analysis apparently does not detect this and keeps warning about...

View Article


Image may be NSFW.
Clik here to view.

How to step directly into my std::function in debugger?

Is there a way to get the debugger to step directly into my std::function without having to step into all the std library code?I have code like this:If I'm sitting on the breakpoint line:  "f()"  and I...

View Article

Error: term does not evaluate to a function taking 0 arguments

Im getting this error: "term does not evaluate to a function taking 0 arguments", but i have no idea why.The error is in this file, and its not a file that i created.d:\visual studio...

View Article


problems with vs2010

i have developed a complex project since september last year last week suddenly and without altering any setting [ that i can tell of ] it has become impossible to add new methods to the exsting...

View Article

What certification can I take that uses VC++ in order to develop Windows...

Can Someone Please let me Know if there is any Certifications that uses VC++ to develop Windows Applications? 

View Article

inconsistent behaviour with recordset NEW () and AddNew ()

i have run into a very strange and inconsistent behaviour of VC++2010 IDEgiven this recordset LONGLONG m_ID;long m_lingua;CString m_titolo;CTime m_dataemissione;int m_fonte;CString...

View Article
Browsing all 15302 articles
Browse latest View live