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

Search:

Type: Posts; User: am_abbas

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Opening a file which is already opened by another process, Its possible!

    This code example opens the file in Output mode; any process can read or write to file.
    FileOpen(1, "TESTFILE", OpenMode.Output, OpenShare.Shared)
    ' Close before reopening in another mode....
  2. [it is possible in VB6] Re: Opening a file which is already opened by another process

    The same is possible in vb6 using "open" function.


    Open Text1.Text For Input As #filenum
    While Not EOF(filenum)
    Input #filenum, var1
    Text2.Text = Text2.Text + vbCrLf + var1
    ...
  3. Re: Opening a file which is already opened by another process

    The code may look very unprofessional. Reading the msdn help, I have written this class. I dont have a professional training in vb6 or in vb.net. Thanks for your intrest.



    Class rlog
    ...
  4. Re: Opening a file which is already opened by another process

    I could open that file in notepad. Or other similar applications. And the file is for debug process only. So far to monitor the log file we just open the file in a note pad and see how good the...
  5. Opening a file which is already opened by another process

    How to open a (text) file which is already opened by another process. What I am trying to do is reading a log file which is opened by a different process. Could any one please help me.

    Thanks,...
  6. Replies
    2
    Views
    838

    Re: Passing string to a C dll

    When I try to run it in debug mode, I was getting the error. When I executed the exe file in the bin, it started working.
  7. Replies
    2
    Views
    838

    Passing string to a C dll

    I am trying to pass string to a C dll from vb.net. The same is working fine with vb6.
    I dont have any issues in calling the dll from vb6.

    This the cunction declaration I have.
    Private Declare...
  8. Thread: Namespaces

    by am_abbas
    Replies
    9
    Views
    1,162

    Re: Namespaces

    TheCPUWizard,

    If I have to create an object of dum inside main, then what is the use of "using namespace oss;" statement. With out that also it works fine. But as you said, if I follow Ejaz...
  9. Thread: Namespaces

    by am_abbas
    Replies
    9
    Views
    1,162

    Re: Namespaces

    TheCPUWizard,

    Could you pleae clarify indetail. Now after implementing Ejaz method the code started working!

    Reason I prefer Ejaz method, because I can implement my code something like "cout"....
  10. Thread: Namespaces

    by am_abbas
    Replies
    9
    Views
    1,162

    Namespaces

    Hi,

    I am trying to understand the usage of namespace. I have written the below simple code which compiles with out any issues. But while linking I am getting the error "dummain.obj : error...
  11. Replies
    0
    Views
    477

    Reading STDOUT

    I have a C dll which is called in my VB exe. The dll was previously an exe and later converted as dll. There are lots of printf statements in the dll. When I call the dll it prints out messages to...
  12. Replies
    5
    Views
    854

    If would be difficult to find that for all the...

    If would be difficult to find that for all the process. It will be something for the given process name or process id, should be able to find the files attached to the process.
  13. Replies
    5
    Views
    854

    For example MS Word is running, I would like to...

    For example MS Word is running, I would like to find out what are all the files opened in current MS Word session. But the application I am referring to write a log file apart from the files opened...
  14. Replies
    5
    Views
    854

    Files attached to a process

    How to find out the files attached to a process. I am very new to WINAPI. I am finding it difficult to approach this. Any please help me.

    Thanks,
    Abbas
  15. Replies
    5
    Views
    3,707

    RichTextBox1.SelText solved the problem! Thanks...

    RichTextBox1.SelText solved the problem! Thanks for all the replies.
  16. Replies
    5
    Views
    3,707

    sotoasty, Thanks for your reply. But even...

    sotoasty,

    Thanks for your reply. But even after changing it to vbCrLf. I am able to see only one line in the RichTextBox.

    Thanks and Regards,
    Abbas
  17. Replies
    5
    Views
    3,707

    similar to TAIL command using VB

    I am new to VB. I am trying to write a code that works as a log file monitor (like "tail -f" command in UNIX). I have put a RichTextBox in the form to load the log file. But I am not able to use...
  18. Replies
    6
    Views
    523

    I am working with C. I am stuck with C because I...

    I am working with C. I am stuck with C because I work in a API development of a CAD package which only supports C. Thanks you very much!

    Thanks and Regards,
    Abbas
  19. Replies
    6
    Views
    523

    I am trying to have a N*10 array. Thanks for your...

    I am trying to have a N*10 array. Thanks for your interst.

    Thanks and Regards,
    Abbas
  20. Replies
    6
    Views
    523

    Pointer to array

    Hi,

    In the below program, while compiling I getting a warning
    " warning C4047: '=' : 'int (*)[10]' differs in levels of indirection from 'int *' ". But it works as expected. Also I dont want to...
  21. Thread: array pointer

    by am_abbas
    Replies
    3
    Views
    564

    array pointer

    Hi,

    How can I initilize the below pointer array?

    double *pls[4];

    double pls[9000][4]; // Serves my purpose but I dont want to unnecessarily allocate more memory.

    I can initilize a one...
  22. Replies
    4
    Views
    630

    Help in Pointer

    Hi There,

    int *i,t;

    i=(int *) &t; // What does this statement means.... where we use it.

    Thanks and Regards,
    Abbas
  23. Replies
    7
    Views
    1,045

    Hi PaulWendt, I actually work in a API...

    Hi PaulWendt,

    I actually work in a API related to UNIGRAPHICS a CAD/CAM/CAE package. Its API help and examples are rich in C but not in C++. Thats why I am using C. Any how once I master its...
  24. Replies
    7
    Views
    1,045

    I am sorry I should have attached the programme...

    I am sorry I should have attached the programme which I have attached now. The issue is.....

    In the structure there are two variables one is character pointer and a double array.

    What ever I...
  25. Replies
    7
    Views
    1,045

    Strings in Linked List

    I have problem in linked list. When I compile and run the below code I have getting the following out put.

    NM9
    10.000000,11.000000,12.000000,13.000000

    NM9...
Results 1 to 25 of 29
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)