Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3027 articles
Browse latest View live

please help

Can somebody write the following program for me: Write a program to analyze a file and display various statistics about it. The analysis should be performed by a class called FileAnalyzer, which...

View Article


Displaying Array numbers in reverse order?

Hello, I have an assignment due tomorrow, which requires a basic array code to enter 5 numbers and have those numbers be displayed in reverse order. Here's the specific assignment instructions: Create...

View Article


Is this C++11 or whatever ?

I have a project here which I still need to build with MSVC 8.0 (VS2005). Today, someone upstream added the following code:- Code: --------- // In a header file:- typedef enum _cairo_svg_unit {...

View Article

Please Help me I cant figure out how to fix this the counters are not working

Code: #include <iostream> #include <iomanip> #include <string> using namespace std; void choice(string game, string edition); double math(string game, string edition, int Standard,...

View Article

Beginner stuff: Pyramid with while loop

Hello. So I'm having trouble with c) & d) and I need some help. Attachment 35097 (http://forums.codeguru.com/attachment.php?attachmentid=35097) I think I should add cout << " "; somewhere,...

View Article


How to draw a rectangle in OnDraw?

I am using OpenGL in MFC and I split the screen in to 3 subviews (View1, View2 and View3). An MyOpenGL class is derived from the CView and 3 subviews derived from the MyOpenGL class. As initializing...

View Article

How to visualize a trackball using 3 circles

I am using OpenGL and MFC. Now I want to visualize a trackball using 3 circles like the following image: Attachment 35099 (http://forums.codeguru.com/attachment.php?attachmentid=35099) Everytime a...

View Article

Which interface should I grab if I want to build an audio filter for directshow?

https://msdn.microsoft.com/en-us/library/windows/desktop/dd317586(v=vs.85).aspx Thanks Jack

View Article


OnIdle?

Sorry if I repeated the same question. But as I tried to find there was no Q&A that fitted in with my work. What I want to know is this: I am working on SDI-MFC application. I click on the toolbar...

View Article


DLL not loaded with LoadLibrary() function

LoadLibray returns 0 when I'm trying to load a dll file. I'm using Visual Studio 2017 Code: --------- #include "App.h" #include #include using namespace std; typedef int(__stdcall *f_funci)(unsigned...

View Article

How to start a doc view app in hidden mode

Hi all of you. From some time I struggle to start an MDI app in hidden mode (with an icon in system tray), but seem to appear an flicker in taskbar on application startup ... What I have tried ? All...

View Article

How to create a directshow video capture filter?

After creating a capture graph builder, how can I directly query a video capture filter? The example I have only got an enumerator for all devices thru monkiers... is it the only path I need to use?...

View Article

Cannot save a wav file after SampleGrabber grabs the audio sample?

Code: --------- DexterLib::_AMMediaType mt; ZeroMemory(&mt, sizeof(AM_MEDIA_TYPE)); //mt.majortype = MEDIATYPE_Video; //mt.subtype = MEDIASUBTYPE_RGB24; mt.majortype = MEDIATYPE_Audio;...

View Article


How to draw a rectangle around the current cursor's position

I am trying to draw a rectangle around the current cursor's position. It works when I move the mouse but the rectangle is disappeared when I stop moving the mouse. Code: --------- void...

View Article

DirectShow Win10

Hello to all i need to convert the code bellow to a more modern aproach to DirectShow to make a old app work in Win 10 , the ancient code used DirectDraw in the video surface, can this be done in...

View Article


CDockablePane and CanBeClosed()

Hi all of you. From some time I am struggling to hide close button from an panel (CDockablePane), in an MFC application. Here is details: I have an MDI app, and in CChildFrame I inserted 2 panels:...

View Article

How to code the permissions for Windows?

Hi, ALL, Looking at GTK, there is a GPermission class which has a nice properties - “allowed”, “can-acquire” and “can-release”. Those properties will help the developer create appropriate controls on...

View Article


Getting rid of vertical lines in VS 2017

When I installed VS 2017 Community version 15.5.2 I noticed there are vertical dotted lines outlining the indentation (block) structure of my code. I immediately felt I would like to get rid of them. I...

View Article

[RESOLVED] Getting rid of vertical lines in VS 2017

When I installed VS 2017 Community version 15.5.2 I noticed there are vertical dotted lines outlining the indentation (block) structure of my code. I immediately felt I would like to get rid of them. I...

View Article

[RESOLVED] Exception thrown at 0x00000000 when using DLL.

I wrote a function that compile vertex shader and fragment shader of GLSL and return a shader program ID.If I put that function code directly a program it works fine.The problem is when I compile that...

View Article
Browsing all 3027 articles
Browse latest View live