CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ajbharani

Page 1 of 17 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    1
    Views
    7,148

    Kill a thread started by AfxBeginThread

    CWinThread* myThread;
    myThread = AfxBeginThread(ThreadFunction, this, THREAD_PRIORITY_NORMAL, 0, 0);


    If I want to kill this thread, how to do that?

    Thanks
  2. Replies
    1
    Views
    6,305

    Using GetLocale function

    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?

    Thanks.
  3. Re: Table lock after integrity maintanence completion

    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.
  4. Table lock after integrity maintanence completion

    Hi All
    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...
  5. Replies
    3
    Views
    7,057

    Re: Serialization of GUID variable in MFC

    OK. Thanks.
  6. Replies
    3
    Views
    7,057

    Serialization of GUID variable in MFC

    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)
    {
    ...
  7. Replies
    1
    Views
    3,335

    Re: Need help with homework program

    Please be precise in asking questions.

    Read this: http://www.codeguru.com/forum/showthread.php?t=366302
  8. Replies
    5
    Views
    1,480

    Re: Parsing Comma Delimted Strings

    Since you have posted in VC++ forum, I could suggest you go for CStringT::Tokenize.

    Also, look at this thread.
  9. Re: Why is my clipboard missing half the stuff ?

    Your memory allocation should be twice for unicode. Try this


    #include <windows.h>
    #include <tchar.h>

    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int...
  10. Re: How do I redirect output of my console using PsExec?

    http://www.codeguru.com/faq.php
  11. Replies
    2
    Views
    494

    Re: file manipulation

    Mark your thread "Resolved" if you dont expect an answer anymore!
  12. Re: How do I redirect output of my console using PsExec?

    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...
  13. Re: How do I redirect output of my console using PsExec?

    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...
  14. Re: How do I redirect output of my console using PsExec?

    The above command created the output you quoted.

    Call the function like this


    CreateAndLogProcess("netsh firewall show opmode","D:/Log.txt");
  15. Re: How do I redirect output of my console using PsExec?

    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...
  16. Re: How do I redirect output of my console using PsExec?

    You can achieve a similar functionality using the below function. Pass the log file name as a parameter.


    void CreateAndLogProcess(char szProcess[], char szLogFileName[])
    {
    const int...
  17. Replies
    3
    Views
    1,726

    Re: c++ calling a dll

    Please use code tags and make your codes more readable. You can find information on code tags here
  18. Replies
    7
    Views
    6,917

    Re: Unicode CString conversion to int

    Thanks. Let me look into it.
  19. Replies
    7
    Views
    6,917

    Unicode CString conversion to int

    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 =...
  20. Replies
    9
    Views
    2,318

    Re: ListControl Password Field

    Ya.. ok :)
  21. Replies
    9
    Views
    2,318

    Re: ListControl Password Field

    OK. Let me try! Thanks!
  22. Replies
    9
    Views
    2,318

    Re: ListControl Password Field

    :) 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...
  23. Replies
    9
    Views
    2,318

    Re: ListControl Password Field

    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...
  24. Replies
    9
    Views
    2,318

    ListControl Password Field

    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.
  25. Replies
    3
    Views
    9,901

    Re: Is User control possible in java

    Do you mean custom UI control? If yes, you can view this link
Results 1 to 25 of 409
Page 1 of 17 1 2 3 4





Click Here to Expand Forum to Full Width

Featured