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

How to capture a folder address with drag and drop ?

I am certain that this is possible, but cannot figure out how to do it. Any ideas greatly appreciated.

View Article


Process wider date range than COleDateTime

I have a ULONGLONG variable uDate which express the number of dates starting from 0001-01-01, up to 9999-12-31. Now I want to convert it into a string like this ‘yyyy-mm-dd’. However, the COleDateTime...

View Article


error C2106: '=' : left operand must be l-value

Trying to show the Row totals and the Column totals. #include <stdio.h> int main() { /* start of main */ #define NUMROWS 5 /* establishes NUMROWS as 5 */ #define NUMCOLS 5 /* establishes NUMCOLS...

View Article

fatal error LNK1120

I can not figure out the error codes from this program. #include <stdio.h> #define NUMS 7 /* establishes NUMCOLS as 5 */ int main() { /* start of main */ void display(int channels [NUMS]); /*...

View Article

Need help with error C2664

I have a question as to why the two shown func args are different? See comments (yes I am novice) struct MyFileClass { .....other code void MyFileOut( TCHAR* pS, DWORD pVar) { TCHAR PrntStrg1[] =...

View Article


doesn't get DWebBrowserEvents2 events

i have a COM object. in it i start a new thread and in that thread i create an internet explorer window. when i try to nevigate to an URL i don't catch the DWebBrowserEvents2 nevigate complete event....

View Article

how to solve this problem? pls help me guyss

Approximating the square root Implement the sqrt function. The square root of a number, num, can be approximated by repeatedly performing a calculation using the following formula : nextGuess =...

View Article

geting a word from a text file in c++

hi im trying to have the nickanme set to be a random name from a text fille full of nickanmes i dont know how to do it heres my code using System; using System.Collections.Generic; using System.Linq;...

View Article


[RESOLVED] Extracting time stamps from pdf

Hi, I am trying to automatically extract all time stamps in a pdf file. These are typically in a line like: when="2010-07-30T15:20:30+04:00" For this I was thinking of using CStdioFile and the...

View Article


mci_close with a cda file

I can not get the sound to stop playing a cda file with MCI_CLOSE. This code works with wav and mpg and avi files. LONG WindowProc() { switch (msg) { case WM_COMMAND: if (wParam == IDC_PLAY) { //A CDA...

View Article

Need help reading an image file

Hello, I have a jpg file. I have extracted the width and the length of the image. I have done that with the help of some codes and markers. Now I need some help about from where the image data starts...

View Article

Problems updating to new Windows SDK

I've just integrated the Windows SDK V7.0A into my VS2005 application, and I'm getting the dreaded "Application configuration error" when I try to run it on an XP machine. It runs fine on the...

View Article

reverse the string sequence in a string buffer

hello again! I made a simple little program that takes text from the clipboard, and spits out all the lines I've copied one at a time (so my program can analyze it). everything works perfectly, except,...

View Article


crashes after displaying 100 bars??? help please.

I have written a MFC dll to interact with an API and it is run by the target program. the first 100 bars are drawn properly but then the program ceases to operate. I am guessing I have a memory leak...

View Article

Redefining DEBUG

I'm building a library that was originally written to be compiled with gcc (I'm using MSVC). Most of the functions look something like this:- Code: void the_function_name () {   assert (...

View Article


error include "commctrl.h" and prsht.h

I am new to vc++, I am developing an application using MFC. I am getting an error in commctrl and prsht header files. these are the errors, c:\program files\microsoft...

View Article

File Stream change its address during writing text contents to the stream

Hi guys, I wrote a program to write text contents to file stream through fputs, the file stream address was changed in the middle of writing text content to the stream (11% text content have been put...

View Article


#import MSVBVM60.DLL unresolved external...

I have this code!. #include "stdafx.h" #include <stdlib.h> #include "windows.h" #import "MSVBVM60.DLL" raw_interfaces_only no_implementation named_guids rename_namespace ("vb6") rename ("EOF",...

View Article

Memory Leak in Constructor?

I know memory leak checking can sometimes have false positives. I'm wondering if this is one of them, or if I'm doing something wrong. I turned on memory leak checking by adding Code: #define...

View Article

MFC CTreeCtrl: GetChildItem(hItem) returning NULL

Hi, I want to check whether any of the files in the MFC tree control has been checked. In the below code the ItemHasChildren is returning true but GetChildItem is returning NULL. Can anyone please help...

View Article
Browsing all 3021 articles
Browse latest View live