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

Search:

Type: Posts; User: JBudOner

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,067

    Re: C2143, C2653; Weird class errors

    I'm not sure I understand..How would this be circular dependency if both Item.h and Item.cpp don't use ItemDictionary ? I tried it out anyways, and forward declared the Item class in...
  2. Replies
    2
    Views
    1,067

    C2143, C2653; Weird class errors

    Hey Codeguru, I've been having some weird problems on my code when compiling; it seems like my program isn't able to see the Item struct I created on either of my attempts I wrote below:

    ...
  3. Replies
    2
    Views
    1,088

    Re: Lost information

    Hey guys =] Thanks for the help. I ended up getting the answer from another forum, I had to use the extern keyword when declaring my variables.

    Forum post here:...
  4. Replies
    2
    Views
    1,088

    Lost information

    Hey guys, I'm currently having some problems with losing variable information (where the pointers point to, the assigned values, etc.) from different header files.


    I have something like this:
    ...
  5. Replies
    0
    Views
    961

    Downcasting issues

    Hey guys, I'm trying to make an RPG game, and I'm having problems with downcasting. So I've got a class, Item, and a couple inherited classs, Weapon / Armor (two different classes). Now, I've tried...
  6. Replies
    0
    Views
    1,732

    MeasureString problems

    Hey guys, I've been having a problem with my program. I've created a custom control which is meant to act just like a label. The control takes a function I created called getTotalSize, to get the...
  7. Replies
    9
    Views
    2,217

    Re: Reading + Writing XML

    I got it to work now =)

    Check: http://www.dotnetforums.net/showthread.php?p=458300#post458300
  8. Replies
    9
    Views
    2,217

    Re: Reading + Writing XML

    Hey, so I played around with it - still having problems. This is what I have:

    public void WriteXML(String TheParent, String TheChild, String TheValue)
    {
    ...
  9. Replies
    9
    Views
    2,217

    Re: Reading + Writing XML

    Kk I updated it and came out to this:

    public static string LoadXML(String TheParent, String TheChild)
    {
    System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
    ...
  10. Replies
    9
    Views
    2,217

    Re: Reading + Writing XML

    Aright so I changed my code to match yours, and tried changing the WriteXML() to sorta match the LoadXML() method. Came out to:

    public static string LoadXML(String TheParent, String...
  11. Replies
    9
    Views
    2,217

    Re: Reading + Writing XML

    Ok I played around with it some more.. Came out to:

    static string LoadXML(String TheParent, String TheChild)
    {
    System.IO.StreamReader sr = new...
  12. Replies
    9
    Views
    2,217

    Re: Reading + Writing XML

    Anyone?
  13. Replies
    9
    Views
    2,217

    Reading + Writing XML

    Im pretty n00bish so im sure it's just a dumb mistake I did. But I can't read the xml and then write something on it.

    static string LoadXML(String TheParent, String TheChild)
    {
    ...
  14. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    Great =) I tried SendInput() and it worked now. Heres what I put:


    public class Win32APICall
    {
    public const int INPUT_MOUSE = 0;
    public const int MOUSEEVENTF_LEFTDOWN = 0x0002;...
  15. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    =/


    [DllImport("user32.dll")]
    public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, UIntPtr wParam,
    IntPtr lParam);

    public const int WM_NCLBUTTONDOWN...
  16. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    Ya so I tried putting that in the form_load. All that happens is the form pops up and closes right away. So I just commented it out. Also tried the

    public void makeStackOverflow()
    {
    ...
  17. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    Aright I tried

    [DllImport("user32.dll")]
    public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, UIntPtr wParam,
    IntPtr lParam);
    public const int MOUSEEVENTF_LEFTDOWN =...
  18. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    Ya I have the webbrowers on the form already. But need it to simulate what a real person would do for it to work. I made this before with VB 6.0, worked fine, but I wanted to make another version for...
  19. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    *Bump* Any suggestions guys? =( Still can't get it to work.
  20. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    Lol. It's starting with a button, and later I will just turn it into a sub (or whatever they call it in C#). It's sort of a cheat for a game over the net, so I need it to auto click certain places....
  21. Replies
    17
    Views
    7,153

    Re: Simulate Mouse Click

    private void button1_Click(object sender, EventArgs e)
    {
    //CursorPos.SetCursorPos(544, 472);
    Win32APICall.mouse_event(Win32APICall.MOUSEEVENTF_LEFTDOWN, 544, 472,...
  22. Replies
    17
    Views
    7,153

    Simulate Mouse Click

    Hey guys, i've been messing around with this and can't find out whats wrong with it X_x


    public class Win32APICall
    {
    [DllImport("user32.dll", EntryPoint = "mouse_event")]
    public static...
  23. Thread: Pixel Color

    by JBudOner
    Replies
    1
    Views
    621

    Pixel Color

    I've seen a whole bunch of these around, but I can't find one where it's just the pixel color on the form. When I say on the form I mean everything on the form (including web_browser). So how cause I...
  24. Replies
    1
    Views
    705

    Mouse Coordinates

    Hey I need to get the current position of the mouse relevant to the form. I found the code: public static Point MousePosition { get; } ... And I tried:

    private void button1_Click(object sender,...
  25. Replies
    5
    Views
    17,747

    Re: Resize Label on Form

    X_x no lol... I actually replied thanking him to pretend that that's all I needed. I found out slightly after I posted this that all I need to do was change AutoSize property. I didn't think it would...
Results 1 to 25 of 103
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured