I have a program that communicates with other programs, and I want the server to ping the other servers in case 1 of them crashes, but if one of them does crash, the Program Generates an error with could not connect, I want this, but I want to use the OnConnectionFailed event handler and not...
I want to overload a forms constructor, but I also want to access the forms Controls and Values, but if I use it it says its undefined, also if I comment them out it says my second Constructor, when it is called is
[Linker Error] Unresolved external '__fastcall...
Right, heres the background
im trying to create an MSN Messenger, Chat program.
I seem to have a few options
1)Use a central UDP connection, and send all data thru that
2)have a central 1 for detecting incoming connections, incoming connections give there local IP this then opens a new form...
I have a form form2, and a main form, FrmMain, (im imaginative)
From a button click in FrmMain, how can I open a new copy of Form2, and pass it some variables?
Nice and simple 1, hopefully :)
Is there a way to have a program running without a Taskbar icon, I want the program to be viewable so I can use it but only have a system Tray entry, otherwise it clutters up the Program List :)
Suddenly out of the blue a peice of code that has been working fine has suddenly given an error. I have a function defined as....
void __fastcall TSidebar::make_dir_listing(TObject *Sender)
{
and declared as...
public: // User declarations
__fastcall TSidebar(TComponent* Owner)...
Is there any way to use the Windows API to get a directory list? I want to use this so that it hides hidden files.
Failing that does anyone know how to use the GetFileAttributes(PATH) Function? Like what Header file its in, and how do I get the specific parts of the return value, as in the...
Okay, ShellExecute dont like me :)
I can get it to run programs, but It wont open files with the defualt viewer (which makes me Dir Browser Pretty Useless)
here is the command for a Program
ShellExecute(Handle,"open","D:\\Project2.exe",NULL,NULL,0);
and for the File...
Is there a program to create a install file, or list, of all the files I need in my program? so I can send some1 a file which will include all the components they will need. can anyone recommend any good programs?
When I run my program, all the form client view not covered my controls (thankfully little) there is a funny pattern of a bevel line and a checkbox type thing, This doesnt show in design view, adn I defo dont want it there :). This a common program, a problem when it is painted? and anyone know...
This code is used to create a Directory list. WHen I Run it and it gets to the ListItem->Caption = "hi"; (thats a test) line it gives an access violation. The code was copied from a Borland Help file Exampe and Edited (with my code); This was from TListView Add() help example. Any...
I would like my program to automatically go to the left side of the screen, how do I find the screen resolution?
Also, does anyone know how to change the program area, like Programs such as ICQ, MSN etc do, so its at the side of teh screen, and when u maximise programs it doesnt go over these.
This is related to my previous topic, but its a seperate problem. Sorry if im cluttering this forum up.
I have one function that sends a query to a host. the NMUDP::OnDataRecieved(); function is called when the data is recieved, and im trying to work out the difference between the two (for a...
Im making a program to Query Halflife Servers, using UDP, and when I send "info", it returns:
"info"
Server responds with the following packet:
(int32) -1
(byte) ASCII 'C' (info response, S2A_INFO)
(string) net address of server
(string) name of the host / server...
How do I read the contents into a file, or more to the point, what am I doing wrong? Here is my code
//HEADERS.....
...
#include <iostream.h>
#include <fstream.h>
...
//MOVING ONTO MAIN CODDE (IN LOAD SECTION OF PROGRAM)
ifstream infile;
String Hello...
I want to create an explorer type window, using TListView (thats the right control as far as I know). How can I get the default icons for each file and display them? is there any list, eg the registry, im not sure about this, any pointers / help appreciated :). Thats all I have to go on, I know...
there has got to be a function to do this....
I need a char pointer, and i need to make the string from my own "String of Text" and TEdit->Text property.
Any thoughts? :)
I have this code...
ShellExecute(0,"open","C:\\Program Files\\Internet Explorer\\iexplore.exe",NULL,NULL,0);
now, that compiles okay, but when i run it it doesnt do anything... iexplore.exe doesnt run.
I have XP, and my m8 has 2k, and it dont work for him either, is that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.