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

Search:

Type: Posts; User: Jensecj

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    4,769

    Re: Mixing C# and C++

    you cannot mix them, as in writing both in your source code, you can however interop libraries written in c++ and use them that way (dll importing) and as for your hypothesis, almost correct, or will...
  2. Replies
    7
    Views
    53,803

    Re: Send Key Strokes to a specific window handle.

    mind posting the error?

    also, you should probably look into the security features of what ever you're trying to "bot", some games have a lot of restrictions and blocks to make sure people play...
  3. Replies
    7
    Views
    53,803

    Re: Send Key Strokes to a specific window handle.

    a simpler way would probably be



    [DllImport("User32.Dll", EntryPoint = "PostMessageA")]
    static extern bool PostMessage(
    IntPtr hWnd,
    uint msg,
    ...
  4. Replies
    5
    Views
    9,155

    Re: Smtp mail Displayname

    it shows MyDisplayName", because youre writing "\\MyDisplayName\\", and what youre using at the end ( \" ) is an escape character, telling your app to actually type it out, try what toraj said, or...
  5. Re: Kill process like WINWORD.EXE does not work

    since you're already getting the processes by a specific name you wont have to check if it begins with the name you entered, also as stated, you have to use "WINWORD" without the .exe part



    ...
  6. Replies
    33
    Views
    23,668

    Re: multicore support in C#

    C# 4.0 and .net 4.0 will ship with functions supporting multiple cores.
    Untill then take a look here and here.
  7. Replies
    4
    Views
    1,326

    Re: Reading a Process Memory

    There's no need to do a "massive iteration", the reason the value changes is because its using a pointer to point to it, once you figure out the pointer its easy to write into the memory, you might...
  8. Replies
    3
    Views
    8,191

    Re: WindowsIdentity in C#

    To get the username you could simply use System.Environment.UserName.
  9. Replies
    7
    Views
    1,203

    Re: Help with a variable value - Newbie

    its just good programming practice to initialize variable before use, to avoid possible errors.
  10. Replies
    7
    Views
    5,762

    Re: Drawing a simple line on a ListView????

    WPF (Windows Presentation Foundation) is a new way to create GUIs, it uses XAML, making them extremely customizable, you have to choose it when you choose which kind of application you want to...
  11. Replies
    30
    Views
    5,358

    Re: File Path in XML

    well, just dont hardcode it, and make a FolderBrowserDialog to let the user choose a path;



    //need this for the dialog
    using System.Windows.Forms;

    FolderBrowserDialog Finder = new...
  12. Re: Visual C# - Can't make my public class public

    to be able to access it from all over your code you have to make it "global" just declare it out any forms or methods, but inside the namespace.
  13. Replies
    11
    Views
    1,470

    Re: Why is my app working here? Why not there?

    the app should not embed any external libraries at all, also:

    might very well be, if you created the app for .net 3.5, how ever i would expect some sort of error about a version mismatch....
  14. Re: All .NET Languages Look the Same!!! Questions

    all the .net languages go into IL, so they should look a bit alike ;)
    besicly its a matter of taste, for a c++ programmer, migrating to C#/c++/cli is probably easier that to start with VB.net and so...
  15. Replies
    5
    Views
    1,163

    Re: Any idea how to randomize this?

    just read the array normally and randomize which one you choose to be the word chosen?


    string[] items = items;

    Random rnd = new Random();
    rnd.Next(0, items.Length);

    string ChosenWord =...
Results 1 to 15 of 15





Click Here to Expand Forum to Full Width

Featured