Is there a simple way ot convert a string to a array of char?
var
a: string;
b: array [0..24] of char;
is there a way to get the equivalent:
b:= a; // ??
Thanks
mgauss
SysUtils and dlldata, a unit I created are all thats specified. The dlldata unit is:
unit dllData;
interface
type
PDllCommonData = ^TDllCommonData;
TDllCommonData = record
sToken : string [64]; // make it long enough that typing it is a pain
end;
implementation
end...
Doug,
When I run it in a regular Delphi GUI app I dont see the message. The QApplication object is part of the QT stuff for creating open apps. I dont understand where it comes from in either the console app or the DLL as they are both delphi projects.
In any case is there a way to suppress...
I created a simple CONSOLE applicationt that calls a shared memory DLL to retireve some data. The application is all of 15 total lines. When I run the application I get the following message:
QApplication::palette: This function can only be called after the QApplication object has been created...
I want to be able to execute code and LOCK an NT4 workstation like the LockWorkStation command for Win2k. Is there a function call to make this happen or do you have to fake key strokes to the system?
Thanks
Having a heck of a time getting data back from a C++ DLL that uses UNICODE. I have used Dr Bobs head Convert program to convert the header and get the function address, and structure, that program is EXCELLENT.
The Delphi unit that is generated did not understand TCHAR in C++, neither do I...
WinBatch has the capability to call DLLs in the DllCall function. I can make this work with a parameterless procedure. WinBatch says they can call C/C++ Dlls. When I want to pass parms to my Delphi dll I get a bunch of errors. I have tried cdecl, stdcall thinking they would be the same as C...
I am getting a "Too many files in use error". I have hunted through control panels far and wide and the reg and cannot find where to set the env for this. I remember this used to be a config.sys option, hadn't run into this till I installed Oracle on this machine....
Thanks
Can a DLL have a life of its own. I would like a DLL to have control loop running that could monitor a particular process. I guess in some way that is what a service is but I need to run on all the OSs and I dont like the visibility of a service.
Thanks ..
Can anybody tell me how I can detect if I am connected to a network. Let me clarify, not if the machine should be connected to the network, ie the lan adpator is configured. More like is the lan adpator live....
I guess I could ping a specified connection. But there must be another way other...
TonHu
Thanks for the pointer I will take a look at the others. I have put this code into a loop and probably moved 5-10k files with it, with no problems, it seems to be the notification process....
I notice that when I use NMFTP I can receive notification of a successful upload and download ONCE in a session. If I FTP upload I recieve successful notification, if I immediatley do it again I get not notification. Is there a way to reset the process short of opening another session?
Here is...
I am trying to set the ParentWindow of a BitBtn. I notice this is possible with a TButton. Does anyone know how to set this or expose the property of the class?
Thanks
I have hidden the START button and created a button of my own. The ParentWindow of the button is set to 'Shell_TrayWnd'. I have assigned an event processor for the OnClick of the button but it nevers gets called. How do I assign event method to the button so I get called when the new start...
I figured this out... Just override the the Click method of the TToolButton object. I created my own object from TToolButton and then overrode the Click method:
type
TMyToolButton = class (TToolButton)
private
// you could create other variable here that
// help you identify...
I am using the TToolBar control. I am creating it in code and do not have the control on my form at design time. I need to have a varying number of buttons, this may change during the execution of the program. I can cannot figure out which button is clicked. If I add the button at DESIGN TIME...
Can write the block but the values dont come back properely.
AssignFile (f,'test');
Reset (f,1); //must specify size other wise io err 1784
myObject := TObject.Create;
BlockRead (f,myObject,512);
Any Ideas ? Thanks
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.