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

Create a variable number of vectors

I have used the following piece of code to read multiple .dat textual files and parse them, the code will print out the tokens. Further I have used 3D vector to store all data after reading process for...

View Article


MFC Ribbon and screen readers?

I have inherited an application which uses the CMFCRibbon class, and am being asked to expose its functionality to screen reading software such as JAWS.  I do not have JAWS available to me for testing,...

View Article


Windows Search Indexing

On the Disk Properties, there is a box you can check for "Allow files on this drive to have contents indexed in addition to file properties".  I'm writing a program that has to check if this checkbox...

View Article

Image may be NSFW.
Clik here to view.

ListView add SubItems from a text file problem

Hello,I trying to add SubItems from a text file in a listbox.I have a bug right now,Example if i have 1 2 3 4 5 in my text file it will display it but it will aslo multiply every items by 5.How can i...

View Article

Collision questions

I need some help with precise collision in my game. I already got code working, but somehow it glitches up when I land on the ground. First, here is the collision code:bool check_collision(...

View Article


Image may be NSFW.
Clik here to view.

Howto add multiple menu items to windows shell extension?

Hi,I am trying to add 2 menu items to the shell context menu, for some reason it adds only the first menu item but skip the second. In the picture you can see it added "Menu 1" but did not add "Menu...

View Article

Keyboard hot keys seem to permanently lose focus

Forum  -  I have a small Windows Forms application written in Visual C++ using Visual Studio 2008. The appuses a GUI which contains six control Buttons, each of which employs the Button_Click() event...

View Article

WriteFile causing exception writing location 0x00000000

I have this code and at WriteFile I get this exception: "First-chance exception at 0x7515DEE1 (KernelBase.dll) in ConsoleApplication1.exe: 0xC0000005: Access violation writing location 0x00000000."int...

View Article


CHTMLVIEW

hi,when i use chtmlview in mulitydoc app,and load websit in several CMDIChildWndEx,then i switch them,when the physical memory is deplenished,i got  a exclamation mark "!"  page.How can i...

View Article


Listview right click context menu

Hello,Anyone know how to make a context menu in a listview?I am using Winforms.

View Article

Using Session Monikers in Windows Server 2008

I need to launch a COM out proc server from a Service running in Session 0 to any other session. I have tried the sample code provided in http://msdn.microsoft.com/en-us/library/aa383539(VS.85).aspx ....

View Article

Image Rotation with 1 degree precision using OpenGL (intended to work in GPL)

i want to rotate an BMP image/ image Buffer with 1 degree precision in z-axis(Width & Height wont get changed) only by using OpenGL and i want to Export the Rotated image & save it as a BMP...

View Article

Missing fci.lib in Windows SDK 8.0

Error 1 error LNK1181: cannot open input file 'fci.lib'This lib was previously, in Windows SDK 7.0 avaliavle on the lib folder but is missing in 8.0 The include files fci.h and fdi.h are available also...

View Article


Setting location URL to CHtmlView

I am having set of CHtmlView(web browser) instances in a tab control for the user to explore the web pages.In some cases, I am downloading the page content and just setting the content to the CHtmlView...

View Article

Utility project copying externals is never run again in VC2010/VC2012, is...

Hello,we are porting our VS 2008 code to 2012 and we've noticed quite a change in the handling of utility projects in 2012.We use utility projects to copy large sets of 3rd party binaries into output...

View Article


Cannot create a Excel 2013 workbook in Visual Studio C++ 2010

Hi all,I have a section in my project that creates a Excel workbook. It works fine with the Excel 2007 in my computer but it does not work with Excel 2013 in our customer's computer. Does anyone know...

View Article

MoveFileTransacted - Transactional NTFS (TxF) issue / question

I need a mechansim to rename a file in one atomic instruction on Windows.'rename' and 'MoveFileEx' do not do this on Windows.  I found the TxF api call MoveFileTransacted which does.This works fine,...

View Article


What does ClearCommError rc=24 mean?

I'm using OverlappedIO and I'm calling ClearCommError inbetween reads.  But I've noticed that I get ERROR_BAD_LENGTH (24) for most of my calls (cbInQue and cbOutQue are both zero as well).   In the...

View Article

Order that WM_KEYDOWN and WM_CHAR are sent to Window Function

#include <Windows.h> LRESULT CALLBACK WindowFunc(HWND,UINT,WPARAM,LPARAM); char szWinName[]="MyWin"; char str[80]; int WINAPI WinMain(HINSTANCE hThisInst,HINSTANCE hPrevInst,LPSTR lpszArgs,int...

View Article

my DLL depends on my Startup project

I have this scenario in a Visual Studio soluion:  foo.exe is my start-up project.  bar.dll is a DLL that depends on .h and .lib files from the foo.exe project.  bar.dll is dynamically loaded by...

View Article
Browsing all 15302 articles
Browse latest View live


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