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

Search:

Type: Posts; User: pherweg

Page 1 of 5 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    0
    Views
    634

    How to use XQuery

    Hi,

    do you know how to use XQuery?
    Do i need to use a special parser, or does it work just with MSXML-parser?

    Any hints appreciated

    Peter
  2. Replies
    0
    Views
    559

    remove duplicate

    I have follow xml-data.

    <result>
    <row>
    <cell>Paris</cell>
    <cell>110</cell>
    </row>
    <row>
    <cell>Paris</cell>
    ...
  3. Replies
    0
    Views
    687

    ASP 0177 - failed create object

    Hi,

    need some help while trying to call excel from ASP.

    I'd like to save the result of an SQL-query into an excel-file. So i open excel by using following code.

    dim exApp
    set...
  4. Re: How can I import the addresses from Outlook Express to my program

    Hello,

    unfortunately i have got no example code, and i am no expert for automation and C++. But i know that it is possible.
    For a first glance i wrote some lines of Visual Basic (just to show how...
  5. Replies
    5
    Views
    804

    Re: Dos SET command

    If you call CreateProcess and pass an environment string, this environment will take effect only to the created process. Only the created process knows about the environment variables LOG_NAME,...
  6. Replies
    5
    Views
    804

    Re: Dos SET command

    Hi,

    my MSDN doesn't say, this parameter would not be supported. Maybe you have an older version?

    <MSDN>
    lpEnvironment
    Pointer to an environment block for the new process. If this parameter...
  7. Replies
    5
    Views
    804

    Re: Dos SET command

    Hi,

    if you use CreateProcess to spawn your EXE you can fill the lpEnvironment-parameter with the needed global settings.

    Bye
    Peter
  8. Re: DLL - how do i kow whut functions are available?

    Hi,

    for ActiveX-DLLs you can add a reference to your project and refer to the object catalog (F2).

    For regular standard DLLs ("API-DLLs") you can open the DLLs with depends.exe (ships with...
  9. Re: Waiting for a DOS application to terminate?

    Hi,

    yes, it's the hProcess member of the PROCESS_INFORMATION structure.

    I don't know what happens when the dos-box keeps visible. Try following:
    STARTUPINFO's dwFlags contains...
  10. Re: Waiting for a DOS application to terminate?

    Hi,

    Use OpenProcess to get a handle to the process.
    (Or use CreateProcess to create the process and to obtain the process handle)
    Then use WaitForSingleObject to wait for its termination.
    ...
  11. Replies
    4
    Views
    752

    Re: object library not registered

    I'm not really sure. But i can remember i had a problem like this a year ago, too.

    If you use NT:
    Think it was about the privilegs in the registry, because i installed VB as administrator but...
  12. Re: How can I import the addresses from Outlook Express to my program

    Do you use "Outlook Express" or "Outlook" from "Microsoft Office".
    If you use Microsoft Office's Outlook you can get contacts, mails and so on by using automation.

    Bye
    Peter
  13. Re: How can return a String from C++ DLL to VB?

    Hi,

    your code cannot work, because you just cast a string to a BSTR. But a BSTR has a 4 Byte header in front of its actual text, holding the length of the text.

    Try

    BSTR __stdcall ReturnFn(...
  14. Replies
    8
    Views
    778

    Thank you

    Yes, this article helps.

    Thank you

    Bye
    Peter
  15. Replies
    8
    Views
    778

    Re: size of function in bytes

    Hello Assaf Lavie

    When the hooked application calls a API function (for example TextOutA), i need to run my own implementation of this function. For example this implementation can log all the...
  16. Replies
    8
    Views
    778

    Re: size of function in bytes

    Thank you very much.

    Was very interesting to read.
    But i guess i first have to do some assembler studies, before i get this to run.

    Thanks again.

    Bye
    Peter
  17. Replies
    8
    Views
    778

    Re: size of function in bytes

    You can copy functions.
    I'd like to copy the functions into the address space of another process and execute them as a remote process.

    So i can hook some api calls.

    Bye
    Peter
  18. Replies
    8
    Views
    778

    size of function in bytes

    Hi,

    in my program i create and start a remote thread in another process using CreateRemoteThread.
    Befor i do this i have to allocate some memory in the destination process' address space...
  19. Replies
    1
    Views
    2,083

    Re: How to get the word under mouse pointer?

    Hi,

    i also try to create such a program and found following posting.

    http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=31137&page=&view=&sb=

    Bye
    Peter
  20. Replies
    2
    Views
    873

    get text under my mouse

    Hi,

    when i do a left click on my mouse, i need to copy the word under my mouse into clipboard.

    I saw this on babylon translater, which allows the user to click on a word (in any application)...
  21. Replies
    4
    Views
    9,035

    Re: Convert char * to OLECHAR *

    Hi,

    hope this short example helps.

    Bye
    Peter

    ...
    #include <windows.h>
    #include <objbase.h>
  22. Replies
    4
    Views
    9,035

    Re: Convert char * to OLECHAR *

    Hi Hadi Rezaie,

    you can use

    size_t mbstowcs( wchar_t *wcstr, const char *mbstr, size_t count );



    because OLECHAR is wchar_t.
  23. Thread: Parser in C++

    by pherweg
    Replies
    3
    Views
    475

    Re: Parser in C++

    Hi Ohad,

    refer to http://members.tripod.de/pherweg/c/parser/

    Hope this will help you

    Bye
    Peter
  24. Replies
    1
    Views
    508

    Re: [VC++,COM] Do VB "Implements" in VC++

    Hi,

    use oleview.exe (shipped with Visual Studio) to load the type library and generate an .IDL file.
    Then use MIDL compiler to generate a .H and a .CPP file.

    Bye
    Peter
  25. Thread: Shell command

    by pherweg
    Replies
    4
    Views
    541

    Re: Shell command

    Hello,

    Try
    Shell("""" & App.Path + "\data\my_exe.exe"""

    The result will be
    "c:\my folder\data\my_exe.exe"

    Bye
    Peter
Results 1 to 25 of 107
Page 1 of 5 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)