- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 6
- Upvoting Members
- 7
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
54 Posted Topics
Re: The argument to the "exit()" function is passed back to the calling process by the operating system. If you run the program from a command line, a command line script may be able use the return value to cause it to do something, or it may simply ignore the return … | |
Re: Have a look here [URL="http://msdn.microsoft.com/en-us/library/aa365488%28VS.85%29.aspx"]http://msdn.microsoft.com/en-us/library/aa365488%28VS.85%29.aspx[/URL] | |
Re: Making member private make them hidden from outside world. So that only class's public member(which is only accessible from outside world) can modify them. Which is called abstraction in OOP. This is the great feature defined by OOP and adopted by c++, c#, java like languages. Hiding data member prevents … | |
Re: > combination a; > a.make_combinations(0); If your combination class has member m_progress which you are initializing in OnButton2() function. But to call make_combinations fucntion you are creating another object of class combination whose m_progress is not yet initialized. see this code void combination::OnButton2() { // TODO: Add your control notification … | |
Re: As per my knowledge due to some security issue on vista and above os's SendMessage and PostMessage Api are disabled if they used to send message across process. You can use this API to send msg within process, parent wnd to child wnd. We had faced same problem. To overcome … | |
Hi Guys, Is this right to say Heap is RAM and Stack is Pagefile(HardDrive)? Sorry for silly question. :?: | |
Re: If you have support to MFC library then you can use CImage class. Its very easy to saving image as jpeg using CImage. Just pass handle to bitmap to CImage or load it from hard drive. Call Save function and specify jpeg as saving type. | |
Re: MSDN documentation is good enough for MFC classes instead of looking books for them. [URL="http://msdn.microsoft.com/en-us/library/09dd1ycd%28v=vs.71%29.aspx"]Windows Sockets in MFC[/URL] | |
Re: #include <iostream> first in your base.h | |
Re: Nice said mike.... Really valuable information | |
Re: Most probably you have defined entry point in linker advance setting in visual studio 2008. Make sure there is no additional entry point. | |
Hi, I am just trying to do some down casting. here is the code. [CODE] class Base { public: void virtual test() { cout << "Base Test"; } }; class Derived : public Base { int i; int j; public: void testD() { i = 8; j = 9; cout … | |
Re: To adjust size of your console window, only modify the size of cmd.exe console. Because implicitly cmd.exe provides console to our exe Here is the steps: 1. Goto Run 2. type cmd 3. Right click on TitleBar 4. Goto Property 5. Set the height and width as per your requirement … | |
Hi, My Application's icon is not getting displayed after disabling "System Menu" option from Dialog Property. I don't want to use the system menu and close button. See the attachment for detail. | |
Re: [URL="http://www.codeproject.com/KB/applications/xtimer.aspx"]http://www.codeproject.com/KB/applications/xtimer.aspx[/URL] | |
Re: Refence taken from MSDN wParam The high-order word indicates the distance the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is 120. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward … | |
Re: That is not the solution. Donald was asking right question. There is only two way 1st is to build ur binary with static link to MFC dll or 2nd U will need to ship MFCVC80.dll with ur binary | |
Re: may be this help [URL="http://www.daniweb.com/forums/thread120373.html"]http://www.daniweb.com/forums/thread120373.html[/URL] | |
Re: here is the solution [CODE] char c; std::cin.get(&c, 2, '\n'); [/CODE] | |
Re: You can try PCRE library also which is compatible with c++. | |
| |
Re: check if it is in read only mode or opened in another application. | |
Re: What message do you get when you run application on another PC? Try to build exe with "Use MFC in static DLL" option | |
Re: [URL="http://support.microsoft.com/kb/235496"]http://support.microsoft.com/kb/235496[/URL] You can use Dr. Watson postmortem debugger for crash dump. [URL="http://support.microsoft.com/kb/308538"]http://support.microsoft.com/kb/308538[/URL] | |
How to add a custom button in Non Client Area of Dialog near Minimize and Maximize button. | |
Re: hi, [CODE] void CCTRL::OnBnClickedAns() { UpdateData(TRUE); // 1. Bind control and data // Check string associated with your Edit Box is empty or not if(m_strEdit == "") { // If yes then disable the control GetDlgItem(IDC_ID_EDITBOX)->EnableWindow(FALSE); } UpdateData(FALSE); } [/CODE] | |
Hi, I am using CArchive class to transfer file in my chat application . The problem is that when i send data through CArchive write and flush, the CArchive Read gets hang in last transmission. I've gone through msdn [URL="http://support.microsoft.com/kb/192704"]http://support.microsoft.com/kb/192704[/URL]. it is telling that it requires one more flush or … | |
Re: If you are using vc 6.0 then old fashioned UI u will get. If u are using vc 2005(I dont know exact reason)and in project property if u use [B]"character set"[/B] = [B]Use Unicode Character Set[/B] then u will get ur dialog box's style as newer one. | |
hi , I am using SYSTEM_INFO structure to know the processor architecture of machine. I did this [CODE] SYSTEM_INFO sys; memset(&sys,0,sizeof(sys)); GetSystemInfo(&sys); [/CODE] For Intel Pentium machine it is giving right information i.e. sys.dwActiveProcessorMask 3 sys.dwAllocationGranularity 65536 sys.dwNumberOfProcessors 2 sys.dwProcessorType 586 sys.wProcessorArchitecture 0 sys.wProcessorLevel 15 sys.wReserved 0 but running this … | |
Re: Have you debugged your code. You are getting only first word by [COLOR="Green"]cin>> Phrase;[/COLOR] statement. Why this is happening? Oh Cin delimits the string by [B]SPACE[/B] . Ok, so You need to get whole line first. Than search all space and count all words i.e. no of space + 1 | |
hi, I am creating a ThreadPool. I know that thread pool is collection of [B]live threads[/B]. Its main purpose is to assign task to any of available thread. I am not going through any complex tutorial available on net. So I am just creating threadpool by my own. For this … | |
hi, I want to know how to get name of connected peer. I am creating a simple client server application using winsock2. When I use getpeername() function it gives me IP of client machine. After connecting i did following step [CODE] sockaddr_in peeraddr; int size = sizeof(peeraddr); getpeername(New_Socket, (struct sockaddr … | |
hi, I have one query that create process funcion retuns bool value. And i want to know the exit code of my exe which i ran through create process function. EX. [CODE] int main() { return 5; } [/CODE] this exe is returning 5. I ran that exe by createprocess … | |
Hi, I captured Windows Vista image using Sysprep with some IP. Now i am deploying this Image to machine that has different IP. The image is getting deploy properly but the problem is that it is showing two IP address. EX: Ip of machine which image to be captured : … | |
hi guys, please anyone tell step by step tutorial on COM using vs2005. | |
Re: * Run regedit * go to HKEY_CLASSES_ROOT\* * right-click on *, new > key * name the new key "shell" * right-click on shell, new > key * name the new key "[B]MyOption[/B]" * right-click on Scite, new > key * name the new key "Command" * Click once on … | |
Re: u cant pass function as a parameter. if u want to do so then create function pointer pass it to another function and then call fuction using that pointer. void my_int_func(int x) { printf( "%d\n", x ); } int main() { void (*foo)(int); /* the ampersand is actually optional */ … | |
Re: Include winuser.h structure MSG is defined in that header | |
Re: 1.`argc` stands for argument count. It's the number of arguments passed to the program via the command-line. The first agument is always the name of the program it's self (or rather, the path used to execute it). An easy way to understand this is with the followign program: #include <stdio.h> … | |
Re: it is so easy brother first add menu(create new or existing one) to your resource file. now go to your dialog and select whole dialog not any control then right click on it then goto property and select Menu option and give menu id thats it now compile and run … | |
Re: hi clisen, i did same on my machine but i m not getting this error. | |
Re: try using this preprocessor definition _WIN32_WINNT, WIN32,_WINDOWS, UNICODE, _UNICODE | |
hi friends, i would like to know how to highlight text in dialog's Edit box and List box. Is there any mfc api for that ?? | |
hi , can anyone tell how to define AND operator by regular expression. Actually I want to return match if and only if 2 substrings will appear in string. For example i have string "[B]Successful Logon: User Name: Administrator Domain: Logon ID: (0x0,0x154CB759) Logon Type:2 Logon Process: Advapi Authentication Package: … | |
Hi, I have PCRE library for window 32 bit . I want it for window64 bit From where can i get this? I have source code also and i built it on 64 bit machine but created library is not supporting. | |
hi, can anybody tell that how do we get group SID. we have user SID but how can i know to which group that SID belongs | |
hi, can anyone tell what is major difference between vs2005 and vs6. i want to know coding related difference not related to UI.In what extent vs2005 different for c++ from vs6 | |
hi i want to know how to delete lines from text file using command prompt .is there any specific MSDos command for doing this. or any tool available which read,write text file by running command prompt. | |
can anyone tell is there any utility like glib-mkenum for windows | |
hi there, i have to add .NET Framework version 3.0 Object in object list . i am using install shield 2008.I have downloaded that redistributable from redistributable downloader in tools option but where it got install on my system i dont know. And how to import it in my project … |
The End.