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

How to close the automatic SIMD optimization in vs2012?

Hi all,I am a user of vs2012, and I found that a simple for loop of C++ program will be optimized to SIMD code in release mode,I want to compare the efficiency of  normal C++ code and the SIMD code, so...

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


Insert Object (create from pdf file) fails (OleUIInsertObjectW fails with...

Problem: I am unable to insert object (create from existing pdf file) in my x64 bit application. (even same could be reproduced using wordpad.exe) Environment: OS: Windows 7 Professional + SP1 (64-bit)...

View Article

Is it possible to get RGB and not BGR pixels from a Bitmap?

I'm using Bitmap LockBits to get the pixels from an image as an unsigned char*. However, Bitmaps are encoded in BGR, and I would need the images in RGB for my application. Is there a way to make the...

View Article

msxml6.lib problem

#include "stdafx.h" #include <stdio.h> #include <windows.h> #include <objbase.h> #include <msxml6.h> int _tmain(int argc, _TCHAR* argv[]) { CoInitialize(NULL); printf("start...

View Article


How to set PlatformToolset from custom property sheet in Visual Studio 2010

(I expect this to be in incorrect forum but I wasn't able to find the correct one.)I am moving now from VS 2005 to VS 2010 with products consisting of few solutions with numerous projects each. I...

View Article

Conversion from System::String to bsic-sctring string

I have a program written in C++ with enabled /clr support so that I have access to namespace System. I need this to have access to the DateTime structure. Here is the relevant section of my code:...

View Article

Unexpected Error C2632: 'char' followed by 'char' is illegal

I am having a piece of code as typedef unsigned char   _uint8; typedef unsigned short  _uint16; typedef unsigned int    _uint32; typedef float           _float32;typedef char            _int8;typedef...

View Article


Error C2059 syntax error: for

Dear All,I am having the following macro definition and I am getting error C2059: syntax error: for#include <stdio.h> #define PRINT(n)        { \                                int i; \...

View Article


Free .Net training trial available.>>

Hi ALL,In case any of you want a trial on .Net training take a look at my latest blog post for details.>>http://www.johnaoliver.com/2010/09/free-trial-on-net-training/ Although it appears only...

View Article

MFC Multi-line Tracking Tooltip

hi,How to implement a multi-line Tooltip with different fonts. For example, first line is bigger font and bold.if (message == WM_NOTIFY) { switch (((LPNMHDR)lParam)->code) { case TTN_GETDISPINFO:...

View Article

Error in a simple for loop of a SIMD code

Hi all,the code is like this:void testfun() { float *buf1 = new float[dataLen]; float *buf2 = new float[dataLen]; for(int i=0; i<dataLen; i++) { buf1[i] = 1; buf2[i] = 1; } __m256 *pp1; __m256 *pp2;...

View Article

CListCtrl: Columns do not resize, if more number of columns are added

I have a ClistView class, I am adding too many columns 300+. At some point, the last few columns cannot be resized.Is there a restriction on the number of columns or something to do with pixel sizes...

View Article


WHAT DO I NEED TO IMPLEMENT OPENGL 1.1 FROM VISUAL C++ IN VISUAL STUDIO 2010

I am trying to remove all my gl, glu, and glut downloads and then download the one glut header file, then complete the various installation in the properties pages of Visual Studio 2010 Visual C++, in...

View Article

What is the codepage,Fontface name, Charset and encoding for dispalying...

I am using RichEditControl 2.0, where some chars to be displayed are to be converted to Chinese chars using corressponding codepage, What is the codepage,Fontface name, Charset and encoding for...

View Article


Basics!

I'm a CS student! Got myself MS Windows 7 and 8 and the old Turbo C++ compiler doesn't work seamlessly. Now I have MS Visual Studio 2012 Ultimate. Can anyone help me about how to start making C++...

View Article

how to avoid struct redefinition in MSVC?

Hi All! Please I'd like to know how to do to prevent MSVC from redefining my structs, It's always generating C2011 when trying to compile my code. thanks.

View Article


no instance of overload function of 'AfxBeginThread' matches the argument list

Hi,all, I have the following code that tried to AfxBeginThread:struct RecExtractParam{ bool bthreadrunning; bool bMod; float fSimBlkShpWt; float fSimGrPosWt; float fSimGrTxtAttWt; float fSimGrTypesWt;...

View Article

Flow Diagrams

Hello everybody, I need to develop an application that create flow diagrams (something like visio) for a specific application of engineering. Any ideas where to start?thksRaphael Pugliesi

View Article

Passing a vector from c++ dll to excel VBA

 Hey guys have some previous experience programming in matlab and vba and  recently started to dig into some level languages looking for better perfomace. Honestly i have been sort of lost because...

View Article
Browsing all 15302 articles
Browse latest View live


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