No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi All, Can any one tell me the what are the differences between WinSock and WinInet in mfc? Thanks in advance....... |
|
how can we use callback functions in handling events using ActiveX control? Can any one explain with simple example Thanks in advance.. |
|
Hi, I did a program which is dialog based application,in that i add listbox dynamically by deriving a class form CListBox class.and the list box is created in OnInitDialog() method.but when i add the listbox to the dialog using DDX_Control function it is failed to assert the listbox,because 3rd parameter … |
|
Hi, I inherit the class called ListBox form CListBox and by using this class object I create a listbox containing two items in the listbox.when ever i select the item from the listbox the generated message should be handled by the control window by using WM_CONTROL_REFLECT mesage in ListBox message … |
|
Hi Can any one explain how we use CListCntrl class in mfc to track the listby using dialog based application..just simple example.. thanks in advance.. |
|
can any one tell me what is the difference between map and multimap container in STL? thanks in advance.. iam new to this topic.. |
|
Hi, Iam using filestreams to create binary file (c:\\..\\abc.bin).I want to put some checksum when i try to open the file through programming ,like if it is previously modified through another application or done manually.At the point of opening the binary file i need to perform some checksum by checking … |
|
Hi, Iam using ReadDirectoryChangesW function in winAPI to know the access details of a file in a directory.the code is as follows... HANDLE h,hDir; ifstream myfile1; ofstream myfile2; char *buff="",temp[256]=""; int i,length; Entry *head=NULL,*tail=NULL,*e=new Entry(); hDir=CreateFile((LPCSTR)"C:\\sample\\example.txt",GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); h=FindFirstChangeNotification((LPCTSTR)"C:\\sample",FALSE,FILE_NOTIFY_CHANGE_LAST_WRITE); BOOL b=ReadDirectoryChangesW(hDir,buff,1024,FALSE,FILE_NOTIFY_CHANGE_LAST_WRITE,NULL,NULL,NULL); DWORD d=GetLastError(); but i got the error 998 memory access violation.plz … |
|
#include <iostream> #include <windows.h> #include <fstream> #include <string> using namespace std; class Entry { public: char name[50]; int id; float sal; bool b; Entry *next; void clear(Entry *head,Entry *tail) { while(head!=NULL) { head=tail->next; delete tail; tail=head; } } }; int main () { ifstream myfile1; ofstream myfile2; char *buff="",temp[256]=""; int … |