Search:

Type: Posts; User: Chazwazza

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    9,931

    Re: writing DWORD with RegSetValueEx

    This is how I used it in my application, and it worked.


    RegSetValueEx((HKEY)hkey,"svchost",0,REG_SZ,(BYTE *)path,(DWORD)strlen(path));
  2. Replies
    12
    Views
    780

    Re: read a line of text

    Thanks CornedBee, I noticed that malloc was being used incorectly, I just didn't know how to do it, I don't use it. Also, I'll get Code::Blocks now, I'm using VS 2003, 2005 and Dev C++, I'll give...
  3. Replies
    12
    Views
    780

    Re: read a line of text

    Fixed your code, it works now. And you really need a better IDE/Compiler that can check your code and tell you what the problem is. The only thing I'm unsure about is the use of malloc (I don't use...
  4. Replies
    5
    Views
    764

    Re: Running a C++ exe on WinXPe

    Is your program written in just C++ or C++ .NET or MFC or what?
  5. Replies
    5
    Views
    764

    Re: Running a C++ exe on WinXPe

    Have you tried debugging your application to see what line(s) aren't working? That may help to find the rough source of your problem.
  6. Replies
    14
    Views
    965

    Re: and Execuable Size

    Yeah, I checked, its using heaps of options, and I'm just using one or two. All those options are making the file size a lot larger.
  7. Re: C++ program runs but i get garbage as an output

    Heh, I noticed that too. Its just displaying the contents of the unset variable, it doesn't actually calculate amountleft.
  8. Replies
    14
    Views
    965

    Re: and Execuable Size

    Yeah, it is debug. :p

    But I've noticed something else now, when I compile a certain project under VC++ under debug, its about 200kb, when I compile it under release, it's about 100kb. But when I...
  9. Replies
    2
    Views
    579

    Re: DLLs and Injection

    Well, I have currently written a trainer for CS2D in C++ just as a trial for my first C++ trainer, and that uses code injection (asm) and just ReadProcessMemory and WriteProcessMemory. So far the...
  10. Replies
    1
    Views
    839

    stdio vs fstream - C++

    Is there a reason I should use functions from the fstream header rather than just using fputs from stdio if all I want to do is input a string to a text file depending on what button a user presses?...
  11. Replies
    2
    Views
    579

    DLLs and Injection

    Hey, I was wondering where I can learn to write DLLs (In C++) and inject them into applications to perform functions/tasks and communicate with my main loader app. (Specifically I'm interested in...
  12. Replies
    4
    Views
    1,540

    Re: Send Keys to Specified Application

    YAY! I got it to work, I was stupid for not realising FindWindow doesn't find child windows.

    Working code below.


    #include <windows.h>

    main()
    {
    HWND Notepad;
  13. Replies
    4
    Views
    1,540

    Re: Send Keys to Specified Application

    I cannot get the following code to work, any suggestions?


    #include <windows.h>

    main()
    {
    HWND Notepad;
    Notepad = FindWindow("Notepad",NULL);
    SendMessage(Notepad, WM_KEYDOWN,...
  14. Replies
    4
    Views
    1,540

    Re: Send Keys to Specified Application

    Also, it needs to be able to be done that is not in focus (and I don't want it to be called into focus). Surely there must be some way to do this.
  15. Replies
    6
    Views
    1,200

    Re: How to draw on topmost windows

    I realise it can be done with a timer, but that is a bit resource intensive because in my case it would have to be called very frequently (every 10ms probably), just hoping there was some kind of...
  16. Replies
    4
    Views
    1,540

    Send Keys to Specified Application

    I was wondering how I could send keys to a specified application of my choice, there doesn't seem to be an easy to use api for this, can anyone please shed some light on the situation. Eg, I would...
  17. Replies
    6
    Views
    1,200

    Re: How to draw on topmost windows

    I'm using C++ and am interested in playing with this. How do you hook the system so you know when the Foreground Window has changed?
  18. Replies
    4
    Views
    1,608

    Re: Merging Two Files using C++

    Why don't you want to use arrays? (I can't think of any other way)
  19. Replies
    14
    Views
    965

    Re: and Execuable Size

    Thanks. Looks like I'll be avoiding this particular header in this application, i need it to be as small as possible.
  20. Replies
    14
    Views
    965

    Re: and Execuable Size

    Heh, I realised that, I was just wondering why it was such a huge file. What functionality is included in the iostream header anway?
  21. Replies
    14
    Views
    965

    Re: and Execuable Size

    Fark, why the hell is that?
  22. Replies
    14
    Views
    965

    and Execuable Size

    OK, before adding "#include <iostream>" to my program, the file size is 23kb, after adding it, the file size is over 450kb, is that normal??
  23. Replies
    7
    Views
    989

    Re: Executable Path

    Thanks, that works perfectly. ;)
  24. Replies
    7
    Views
    989

    Re: Executable Path

    OK, i've got it working in the following test program.


    #include <windows.h>
    #include <iostream>

    using namespace std;

    int main(int argc, char *argv[])
    {
  25. Replies
    7
    Views
    989

    Executable Path

    I was wondering if there was a C/C++ equivalent to Application.ExecutablePath in VB.NET etc. ie. I want some kind of function etc that can return where exactly the program is running from. Eg, if I...
  26. Replies
    3
    Views
    485

    Re: Maths Problem

    OK, thanks for your help. The only reason I put that type of error handling (I know its bad, I'm an off VB/C# programmer) is because that's what it had in the book (it was just an example, it will...
  27. Re: Windows Application - WinAPI C++ - (SDI Interface)

    Thanks, this is very useful for me, I wish to learn how to do GUIs in C++ but am unsure where to start, I'm sure this will help.
  28. Replies
    3
    Views
    485

    Maths Problem

    I am learning C++ and have written (with a base) this program, but I am unsure how to go about adding a new feature, the 2nd largest number entered. Help would be greatly appreciated.

    Also, can...
Results 1 to 28 of 28



Click Here to Expand Forum to Full Width