Search:
Type: Posts; User: Sir Loin
Search:
Search took 0.29 seconds.
-
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...
-
You mean like this?
private string strReverse(string Expression)
{
StringBuilder result = null;
for (int i = 1; i <= Expression.Length; i++)
...
-
Here is a method that will extract all of the numbers from a string.
private string ExtractNumbers(string Expression)
{
string result = null;
char...
-
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,
-
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;
...
-
Did you import the namespace System.Windows.Forms?
-
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...
-
Thanks! I'm new to C#, I was trying to create a char array, and failed miserably. Thanks again!
-
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
-
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.
-
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
-
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"...
-
-
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
-
Try this:
Private Sub Timer1_Timer()
Dim intTime As Integer
If intTime% < 1 Then
intTime% = intTime% + 1
Else: intTime% = 1
'Do whatever!
End If
-
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...
-
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...
-
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...
-
It equals Notepad's icon handle; 152109327.
-
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.
-
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
...
-
If you're going to try to hide the fact that you program in VB, why don't you learn another programming language?
-
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...
-
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...
-
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...
-
Which line of code does it highlight when you click 'Debug'?
-
GetSetting returns a string, not an integer/long, so it can't be >. Try:
If not getsetting() = vbnullstring then
'Do something
end if
or:
-
Here is something similar, but it will click the 'Start' button.
#include <windows.h>
void OpenStart(bool Open);
int main()
{
OpenStart (true);
-
oops. I should have scrolled down a little farther. lol
-
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...
-
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...
-
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.
...
-
Here is an example of what I mean. :)
-
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
-
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...
-
You can put something in the control's Click event.
Like this:
Private Sub Command_Click()
Debug.Print "YOU CLICKED COMMAND1!"
End Sub
-
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
-
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...
-
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...
-
You save the value as type "REG_DWORD." (4)
Hope this helps,
Sir Loin
|
Click Here to Expand Forum to Full Width
|