Sorry for the delay getting back about this.
Yip I eded up using a class(TObject)...and it worked fine.
Thanks too all.
Jeremy Coulter
But you should not need to use this in Delphi - this is old non OO TP type
code :)
Instead of creating a dynamic record with pointers, create a
Good morning all,
Apologies for interrupting the list with non-Delphi stuff (well it sort of
is), but most of you haven't seemed to mind posting job opportunities here
in the past
We have a vacancy for a Delphi programmer early in the New Year.
The main responsibilities are:-
*
The following
procedure access a method in WFAPI.dll which is an API to Citrix MetaFrame. I
have converted the C header file to delphi, and it seems to work faily well,
except I have trouble when freeing the memory that the dll has created for
arrays. The DLL provides a function called
I
doubt that Delph could correctly free the C array ( they would both have to have
exactly the same structure).
So
you have to use WFFreeMemory call to free the memory.
This
causes Delphi problems (Delphi maybe trying to change reference counts
etc).
A
point. Should this not be declared
Patrick
So is PostgreSQL, Oracle... bout the only one not is MSSQL.
Having said that I try to only use SQL methods that are portable
Neven
- Original Message -
From: Patrick Dunford [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Saturday, 16 December
Hi all.
what is the best way to load a class into a buffer ?
i.e. I have a Class that I need to add to a buffer to send across a TCP/IP connection.
I have been doing socket.SendBuf(msg,sizeOf(msg)); but this only sends garbage.
Am I better to load each of the class items into the buffer char
Nic
Fun next week getting our
first 1Gig Athalon
your actually _buying_ one? Personally, I wouldn't bother - you'll be
running windows 2000 or nt on it, right? so get a dual CPU machine
instead -
a dual 700 should outperform a 1gig in _most_ multi-tasking situations,
without the ability
Jeremy,
In your example, what gets assigned to msg?
Wes
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, 18 December 2000 23:04
To: Multiple recipients of list delphi
Subject: [DUG]: Best way to load a buffer
what is the best way to load a class into a buffer ?
i.e. I have a Class that I need to add to a buffer to send across a TCP/IP
connection.
I have been doing socket.SendBuf(msg,sizeOf(msg)); but this only sends garbage.
Am I better to load each of the class items into the buffer char by char
Hi all,
All of a sudden my Delphi environment (D4) doesn't allow me to set break
points or to step through.
The "Integrated Debugger" checkbox in "Tools/Debugger Options/" is on.
Any ideas?
Thanks,
John Christenhusz
---
That has happened to me in the past. I can't remember exactly what I did,
but try doing a build all and see if that helps.
-Original Message-
From: John Christenhusz [mailto:[EMAIL PROTECTED]]
Sent: Monday, 18 December 2000 10:40
To: Multiple recipients of list delphi
Subject: [DUG]:
This is is basically.
TMessageStruct = Class(TObject)
DataType: char;
Sender : String;
MessageType : char;
BMPIndex: integer;
MessageText : string;
BUT we just realized that this data needs to be encrypted as well, so might do the
savetostream
Check you project options. You may be compiling without debug information.
If file is in a Package then check its options. I had a problem where a unit
was compiled in the
packade without debugger information, and when I compiled my project, which
did have debugger infomation, I couldn't debug
Jeremy,
Doing msg := MyMessageStruct is just sending the memory address for the data
on your PC to another PC. It's not going to mean anything when it gets
there.
One field at a time is the only way to do it. You might also want to
include some extra data when you send so you can be sure that
Hi Stacey,
I've got Debug Information ON.
Has anybody any other ideas?
John Christenhusz
-Original Message-
Check you project options. You may be compiling without debug information.
Stacey
-Original Message-
From: John Christenhusz [mailto:[EMAIL PROTECTED]]
Sent:
I'm just starting a new project and have decided to use Interbase 6 with
IBX.
I've noticed that when saving data to a table, spaces are added to pad the
field out to it's exact length. eg: if I have a field Char(6) and save the
value 'ABC', then what looks like is actually saved is 'ABC '. Why
Use varchar() instead.
-Original Message-
From: Scott Cree [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 2:33 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Interbase spaces
I'm just starting a new project and have decided to use
Interbase 6 with
IBX.
I'm just starting a new project and have decided to use Interbase 6 with
IBX.
I've noticed that when saving data to a table, spaces are added to pad the
field out to it's exact length. eg: if I have a field Char(6) and save the
value 'ABC', then what looks like is actually saved is 'ABC '.
Ah, Excellent. Thanks guys.
-Original Message-
From: Nic Wise [mailto:[EMAIL PROTECTED]]
Sent: Monday, 18 December 2000 14:38
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Interbase spaces
I'm just starting a new project and have decided to use Interbase 6 with
IBX.
With csDropDown, the Text property is largely independent of the item
selected in the drop down list. So you could select an item and then type
something that's not in the list. You should use
iIndex := DocEntryDestCB.Items.IndexOf(ImpDestCode);
if iIndex -1 then
DocEntryDestCB.Text :=
20 matches
Mail list logo