Type: Posts; User: ajbharani
Search took 0.03 seconds.
myThread = AfxBeginThread(ThreadFunction, this, THREAD_PRIORITY_NORMAL, 0, 0);
If I want to kill this thread, how to do that?
December 16th, 2009, 05:36 AM
I understand GetLocale function can be used to get the Regional settings information. I need to use this function in VB. Any tips or links?
July 21st, 2009, 02:29 AM
Thanks David. This is a good input. But my issue does not end here. Even the maintenance plan finishes, I am not able to insert anything in that particular table. Other tables are fine.
July 21st, 2009, 01:56 AM
I am using MS-SQL Server 2000. I have a database with n number of tables in it. I have configured a maintenance plan. If I enable integrity check and run the plan, I am not able to enter...
I'm trying to serialize a GUID object in MFC. When I try to archive, I get the following error
My code snippet is this
void MyClass :: Serialize(CArchive &ar)
February 25th, 2009, 04:27 AM
Please be precise in asking questions.
Read this: http://www.codeguru.com/forum/showthread.php?t=366302
February 25th, 2009, 01:51 AM
Since you have posted in VC++ forum, I could suggest you go for CStringT::Tokenize.
Also, look at this thread.
February 25th, 2009, 01:28 AM
Your memory allocation should be twice for unicode. Try this
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int...
February 24th, 2009, 07:48 AM
February 24th, 2009, 07:38 AM
Mark your thread "Resolved" if you dont expect an answer anymore!
February 24th, 2009, 07:14 AM
You can achieve this very well using the following call
system("psexec \\\\MACHINENAME -u username -p password netsh firewall show opmode > \"d:\\log.txt\"");
But the usage of system command...
February 24th, 2009, 06:26 AM
Why do you have to use psexec? Are you trying to run in a remote computer? If not, Just will suffice and you can log the output with just
CreateAndLogProcess("netsh firewall show...
February 24th, 2009, 04:53 AM
The above command created the output you quoted.
Call the function like this
CreateAndLogProcess("netsh firewall show opmode","D:/Log.txt");
February 24th, 2009, 03:09 AM
I'm afraid that is not possible. Because, the command netsh firewall show opmode triggers another external window and runs what you need. So, it cannot be spooled. Also,
were you able to achieve...
February 24th, 2009, 02:33 AM
You can achieve a similar functionality using the below function. Pass the log file name as a parameter.
void CreateAndLogProcess(char szProcess, char szLogFileName)
February 24th, 2009, 02:13 AM
Please use code tags and make your codes more readable. You can find information on code tags here
February 21st, 2009, 02:10 AM
Thanks. Let me look into it.
February 21st, 2009, 12:54 AM
Hello, if I try to convert a CString object to int in Multibyte character set mode, I face no problem.
CString strNumber = _T("1234");
int nNumber =...
February 20th, 2009, 03:57 AM
February 20th, 2009, 03:54 AM
February 20th, 2009, 03:45 AM
:) Yes. I have been doing this actually. But I'm facing a problem now. The data is actually string (passwords with leading zeroes). Can I convert this CString object to DWORD (argument for...
February 20th, 2009, 03:28 AM
Thanks Victor. I'm afraid I cannot go for this solution. Because, I have to populate the list control. The user would change the data and I have to read the text back from the list control. I cannot...
February 20th, 2009, 03:09 AM
Hello, I am using CListCtrl in report view. I need to display the text in a column as a series of astrerisks (for password field). Is this possible to achieve? How can I do that? Thanks.
February 20th, 2009, 01:27 AM
Do you mean custom UI control? If yes, you can view this link
Click Here to Expand Forum to Full Width