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...
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 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...
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...
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
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!!
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...
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...
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...
658 byte By
Anarchi at 2007-11-20 11:48:05
I have VS2005 Standard, with SP1 installed running on XP SP2.I have made a simple MFC application, it can compile and run ok, there is nothing unique about it. But when I add a new Function to the Dialog Class (using the Add Member Function Wizard) and click Finish, it give me this error:"Failed to...
Hello,<br/>I have a requirement to exit the meaasge box if there is no response from the user.<br/>I want to continue the execution of application after a particular time indicating the "seconds left" in the message box.<br/>Can any one please help me?<br/>Thanks<br/>Mahendra
Hi All, I am using VC++ win32 application in VS 2005.I have created one project as win32 and now I want to add one another project which is omnithread into same solution.I want to make it as static library. How can I use omnithread.h,nt.h and nt.cpp files in this project.And what my project settings...
hello,I want to capture Video(a clip of video) into a file using DirectShow,plz tell me how can i acchive it, I know how to capture a bitmap from a video ,but not getting how to capture a clip from a video and write it into a file...if you have any example of it pl z share with me......Thanks...
153 byte By
Saeed at 2007-11-20 11:48:17
I have a function with prototype<br/> Op(char const *);<br/>Arg 1 is of CString type.<br/>What is the proper conversion method?<br/>Cheers
Hi all,I am facing strange problem. I am executing A.exe and i wrote code in that binary to update the resource of itself ( that is A.exe itself).. But i am not able to update the resource..Is it permitted ?? I think its not ...even its not giving ny error... whats the problem with it ?? ThnxLiveShe...
732 byte By
sadek_84 at 2007-11-20 11:48:26
Hi,I have developed an xml web service using ATL. It worked locally fine, i.e. on the machine where service was built.When i tried to deploy that service on other machine; either manually or through setup project; i failed to discoverthat service. Although i have changed the name of the machine in t...
481 byte By
Ajami at 2007-11-20 11:48:28
Hello,In my code :OnLButtonDown(){ Draw_Object_One(); Invalidate(False); Sleep(2000); Draw_Object_Two(); Invalidate(False);}This code should first draw object one and then wait for two seconds and then draw object two.What is happening is that it does not draw object one but draws object twoand the...
Friends,I am new to windows programming and have made a program for windows mobile 6 that writes the current date and time in hello.txt when it is launched manually.I want to start this hello.exe every time when the device boot. I have read about the services in this forum. I have few questions:1. D...
1392 byte By
kRogue at 2007-11-20 11:48:34
I am trying to use some COM and ATL magic from a console application in VS2005, the following code crashes as it tries to dereference a NULL pointer:CMyDeviceFinderCallBack *CMyDeviceFinderCallBack::Create(void){ CComObject<CMyDeviceFinderCallBack> * pCallback = NULL; pCallback->Creat...
Hello ppl!I have a huge problem with my programing class at school.The task is to create a program that asks the user for his/her first and surname. The entire name shall be stored in only one char variable. When this is done the program writes the surname and then the first name. Besides the variab...
112 byte By
quorsum at 2007-11-20 11:48:46
hello<br/>I just cannot find how to concert ascii code to character.<br/>any help is much appreciated.
2538 byte By
forester at 2007-11-20 11:48:48
I have a dialog based project which encodes file from type A to type B. The functions related to the encoding are export from a third party DLL. When the user clicks the button of "Encode file", a thread named EncodeThread will be created, and all the encoding works are done in the EncodeThread. No...
168 byte By
progeja at 2007-11-20 11:48:58
How to get first N digits programmaticaly ?<br/>UINT64 id = 198103134185665;<br/>UINT res = 0;<br/>// I need res to be first 8 digits: <br/>// res = 19810313;
305 byte By
zarraza at 2007-11-20 11:48:59
Hi i have a dialog and i wan't to create few group boxes dynamically (by new operator). But i don't know how to set text align to center. It is in control editor in properties->styles->horisontal align. But how to set center align of group box text in code when i create dynamic group...
1118 byte By
Fazer1000 at 2007-11-20 11:49:01
Hi,I'm trying to upgrade a project from my old favourite VC6 to Visual Studio 2005 but I'm getting errors with some template classes.The most trivial example of the problem:template <class theCollection>class McbTemplateBaseT : public theCollection{};template <class theItem>cla...
I have to make a sub-program like this:int DonnerVecteur(double *vecteur, int nbValeurs){ vecteur = new double* [nbValeurs]; int i = 0; srand((unsigned)time(NULL)); for (i=0; i<nbValeurs; i++) { vecteur[i] = (1 + rand()%50) + 5; cout << vecteur[i]; } return(0);}And then I need to call it...
Is there any program that could convert a .exe program into a .cpp or make it editable in a compiler?<br/>Thank you
1368 byte By
sargexp at 2007-11-20 11:49:15
Hi,I am quite new to c++ and am stuck with the following, i have created some pseudo code,Event Libclass cEvent{ public: void Join(void (*Function)()); cEvent(); ~cEvent();};void (*SignalReached)();void (*SignalLost)();cEvent::cEvent(){}cEvent::~cEvent(){}void cEvent::Join(int Type, void (*Functi...
I need to write a program that asks a user for a file name. assume the file contains a series of #'s each on a separate line. The program should read the contents of the file into an array, and then display the following data: 1-lowest # 2-highest # 3-total of the #'s 4-average of the #...
222 byte By
majoob at 2007-11-20 11:49:21
C++ console application in Visual Studio 2005.<br/>Debug build runs fine from inside the IDE. When debug build is run outside the IDE it returns error codes and terminates.<br/>Same exe, right? Why would this be?
Hi, basically i would like my program to allow my user to be able specify a folder in which to save things in. My program gives an output of a bunch of files and i would like to be able to give the user the ability to choose the folder inwhich to save these inany ideas? of places i can go away and r...
80 byte By
Saeed at 2007-11-20 11:49:24
I dont seem to be able to find where i can set my project to be of UNICODE type.
509 byte By
Saeed at 2007-11-20 11:49:30
error LNK1104: cannot open file 'mfc42ud.lib' I am running Microsoft Visual Studio 2005Version 8.0.Microsoft .NET Framework Ver 2.0Installed Edition: Standard Microsoft Visual C++ 2005 Where is this UNICODE Support that I need to install on teh disks?I dont seem to be able to find it as...
721 byte By
Saeed at 2007-11-20 11:49:36
Once a project has been changed to the Unicode instead of multi Byte char set , teh content of the log file produced looks weird.How do you accomodate for this ? FILE *f; f=fopen("UT_HSM_ALI.log","a+t"); fprintf(f,"%s %s\n",szDateTime,x); fclose(f);// in unicode looks spooky1 1 / 0 2 / 2 0 0 7 1...
2006 byte By
rimmer at 2007-11-20 11:49:39
hey all..ide: visual studio 2005language: c++i'm having some trouble with the concept of #include files and how they are linked to a solution at compile/build time.constantly receiving (error LNK2001: unresolved external symbol) error at build time when calling functions from external source co...
725 byte By
sockman at 2007-11-20 11:49:41
Hey there,I have a basic structure exception handling branch as follows:__try { // ... process a 3rd party dll which causes some horrible violation} __except (EXECUTE_EXCEPTION_HANDLER) { // ... handle exception gracefully and continue}If I run this code when built in Debug mode, my __except blo...
ok, I've got a homework assignment I need help with. We have to write a program to take a user-inputted (is inputted a word) string, display it in reverse order, and then count the occurrences of the characters in the string, and display the results (just for characters that actually occur in t...
Hi,I am now studying the MFC internals with an SDI application.I commended the full implementation code of CWnd::OnCommand() and CWnd::OnNotify() and I wrote return TRUE.But the event handler of the button in my application is working as defined like in the message map.I am sure that the CCmdTarge...
Hi, I am working on converting a GUI Application to a Command Line application on VC++. The code is highly coupled with the GUI. I thought of hiding the GUI and automatically triggering the events. Is it possible? What can be the other possible ways so that it requires minimum effort. Please note th...