Mciwndm_open
I Send MCIWNDM_OPEN. Then I receive MCWNDM_GETMODE. But I get MCI_MODE_NOT_READY instead of MCI_MODE_OPEN?
View ArticleCan local variable be passed as parameter into a new thread?
Can local variable be passed as the parameter for a new created thread procedure? Here is the example code: Code: void CDLG::some_function() { CString strFileName="abc.doc"; //local...
View ArticleHi some question about Skype Groups?
Dear Programmers, This is my first post ever at the forum CodeGuru, i hope for nice talk experiences and lovely to share my own experiences to you.. My background is especially programming with the...
View ArticleDefault file icon
Hi, ALL, If I don't assign the icon to my executable file (f.e. it's a DOS application), or I have some unknown extension in the file, Windows Explorer assigns the icon to this file. Is there a way to...
View ArticleBackColorCell in LIstView
Hi!! I know how to change the back color of text in th ListView for all the View, but if I only want to change the back color of one cell i don`t find any way. Is it possible? Thanks
View ArticleDifference between two string.
I want to compare two string, and want to see differeince in int form. For example, Code: string first_string="0002AE1"; string second_string="0002AE2"; How can i calculate difference between two...
View Articlekeep getting error need help!
Here is my code so far, the problem is when I debug it I keep getting the same error but everything seems to be correct. The error is: Unhandled exception at 0x00ED8F34 in ENCDEC.exe: 0xC0000005:...
View Articlecreate my own property which passes parameters
Hello, Is it possible to create property which I can pass parameters? would you please give me an example or solution? here is what I would like to do: __property double a = {read=getA("a"),...
View Articlehow to register ATL exe COM
Hi, I created an EXE COM server with ATL. and from the client (DLL COM with ATL) i want to create an instance of the EXE (CreateInstance(CLSID of the EXE)). how do i register the exe so that i know the...
View ArticleShellExecuteW - Help Plz!?
Hi guys, i want to run an .exe file through ShellExecuteW and if there is no .exe file in the path, i would like to return a msg box, but the code Code: if(ShellExecuteW!=ERROR_SUCCESS) is not working...
View Article[Microsoft][SQL Server Native Client 10.0]String data, right truncation
Hi all, I wrote my own SQLDatabase class base on TinyODBC class, and i have problem with my SQLPreparedStatement::SetString method. In my app, i construct new instance of SQLPreparedStatement class and...
View Articlearbitrary sort algorithm
Hi, does anyone know of a C++ sort algorerhythm or library that can take input of a bunch of rows of data and then sort rows by an arbitrary defined order of one of the columns ie sort rows by value of...
View ArticleSome suggestion about .1file type, .2 file type etc
Attachment 31257 Hello I have attached a picture to clarify my problem. In a folder named headsq, a number of files with same name has been saved. I think these are some raw images. Type of file has...
View ArticleCan't intialize C++ Struct with CString in it??
Since CString is part of MFC I think this is the right forum. I'm trying to compile the following and it doesn't work? How can I get the CString to intialize. Code: struct print { int x; //row...
View Articleboost::thread error
Hi, when i try to include <boost/thread.hpp> to my project i gets: error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl...
View ArticleString passing between functions in VC++ SDI application
I am doing an project in SDI. I have two functions name sendtext(CString str) and displaytext(CString inr) both in different class. I have a pointer name pView to send the string str to function...
View ArticleIntercept messages sent to controls on a dialog
If it is possible, I'd like to know how to intercept messages sent to controls on a dialog. I'm working on a large application with a large number of dialogs, each with a number of controls on the...
View ArticleVisual C++ Studio 2008, Intellisense????
Hi! We have a problem with the intellisense and the ClassView window. Sometimes there are a few clases that are incorrectly identify by the intellisense of the program. These classes appears with an...
View ArticleNim Project. It doesn't display the matches but it does display correct number.
Hello everyone, I am having one issue with my project. We are making a game of Nim code.I'm 99% done with it, i worked hard on it and i feel like i did a good job, however my project is not displaying...
View ArticleConditional compilation issue.
Hi, I want to do conditional compilation based on whether it is windows 7 or windows 8. Here is the code below. #if (_WIN32_WINNT >= 0x0602) //Condition to check whether it windows 7 or 8 .Based on...
View Article