Search:

Type: Posts; User: Sir Loin

Page 1 of 13 1 2 3 4

Search: Search took 0.29 seconds.

  1. Replies
    10
    Views
    1,091

    Re: EnumWindows Help

    You should try little things first before moving onto bigger things - that's how I learned. Try getting the AIM window's handle and manipulating it that way, then when you have a good idea of what...
  2. Replies
    9
    Views
    20,064

    Re: strReverse in C#

    You mean like this?


    private string strReverse(string Expression)
    {
    StringBuilder result = null;

    for (int i = 1; i <= Expression.Length; i++)
    ...
  3. Replies
    5
    Views
    35,955

    Extract Numbers From String

    Here is a method that will extract all of the numbers from a string.


    private string ExtractNumbers(string Expression)
    {
    string result = null;
    char...
  4. Thread: C# Api

    by Sir Loin
    Replies
    2
    Views
    718

    C# Api

    Is there an easier way to declare & use API in C# than importing the DLL like so?



    [DllImport("DLL", EntryPoint="blah...")]
    blah blah blah MessageBox(blah...);



    Thanks,
  5. Replies
    9
    Views
    20,064

    Re: strReverse in C#

    Wouldn't just cycling through a string suffice? I'm new to C#, and I've got this code.

    private string strReverse(string Expression)
    {
    string result = null;

    ...
  6. Replies
    5
    Views
    841

    Re: How to get a message box in a dll?

    Did you import the namespace System.Windows.Forms?
  7. .NET applications require more system resources?

    I recently ported a program of mine that was coded in VB6 to C# (just to test my skills), and the C# version requires WAY more memory to run, why is that? The code is almost identical in the fact...
  8. Thread: GetWindowText

    by Sir Loin
    Replies
    3
    Views
    1,274

    Re: GetWindowText

    Thanks! I'm new to C#, I was trying to create a char array, and failed miserably. Thanks again!
  9. Thread: GetWindowText

    by Sir Loin
    Replies
    3
    Views
    1,274

    GetWindowText

    How would I get the text of a Window in C# via GetWindowText API, I can do this very easily in VB, but I can't seem to do it in C#.

    Thanks,
    Sir Loin
  10. Replies
    10
    Views
    714

    Re: Stopping windows from loading.

    You have to add a value to "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" I think it will run your program before the desktop is loaded.
  11. Replies
    5
    Views
    738

    Re: Method problem.

    Oh, thanks. I'll have to read more tutorials. I might just give up on C# and go back to C++, C++ seems easier. lol

    Thanks,
    Sir Loin
  12. Replies
    5
    Views
    738

    Method problem.

    I have no idea what's going on, when I try to run ANY method in a console application, I get some weird error saying "An object reference is required for the nonstatic field, method, or property"...
  13. Replies
    7
    Views
    754

    Re: C# Tutorials

    Thanks guys! :)
  14. Replies
    7
    Views
    754

    [RESOLVED] C# Tutorials

    Does anyone know of any C# tutorials geared towards someone with extensive VB6 knowledge and not too much C++ knowledge; a "newbie". :)

    Thanks,
    Sir Loin
  15. Replies
    5
    Views
    730

    Re: Timers

    Try this:

    Private Sub Timer1_Timer()
    Dim intTime As Integer

    If intTime% < 1 Then
    intTime% = intTime% + 1
    Else: intTime% = 1
    'Do whatever!
    End If
  16. Thread: Subclassing.

    by Sir Loin
    Replies
    9
    Views
    613

    Re: Subclassing.

    I just wanted to learn how to subclass, but I'm too busy with school right now.

    My goal was to create a log manager for AIM, when the user closed the message window, the program would send the...
  17. Thread: Subclassing.

    by Sir Loin
    Replies
    9
    Views
    613

    Re: Subclassing.

    I just wanted to learn how to subclass things throughout Windows, just as an experiment. Here is a poorly coded example of what I was trying to do, but I now know it's not possible to do via...
  18. Thread: Subclassing.

    by Sir Loin
    Replies
    9
    Views
    613

    Subclassing.

    Hello all! It's been a long time since I last posted (school has started again and things like that). I would really like to learn how to subclass things. For example, waiting for the user to put his...
  19. Replies
    7
    Views
    951

    Re: Change Form's Icon to Extracted Icon

    It equals Notepad's icon handle; 152109327.
  20. Replies
    7
    Views
    951

    Re: Change Form's Icon to Extracted Icon

    I'm extracting the icon from an application, the ExtractIcon function returns the handle to the icon of the application you're extracting the icon from.
  21. Replies
    7
    Views
    951

    Change Form's Icon to Extracted Icon

    I am extracting an icon from an application, how would I change my Form's icon to the extracted icon. I've tried using


    me.icon = loadpicture(EXTRACTED ICON)
    AND
    Me.icon = EXTRACTED ICON

    ...
  22. Replies
    7
    Views
    4,115

    Re: Change Window Class Name

    If you're going to try to hide the fact that you program in VB, why don't you learn another programming language?
  23. Replies
    2
    Views
    518

    Re: Interacting Programs

    I don't think you can get the buddies from an AOL buddy list, that is done through AOL's database or something. If you want to get text from windows, send WM_GETTEXTLENGTH & WM_GETTEXT to the window...
  24. Replies
    4
    Views
    512

    Re: FindWindows Problems

    You can also use something like this:


    Function CheckAlreadyOpen(WinTitle As String) As Boolean
    Dim hwnd As Long

    hwnd = FindWindow(vbNullString, WinTitle)

    If hwnd <> 0 Then
    If Not...
  25. Replies
    2
    Views
    1,803

    Get Length of LPTSTR (C++)

    I am trying to get the caption of a Window, but I can trim the chr(0) from the end of the returned string. In VB I could do this with ease, but I don't know where to begin in C++. How do I return the...
  26. Replies
    8
    Views
    887

    Re: getsetting doesnt work

    Which line of code does it highlight when you click 'Debug'?
  27. Replies
    8
    Views
    887

    Re: getsetting doesnt work

    GetSetting returns a string, not an integer/long, so it can't be >. Try:

    If not getsetting() = vbnullstring then
    'Do something
    end if


    or:
  28. Re: Use API to programmatically click button of another app

    Here is something similar, but it will click the 'Start' button.


    #include <windows.h>

    void OpenStart(bool Open);

    int main()
    {
    OpenStart (true);
  29. Thread: PlaySound C++

    by Sir Loin
    Replies
    3
    Views
    695

    Re: PlaySound C++

    oops. I should have scrolled down a little farther. lol
  30. Thread: PlaySound C++

    by Sir Loin
    Replies
    3
    Views
    695

    PlaySound C++

    I started learning C++ recently, and I have to make my program play a WAV file.

    In VB6 I would easily do this using the PlaySound API, but in C++ I need to include a header file, which header do i...
  31. Replies
    34
    Views
    1,653

    Re: working with the random cmd

    I'm sure he meant something like this:
    Private Sub Form_Load()
    Dim Strings As String, FF As Integer

    FF% = FreeFile()

    Open "C:\Documents and settings\Dean\Desktop\A.txt" For Input Lock Read As...
  32. Replies
    8
    Views
    1,020

    Re: Month number...

    Yeah, use the Month function. :)


    msgbox Month(Date$)


    EDIT: Oops, sorry. I don't know any that return the number of a month besides the Month function. I'm sure you can write your own tho.
    ...
  33. Re: Remove close,minimize and maximize button but retain the icon

    Here is an example of what I mean. :)
  34. Re: Remove close,minimize and maximize button but retain the icon

    I don't think it's possible. You CAN make the form borderless, make a custom title bar, and put a imagebox with your icon set as its picture.

    -Sir Loin
  35. Replies
    5
    Views
    779

    Re: Specific Color!

    I'm not sure if this will work, but try and see. :)

    Option Explicit

    Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long) As Long
    Private Declare...
  36. Replies
    4
    Views
    492

    Re: Find a control

    You can put something in the control's Click event.

    Like this:


    Private Sub Command_Click()
    Debug.Print "YOU CLICKED COMMAND1!"
    End Sub
  37. Thread: always run?

    by Sir Loin
    Replies
    3
    Views
    607

    Re: always run?

    You can use a timer for something like that, if you add code to the Form_Load event, it will only be executed once, when the form loads. Try the timer. :)

    Hope this helps,
    Sir Loin
  38. Replies
    5
    Views
    756

    Re: Hexadecimal Registry Value(help again)

    Option Explicit
    Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
    Private Declare Function...
  39. Replies
    5
    Views
    756

    Re: Hexadecimal Registry Value

    Sorry! :)


    Option Explicit
    Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
    Private Declare...
  40. Replies
    5
    Views
    756

    Re: Hexadecimal Registry Value

    You save the value as type "REG_DWORD." (4)

    Hope this helps,
    Sir Loin
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width