Quantcast
Channel: Visual C forum
Browsing index pages (15302 articles)

In a DLL why should a wstring pointer not work?

Hello,MyFunc() does not build and MyFunc1() builds and works. I get the following error for MyFunc(): error LNK2019: unresolved external symbol _invalid_parameter referenced in function "void * __cdecl...

View Article


Condition block regarding port forwarding rules.

I may have understood why some developers may have issues with restricting port forwarding.Is it possible, for example:IF user parses SSH port forwarding THENDISPLAY MESSAGE BOX port forwarding request...

View Article


SendMessage for keystroke is not working

 Hi all could you please tell me why this code does not work? It should simulate the pression of TAB and then arrow DOWN, but nothing happens. I´m sure I have the right handle to the window, because I...

View Article

multiple keyboard events on single key

Running the code below and pressing a key once results in two separate keyboard events with the output being1 1Kindly advise Thank You Cheerios#include <iostream> #include <cassert>...

View Article

.lib is not a valid Win32 application - Visual Studio 2017

My program is not running due to this error which pops up. I tried building and cleaning my solution but it still does work. I am working in visual studio c++ and have created a static link library...

View Article


class wizard closes itself in VS 2010

I have an MFC app built in VS 2010.  When I open class wizard and select one particular class in the class name drop-down list, class wizard closes.  All other classes can be selected and I can...

View Article

AccessCheck() doesn't work with network mapped driver

HiWe have a NAS installed locally and mapped a folder as local driver letter, suchW .In order to establish the mapping driver, the credential of NAS must be input, and Windows 10 knows about it, any...

View Article

Exception for Custom Memset function with Large array to set value.

I have written a custom Memset function instead of using the one provided by compiler itself. I'm don't see any issue when initializing an array with smaller length but while initializing for larger...

View Article


Visual Studio MFC dialog application. CListCtrl sort function

I created a dialog application in Visual Studio MFC. I use CListCtrl to list some data. Any way to sort List1 or List2 when i press List1 or List2? For example: List1(Name)   List2(Birthday) Bill...

View Article


MIssing C/C++ option under property pages - configuration properties

Visual Studio PRO 2005I can not find the C/C++ option in the Property Pages window under Configuration Properties.My list goes General, Debugging, Linker, Manifest Tool, etc...I am trying to set up...

View Article

How to get Unicode output from cl.exe?

Hello,I have a code that runs "cl.exe" by CreateProcess. Then I parse the output from "cl.exe". All works fine with English characters. But if output contains non-English characters, I get "???????"...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio MFC dialog application. CListCtrl function

I created a dialog application in Visual Studio MFC.I use CListCtrl to list some date. (Item and Content)I don't change any code in CListCtrl's  cpp and h files but CListCtrl color was from gray to...

View Article

Getting weird WLAN_AVAILABLE_NETWORK_FLAGS value from...

I am working on software that is supposed to check a wireless network connection to a DSLR camera. When I call WlanGetAvailableNetworkList(), the entry for my local wifi network looks fine. (dwFlags =...

View Article


MFC-Resizing the tree control to accommodate collapsing items

Hi,I am using CTreectrl in combobox's dropdown.How to resize the CTreectrl to accommodate collapsing items. When expanding the nodes, the items should be visible without showing horizontal bar and when...

View Article

Visual Studio MFC dialog application. There are duplicate IDs in resource.h

I created a dialog application in Visual Studio MFC. I copy some button and edittext from A.rc to B.rc in resource view. B.rc ->  There are duplicate IDs in resource.h Any good way to sort out IDs...

View Article


C++20 chrono is_clock addition missing

I recently discovered the existence of is_clock in the chrono library, and according to cppreference it's a C++20 feature.  Unfortunately I can't link it at the moment since my account is not verified...

View Article

[ winapi ] Direct2D and scrollbar control and GUI questions

I have idea create GUI with direct2d. As I looked at documentation about direct2d and winapi, I discover similarities with WPF. My idea is subclass window controls (buttons, scrollbar, listbox etc...)...

View Article


Image may be NSFW.
Clik here to view.

Visual Studio MFC dialog application , Press button to clicked

I created a dialog application in Visual Studio MFC. I create BN_CLICKED function to enable IDC_CHECK1. Icreate DOUBLECLICKED function to other functoin.When i call DOUBLECLICKED function will call...

View Article

Simple (I hope) c++ question - cout an object of a user defined class

I am not sure if this is the right forum for this question but it is the nearest that I have been able to find.This code was adapted from code supplied in the book c++ for dummies. I would like to be...

View Article

Image may be NSFW.
Clik here to view.

VS2015 watch window can not dispay eigen MatrixXd

code is below MatrixXd P_ = MatrixXd(5, 5);P_.fill(0);P_(0,0) = 1;P_(1,1) = 2;P_(2,2) = 3;P_(3,3) = 4;P_(4,4) = 5;std::cout << "P_ =" << std::endl << P_<< std::endl;platform is...

View Article
Browsing index pages (15302 articles)


Latest Images