707 byte By
dentiol at 2007-11-20 11:46:34
I am trying to avoid screen blinking so I tried this code: hDC = BeginPaint(hwnd, &ps); HDC memoryHDC = CreateCompatibleDC(hDC); HBITMAP hMemoryBmp = CreateCompatibleBitmap(hDC, 700, 700); HBITMAP hOldBmp = (HBITMAP)SelectObject(memoryHDC, hMemoryBmp); // // // painting...
962 byte By
Anarchi at 2007-11-20 11:46:36
I have a standard MFC Dialog in VC2005. It is a simple file installer that runs, shows a file copy dialog, copies the files, and closes.I have put all the usual Initialization code in OnInitDialog(), resetting variables etc..Now what I want to do is run a function straight after OnInitDialog() has f...
Sorry guys for my n00by question but what exactly does return do? If I'm writing a fuction and it returns a variable named x what exactly happens to the value of x?
The following code below takes an array of string items (tokens) and searches for the lexographically largest, well it should anyways. The problem is that the program seems to reach the base case just fine, hand back and do the first comparison than BOOM. The stack dumps. No warnings or anything. An...
197 byte By
Saeed at 2007-11-20 11:46:40
How do you determine if you are compiling under the debug or release<br/>if there any thing like?<br/>if compiling under debug <br/>#include "a_d.h"<br/>else <br/>#include "a.h"<br/>endif
1231 byte By
thaikick at 2007-11-20 11:46:41
Hello guys...I've added a tab control in a dialog and i named the tabs according to the lines below TCITEM tabItem; tabItem.mask = TCIF_TEXT; tabItem.pszText = _T(" &Main "); //1st title m_cTab.InsertItem(0, &tabItem); tabItem.pszText = _T(" &Secondary ");//2nd title m_cT...
1927 byte By
Yasmin19 at 2007-11-20 11:46:42
Dear Friend!I need some help here,I have create a program for chatting and send file application through modem(i'm using TAPI for this)so far i'm able to establish the connection and send text messages(chatting),but i haven't success for data transfers.For data transfers i have create...
Hi All,I am working on win32 application in that solution I have included new project in which I have one header file and I want to include that header file in my win32 application's file(any .h or .cpp).But when I do this I got the error like .....cannot include file ,no such directory.And als...
2197 byte By
jrice528 at 2007-11-20 11:46:45
just need help with the "Is there another contestant" y/nto loop the program back to the begining if i pressed y and to exit if i hit n#include "Stat.h"#include <iostream>using namespace std;void getJudgeData(int &);double calcScore(Stat s);int main(){ Stat s; int score1 = 0, score2...
Hey,I am having difficulties writing a recursive method that displays all permutations of a list. It has to be recursive and not iterative and it has to take in a list<int>. I can write the method using a string parameter or making it iterative, but I can't for the life of me (i've...
Hi,I have a third party application which does not support any copy or paste option (Ctrl+C, Ctrl+V etc). But I desparately wanted to paste data in that application's window. Is there any way to do this?Any application we can write do achieve this ? I am new to MFC/Windows programming. -Piyush...
219 byte By
Saeed at 2007-11-20 11:46:49
I am sure a few of you<br/>have a function that would convert a CString like "FE5A3D..." to a CByteArray or a char[] or whatever in its binary form (half the length).<br/>Woudl you mind sharing it?<br/>Cheers
Possibly you could check it out<br/>www.lost.eu/6ac28
Hello all,<br/>I want to make a exe file on my button click event. How to do so?
i need to write a program that input a source file, then input a substitution file that contain the pattern and replacement words, and after that it create a new file that contains the result of editing the source filei was thinking of using the array, when it read file then read the substitution an...
Hi all.How can I get the coordinates IHTMLLIElement (Highlights, Latest releases, Using your computer, ..) at www.microsoft.comcode:pDoc2 - pointer to the document frame containing element pElement - pointer at the element Text - text linksvoid CExplorerWindow::GetLinkRect(CComPtr<IHTMLDocument2&...
143 byte By
kranti at 2007-11-20 11:47:00
Hi,<br/> Can anybody plz tell me how can i use ResetContent() to remove all items in a combobox if i only know the object id of that combobox
219 byte By
march3rd at 2007-11-20 11:47:01
I want to use CHtmlView to implement a simple web browser , <br/>when connect to the internet via proxy server , I don't want to see Pop-up windows to input user / password data. How should I do?<br/>Any Idea?
I have a character array a[100]. now when the user gives the input --> <br/>Hello World . I want to get the length of the string Hello World which has to be 11 including the space.the answer i get is 5. how do i get the answer 11?
I have an ActiveX control embedded in a view. I would like to know if there is a way to get a pointer to the main application window from within the control. Of course, I could get the pointer when creating the control and pass it as an argument of some SetMainWnd method, but I am just curious if th...
485 byte By
Shvalb at 2007-11-20 11:47:06
Hi.I have a weird problem.I have a big MFC application, and in this app I have a button when I click it - it opens CFileDialog and I call DoModal() - this is the point when it gets interesting: if the folder contains small amount of files --> no problem - all files are displys in dialog perfectly...
380 byte By
dakk at 2007-11-20 11:47:08
I use mmioOpen function to create and access wav file for recording. First time I record the file everything is OK. The second time I start recording the same file (overwrite) mmioOpen fails with error code 257 (file not found). My mmioOpen: m_hFileRec = ::mmioOpen(ptrFileName, NULL, MMIO_CREATE|MM...
82 byte By
l00p1n6 at 2007-11-20 11:47:10
Is there any use for methods returning constant built in types?<br/>Thank you
805 byte By
MaYo at 2007-11-20 11:47:11
Hi There!I have the following Problem:I have a dialog box with several text controls followed by two radio buttons for a selection. If i use the TAB key to jump from one input field to the next, the Text of the radio button wich has the focus is framed with a dotted rectangle, and the button can be...
Hi all.I'm trying to send one file using tcp connection. i'm using c++ sockets.my app is written in VC++ and is the server side (client side is VB6).Basically, what i want is a way to know if the 'send' command has finished with information sending. Or if the socket buffer is emp...
dear friends, i created a MDI application and name it as ABC.When i execute and open many New window through Window->New Window then the window is automatically named as ABC1:1, ABC1:2 like this.How can i set the customized name to the window with out ant default extension.than...
Hey friends...i have a little(might be big!!) problem...i have AMD Athlon 64 X2 Dual Core 4000+ Processor..NVIDIA Graphics card 0f 7300...also Asus motherboard...also... i've installed a clean 32 Bit Of Windows XP...I'm using the Borland Turbo C++ 3.0 IDE... but when i run the graphics pro...
283 byte By
xnio at 2007-11-20 11:47:19
Hi,<br/>I have an array<br/>double* check=(double*)calloc((DWORD)15,sizeof (double));<br/>to initialize it to zero is<br/>for(long p=0; p<15; p++)<br/>{<br/>check[p]=0.0;<br/>}<br/>same as:<br/>memset(check,0,(sizeof(double)*(size_t)15));<br/>Regards
736 byte By
Sivakk at 2007-11-20 11:47:20
I want to have a program that outputs numbered files using a 4 digit scheme. So file #1 would be file0001. It must be 4 digits.I was thinking of doing something like having a counter of where you're at, converting the digit to a string and putting the appropriate amount of 0's in front o...
Hi.<br/> i have a provision of opening an aspx page in my VC++ application. i do it by http connection. The aspx page is called inside my application window.<br/> the problem is i want the code so that the window escapes when i press escape.<br/>Please help.<br/>Thanks!!
415 byte By
ahoodin at 2007-11-20 11:47:27
Hey guys, I had been trying to do some gmails with SMTP.Here is the code I was using http://www.dev-archive.com/forum/showpost.php?p=1118184&postcount=2 Then I ran into something...TLS. How do I do this? I readRFC 2487 / RFC2487 SMTP Service Extension for Secure SMTP over TLS,but I still don't...
Guys I need your help, (again)<br/>I'm getting different answers to the question:<br/>Can we generate a C++ source code from the binary file? <br/>Some say it's impossible!!! some say I can.<br/>Can some clear it up for me please.<br/>Many thanks...
221 byte By
palz at 2007-11-20 11:47:29
I want to design a snap window in my application.<br/>The design is same as the toolbox window in MS Visual studio .NET 2003.<br/>So please refer some articles for snap window in MFC.<br/>Thanks and Regards,<br/>palz
I hope I labeled this correctly.Good day! The project I'm working on involves a 3rd party client managing software (Ontos). When you select a client, a dll named "DataDLL.DLL" holds the primary keys (4 letter combinations) for the current client. Each of those keys relates to the various dat...
Hi, I have a problem getting a return value from an ATL event.I my definition of the connection point interface I have this method:[id(1), helpstring("method PageFormatted")] HRESULT PageFormatted([in] long pageNumber, [out, retval] BOOL* bRet);The "interesting part" of the wizard-generated Fire_Pag...
I am getting the following Link errors. Please if any body can help me with this it would be great. What maybe causing this?1>-- Build started: Project: gatewayModule, Configuration: Debug Win32 --1>Linking...1> Creating library .\Debug/gatewayModule.lib and object .\Debug/gatewayModule.e...
1175 byte By
dude_1967 at 2007-11-20 11:47:36
Hi,I'm back here after a bit of a pause.Got a real simple question pertaining to the exact specification of the behavior of bool in the C++ language.What is the proper method to assign a boolean value (data type bool) to the result of a comparison?I know that in C the result of a comparison is...
630 byte By
C#er at 2007-11-20 11:47:38
I'm a C++ programmer about 2 years. My question is not about to solve a specific trouble. I'm being scared with the crescent growing of languages like C# and Java. What I would like to know of anyone is the following: These languages will definitely substitute C++? In any kind of market. I...
I'm writing code in C++, and I have 3 classes. 1) Memory 2) Producer 3) Consumer.The Memory class has N blocks of memory; it provides a public interface for Read() and Write() blocks of data. It's thread-safe because of mutex.The Producer class is a thread, will keep Write() data to differ...
2681 byte By
cuba06 at 2007-11-20 11:47:41
I was instructed to create a program that computes the efficiency of an engine based on the specific heat ratio of a gas, for different compression ratios.We were told that we need sub-functions that do a bunch of different things, and then to link them into the main function. I've got what I...
752 byte By
DeepT at 2007-11-20 11:47:44
For one of my applications I have had to move to a service architecture (mostly for vista). One function I noticed isn't working is a system that finds windows. It makes sense because services in Vista operate in sessions 0, and there is no GUI for session 0.However, I still have a need to f...
Hi all. I am using a report style list view in a Form View of a multi-view SDI. What I plan to do here, is to set the width of the columns proportionately. I am creating a List Control at design time. Hence the width is set before the use. What I am trying to is to get the width of the List Control...
i am trying to calculate the average value of a 2d array that is 400x400 elements big. for some reason i am getting a different negative value every time. here is my code i have for the program so far. the data file is too big to attach. hopefully its not necessary. the max value in the data file is...
I was reading on pointers in a PDF I found on the tubes, and I noticed that a code example uses pointers to do a pass by reference.In C++ I last spring, when we wanted to pass a value by reference, we used int& someVar; for the variable in the parameter. The PDF uses int* someVar; instead. As far...
Can anyone help me, i dont know where to start or what to do for this program. Any help would be greatly appricated!Write a C++ main program that stops reading text when a period is entered. The program then displays the sentence with corrected spacing and capitalization. This means only one blank b...
605 byte By
dentiol at 2007-11-20 11:47:55
I have serious problem with Visual Studio. I have quite common code in it I put several breakpoints and run app, it works correctly. I stop it, then run again and still ok. After several debug steps VS stops on breakpoint and freezes definitely, machine is completely down and irresponsible I must re...
392 byte By
mase at 2007-11-20 11:47:58
I just finished searching the threads and I find that I have to use InvalidateRect to repaint the textout, which it works if I have only one line of text displaying, but I have 5lines of texts so when i drag that window displaying texts off the screen or cover it up by another window, my texts get e...
410 byte By
Quell at 2007-11-20 11:48:00
Hey.I was wondering how to id say a tree ctrl in another program, and then query some information from it? I was thinking about injecting a DLL into the running process but i am not sure where to get the documentation for controls such as ListBox, to get the currently selected item. I was unable to...
961 byte By
kenrus at 2007-11-20 11:48:01
I am having difficulty understanding how this situation will work.using std::string;//Prototypesstring MixCase(string& sString);void UseRef (string& sRefString);void UseCopy(string sCopyString);void main(int argc, char** argv){ string MyString; UseRef (MixCase(MyString)); UseC...
1006 byte By
cky83 at 2007-11-20 11:48:02
right now i have something like:void movey(int interval){ float k; int h = 0; for (int i=0;i<m_nCount;i++) { int j=m_pObjectList[i]->m_nObjectType; //3 is the enumerated type that coicides with the HERO object if (j==3) { k=m_pObjectList[i]->m_structLocati...