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

error LNK2019: unresolved external_ Help me please

I have Visual C++ 2005 and compil error#include"windows.h"#include<GL/gl.h>#include<GL/glu.h>#include"gl/glaux.h"/* Initialize linear fog for depth cueing*/void myinit(void) { GLfloat...

View Article


Setting Breakpoints on a Memory Allocation Number

In the web page: http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx for Visual Studio 2013, the page describes Setting Breakpoints on a Memory Allocation Number. The text is out-of-date with respect...

View Article


RegSetKeySecurity not giving correct results.

Hi All,I have a confusing issue.  When using the code below to create a registry key in HKLM and change it's permissions (I want to make it read/write for members of Users) it appears to work...

View Article

According to §7.3.1.2/3 the call to f() below is not a friend of class...

clang compiles this code, printing 1000. I don't know how that is possible!VS2013 doesn't compile it, as I was expecting.#include <iostream> template <class T> void f(T); namespace A {...

View Article

Loading a Bitmap into a Picture Control

Well I created a Dialog Box, and inside this Box I created a Picture Control and a Command Button. But I don't know how to click this Button at run time and then a bitmap is loaded into the picture...

View Article


Ribbon QAT shortcut keys for splitbutton

Using Visual Studio 2008For a splitbutton on the ribbon (i.e. the main button can execute a command, but also has a dropdown, for example, the Print button, where clicking does a Print, but it also has...

View Article

How to remove horizontal scrollbar from tab control of CTabview

Hello,Is it possible to remove the horizontal scroll of CMFCTabCtrl associate with  CTabview.As per documentation the horizontal scroll bar will appear if CMFCTabCtrl  is created with...

View Article

error C2065: 'GWL_USERDATA' : undeclared identifier

Hi allI am trying to convert a VC6 project to x64 with VS2005 beta 2. Most of the stuff comes over fine except for warnings. One issue however that has me stumped is this error from the subject line....

View Article


Using Forms and VC++ in Visual Studio 2013

In Visual Studio 2013, is it possible to start a VC++ project and use forms?

View Article


cpp between c# and java - JNI

Hi,In a JNI environment, I have a simple java program that calls cpp program which calls c# which returns a Type object back to cpp. Now, I need to return this object back tojava.here is my cpp...

View Article

C++11 enum class, C++/CLI and forward enum declarations

So one of the new features in C++11  is "enum class" which is great and there is the ability to forward declare enums, also great.So I ran into a problem after trying to build a C++/CLI wrapper of an...

View Article

Image may be NSFW.
Clik here to view.

DLL file is missing after successful BUILD

Hello everybodyI have a small problem and I would like to ask for some help.I inherited a small VS solution which has 2 sub-projects. The first sub-project should return an executable file and the...

View Article

redistribution of dll's

I have vs2013 on win7.are there any multithreaded DLL's I need to copy with my my multithreaded applications?[how] can I statically link in VC++? I can't find the switch for it, and grep/find doesn't...

View Article


Un-named namespaces and link time

Does putting code in unnamed namespaces affect link time in any way?Theoreyically, the linker has less data to deal with when linking object files that were produced from different compilation units....

View Article

what is performed during the add dll reference in cpp project

I have a cpp project and I have a makefile to build this project. Now I need to call the poweshell cmdlets from and for that I need to add the "System.Management.Automation.dll" reference in my...

View Article


How to deal with the WM_TOUCH message also moves cursor in C++?

I'm developing an app with touch features on WIN 8, but i found after i handled the WM_TOUCH message, the cursor still moved to the point I've touched(the first touch point).Even I handled the message...

View Article

How to make UI in another thread in mfc

UI not responding while handling file transferring operations in mfc.  So i am trying to implement UI in a Thread.Please helpthanks in advance, sarath sPlease remember to mark the replies as answers if...

View Article


Handling HSTRING with a vector wrapper in a WinRT Component using C++ and WRL

Hello,I have previously asked a question in the Windows Store Apps forum with C++ but I have 0 responses.Here is my thread: Handling HSTRING with a vector wrapper QuestionI have a Vector<T> that...

View Article

String in new line after getting particular word

hi i am getting big string which is like Dear Custromer, Your Bank Accout Information is as below. Account Name:Rushi Account ID: ABCD Account Type:Fix.. i want solution likeDear Custromer, Your Bank...

View Article

VS2012 - Code Analysis C6255 for conversion from CString to const char *

Hello,#include <atlstr.h> int main() { CString str = _T("whatever"); USES_CONVERSION; const char * cnstChar = T2A((LPCTSTR)str);}Code Analysis with 'Microsoft All Rules' generates next warning:...

View Article
Browsing all 15302 articles
Browse latest View live


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