Hi Guys, Is this right to say Heap is RAM and Stack is Pagefile(HardDrive)? Sorry for silly question. :?:

Member Avatar
Member Avatar
+0 forum 2

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 << "Derived TestD"; } }; int _tmain(int argc, _TCHAR* argv[]) { Base* pBase = new Base(); // Case 1: Derived* pDerived = dynamic_cast<Derived*> (pBase); //this is causing crash (access violation). Perfectly valid derived dont have memroy for its data member pDerived->testD(); // Case 2: Derived* pDerived1 = static_cast<Derived*> (pBase); //not …

Member Avatar
Member Avatar
+0 forum 5

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.

Member Avatar
+0 forum 0

How to add a custom button in Non Client Area of Dialog near Minimize and Maximize button.

Member Avatar
Member Avatar
+0 forum 1

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 close the connected socket to come out receiver from Read. I did that but for only in case of closing socket it is working but receiver is getting some more garbage bytes in received buffer. where i am doing wrong? here is my code for sending file ... [CODE] do …

Member Avatar
+0 forum 0

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 code on AMD Athelon(tm) 64 processor giving this wrong output sys.dwActiveProcessorMask 1 sys.dwAllocationGranularity 65536 sys.dwNumberOfProcessors 1 sys.dwProcessorType 586 sys.wProcessorArchitecture 0 sys.wProcessorLevel 15 sys.wReserved 0 What am I doing wrong? I just want to know the processor architecture(x64 or x86). Is there any other way to find this.

Member Avatar
Member Avatar
+0 forum 11

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 I have created a class with following property [B]ThreadPoolMgr.h[/B] [CODE] class CThreadPoolMgr { public: CThreadPoolMgr(void); public: ~CThreadPoolMgr(void); private: HANDLE m_hThreadArray[5]; DWORD m_ThreadID[5]; HANDLE m_hMutex; // Handle to mutex object public: void Run(void); // Function which will get executed by thread static DWORD WINAPI ThreadProc(LPVOID Param); // Thread procedure void Initialize(int …

Member Avatar
Member Avatar
+0 forum 5

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 *)&peeraddr, &size); struct sockaddr_in *s = (struct sockaddr_in *)&peeraddr; char* IP = inet_ntoa(peeraddr.sin_addr); cout << "Accepted connection from " << Name << "\r\n"; [/CODE]

Member Avatar
Member Avatar
+0 forum 5

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 but GetExitCodeProcess function is returning 0.

Member Avatar
Member Avatar
+0 forum 4

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 : 192.168.233.125 IP of machine where this image to be deployed : 132.168.233.150 After deployment Ipcomfig command showing these two IPs. I want that target machine should show its current IP not of captured image's IP. Please help....

Member Avatar
Member Avatar
+0 forum 1

hi guys, please anyone tell step by step tutorial on COM using vs2005.

Member Avatar
Member Avatar
+0 forum 3

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 ??

Member Avatar
Member Avatar
+0 forum 12

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: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0 Workstation Name: LC2KEDS1[/B]" and match should be return only for [B]Administrator[/B] and [B]Logon Type:2[/B] if anyone of this found match should not return it only return when both will be there

Member Avatar
Member Avatar
+0 forum 9

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.

Member Avatar
Member Avatar
+0 forum 4

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

Member Avatar
Member Avatar
+0 forum 5

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

Member Avatar
Member Avatar
+0 forum 3

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.

Member Avatar
Member Avatar
+0 forum 2

can anyone tell is there any utility like glib-mkenum for windows

Member Avatar
Member Avatar
+0 forum 2

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 so please tell me step by step procedure to add that object.My installation is an install script project

Member Avatar
+0 forum 0

I have to develop an application which is similar to outlook in which i have to create a button by which we can transfer mail message to user specific folder.I am using MFC for that application. I found that there is api called MAPI(messaging application programming interface) which provide two function OnFileSendMail and OnUpdateFileSendMail. I want to know sample code of this function and how to use them.

Member Avatar
Member Avatar
+0 forum 1

I just want to know the logic of how to create bouncing ball application using MFC .

Member Avatar
Member Avatar
+0 forum 1

I got the latest Direct X SDK and Microsoft Visual Studio and I want to learn how to code games in C++. I self learn most of my coding, but I want to know a straight out beginners book for C++ and Direct X Gaming. Can you guys suggest anything?

Member Avatar
Member Avatar
+0 forum 1

can anybody tell from where download free ebook of mfc tutorial

Member Avatar
Member Avatar
+0 forum 1

The End.