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 ArticleDisplaying 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 ArticleIs 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 ArticlePlease 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 ArticleBeginner 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 ArticleHow 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 ArticleHow 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 ArticleWhich 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 ArticleOnIdle?
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 ArticleDLL 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 ArticleHow 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 ArticleHow 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 ArticleCannot 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 ArticleHow 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 ArticleDirectShow 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 ArticleCDockablePane 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 ArticleHow 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 ArticleGetting 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