Thank you everybody but in my case Member 2463256 reply was useful. Problem resolved!
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Thank you everybody but in my case Member 2463256 reply was useful. Problem resolved!
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hi, I have a function like foo(ref System.Windows.Form objForm) and I need to pass a custom form which is derived from System.Windows.Form that is Custom form :- FormX : System.Windows.Form So, my question is how can I call function foo with object of FormX as ref argument that is something like FormX obj; foo (ref obj); // it is giving compilation error Please let me know the solution
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
DoModal is just returning -1 which means that DoModal is unable to create the dialog.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hi experts, I have a dll that uses MFC as shared dll and it has many dialogs in it & was working fine till the time the project was in VS 2002 but recently I have converted the VS 2002 project to VS 2008 project and now none of the dialog is showing up. So, could anyone please suggest whats going wrong.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hi all, I got into the problem where I have to inherit a COM class/object with another COM class/object. Actually I am creating a component for for reading/writting CAD entities so I have many entities with common properties so, for all the general properties I have to write the property functions in each COM class which is just duplication of code so, I just wanted to create a template base class that will have the set of properties & using which I can make the code reusable. Structure of my component is as follows Document has Entites has Entity information Please suggest me what to do in this situation.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
1. About string.find, it would be elegant to use string::npos instead of -1. 2. About string.substr, Actually it return basic_string and this class has a function called empty which returns true if the string object contains no characters; false if it has at least one character. I guess this would be good practice.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
I mean one process in writting a file which i want to access but before I open it i want to test whether it is written completely or not. I am using this code but it is not working properly // attempt to open existing file. FileHandle = CreateFile (FileName, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); // if unable to open the file // then return failure. if (FileHandle == INVALID_HANDLE_VALUE) { // return failure. return (FALSE); } // if FileHandle // close the open file handle. CloseHandle (FileHandle); return TRUE
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hi All, I am not able to find out the solution of how to find out whether a file is ready to use or not. I have tried several ways to do this but unable to do the same, please refer me to some solution.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hi experts, I have an activex control that is placed on a dialog. At runtime I have the nIDs of all the controls so, by using function GetDlgItem I am able to get the pointer to that activex control as CWnd*. So, My question is how can I get that activex class name or how can i identify whether the pointer is of activex class or not. I have already used typeid, CRuntimeClass, and dynamic_cast but unable to get the required result. Please help me in resolving it.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hi all, Can anybody help in coverting an existing vc++ application to support .net framework. OR please refer me to some link where i can find out the solution to my problem.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
For switching between users u need to impersonate between the users try this link it may help u achive ur task http://www.codeproject.com/KB/system/UserImpersonation.aspx[^]
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Now you have to use an expression to find out like this AND, NOT, OR and grouping parentheses supported. Enclose phrases in quotes. eg. CListCtrl; "Grid Control" ; ((C# AND NOT Grid) OR Spreadsheet) Try this link it gives you info about progress bars http://www.codeproject.com/KB/tree/progresshourglassfx.aspx[^]
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Firstly map not declared as map data_map; if you have to store an int & a string inside the map then declaration will be like this: - map< int,std::string > data_map; In this the integer filed will be your primary field and corresspoding to which you get the data.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
For this you have to use the office automation i.e using the some of the tlb files of office u can use the functions that the software provides. here if u see the power point provides a tool called as "Save As" which gives u the facility to convert the .ppt into the jpg file just u hav to u that tool and then u r on the way
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Use this WinExec("regsvr32 /s path of the dll including the name of dll",SW_SHOW);
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
As far as i get from ur description you want to set the focus on the editbox whenever ur dialog is initialised. in this case you have to code in the OnInitDialog() function where u can use the control variable of the editbox lets suppose m_ctrlBox u have to write m_ctrlBox.SetFocus()
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
at this path <window drive>:\Program Files\Microsoft Visual Studio\Common\Tools\
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hey, You can use void sleep( long millis ) instead of using timer
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hey, When ever you create your edit box create using ES_MULTILINE as the edit box's one of the style. for eg. CEdit* pEdit = new CEdit; pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,CRect(10, 10, 100, 100), this, 1); this will make a edit box vertical scroll enable
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
i believe that value you are retrieving from database in a "variant" variable if so then you can differintiate using the variant type types are:- BSTR FAR* pbstrVal; // VT_BYREF|VT_BSTR. for varchar char cVal; // VT_I1. for char
Regards, Pankaj Sachdeva "There is no future lies in any job" "but" "future lies in the person who holds the job"