Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 92
Search took 0.03 seconds.
Search: Posts Made By: cuterita7
Forum: .NET 04-22-2009, 10:47 AM
Replies: 1
Views: 4,724
Posted By cuterita7
IsMultiThread in Delphi.NET

Hi

I am creating a library in Delphi for .NET,I get the following error "Undeclared identifier: 'IsMultiThread'"
at the following line of code IsMultiThread :=True;

How can I specify that the...
Forum: General 04-04-2009, 08:00 AM
Replies: 3
Views: 4,044
Posted By cuterita7
RE: writefile

Hi

I am trying to write a text into a log file.Using your code I wrote the following

procedure TForm1.Button1Click(Sender: TObject);
var
strLine:String;
hflog: HFile;
...
Forum: General 04-03-2009, 04:37 PM
Replies: 3
Views: 4,044
Posted By cuterita7
writefile

Hi

I have a procedure that sends a parameter of type HFile to another procedure.The latter must use the HFile parameter and write a string to the file using writefile.(I don't want to use...
Forum: .NET 03-31-2009, 03:17 PM
Replies: 0
Views: 5,068
Posted By cuterita7
WriteFile in Delphi for .NET

Hi

I have the following code in Delphi for .NET

procedure TForm1.Button3Click(Sender: TObject);
var
StrLine : string;
fDebug:String;
hfDebug: HFile;
arrofBytes:TBytes;
Forum: General 03-30-2009, 03:43 PM
Replies: 1
Views: 1,628
Posted By cuterita7
TopLeftcell.Offset

Hi

I have the following lines of code but I didn't catch what is the TopLeftCell.Offset?

TopLeftCell: Variant;
Data: Variant;

TopLeftCell := ExcelApp.Range['A2'];...
Forum: General 02-06-2009, 03:46 AM
Replies: 2
Views: 1,084
Posted By cuterita7
display date only

hi

i have the following code:

var
Fdate:TDateTime;
DisplayFormat:String;
Begin
DisplayFormat := '';
EDate1.Text:=FormatDateTime(DisplayFormat,Fdate);
Forum: General 01-09-2009, 04:05 AM
Replies: 0
Views: 1,001
Posted By cuterita7
GetConsoleOutput

Hi

The following function doesn't work under Delphi for .NET,does anyone know how should I write it under .NET?

function GetConsoleOutput(const Command: String; var Output: TStringList):...
Forum: General 12-30-2008, 12:30 AM
Replies: 1
Views: 2,541
Posted By cuterita7
undeclared identifier Hinstance

Hi

I have the following code,it works under delphi 6 but not in delphi for .net

procedure LoadIniFromRes(Ini: TMemIniFile);
var
ResStream : TResourceStream; // Resource Stream object
...
Forum: General 12-22-2008, 05:17 AM
Replies: 0
Views: 1,020
Posted By cuterita7
Shell_NotifyIcon

Hi

I am converting my delphi6 project to Delphi for .NET

so i need to convert the following line of code to .NET

Shell_NotifyIcon(NIM_MODIFY, @TryIcData);

Var
TryIcData: TNotifyIconData;
Forum: General 12-19-2008, 12:09 AM
Replies: 1
Views: 1,054
Posted By cuterita7
Get version of an application

Hi

the following function gets the version of an application but it didn't work under .NET

function ExeFileVersionInfo(FileNameVar:String): String;
var
V1, // Major Version
V2, ...
Forum: General 12-18-2008, 06:39 AM
Replies: 0
Views: 901
Posted By cuterita7
Excel Range

Hi

I have the following code:

var
rangematrix:Variant;

X :=15;
Y := 3;
rangematrix:= ExcelApp.Range['A1',ExcelApp.Cells.Item[X,Y]].Value;
Forum: .NET 12-18-2008, 06:32 AM
Replies: 6
Views: 4,711
Posted By cuterita7
Forum: .NET 12-18-2008, 04:29 AM
Replies: 6
Views: 4,711
Posted By cuterita7
RE: Excel in VCL.NET

i defined

var
Worksht:Worksheet;

Worksht:= ExcelApp.ActiveWorkbook.Sheets.Item[cbolist.itemIndex+1];
Forum: .NET 12-18-2008, 03:48 AM
Replies: 6
Views: 4,711
Posted By cuterita7
RE: Excel in VCL.NET

THanks

I need one more question

i'm trying the following:

Worksheet := ExcelApp.ActiveWorkbook.Sheets.Item[cbolist.itemIndex+1];

but i got the following error:
E2010 Incompatible types:...
Forum: .NET 12-18-2008, 12:41 AM
Replies: 6
Views: 4,711
Posted By cuterita7
Excel in VCL.NET

Hi

How can I create an Excel application and open a workbook in delphi for .NET?

the following code is written in delphi 7 I want to convert it to delphi.NET

ExcelApp := CreateOleObject...
Forum: General 12-17-2008, 12:19 AM
Replies: 0
Views: 789
Posted By cuterita7
assigned

Hi

What is the equivalent of
if assigned(varPrd) then
begin
Finalize(varPrd);
varPrd:= nil;
end;

in VCL.NET
Forum: General 12-16-2008, 03:25 AM
Replies: 3
Views: 5,040
Posted By cuterita7
RE: vararrayof

it didn't work because ArrCol is passed as an array parameter to a function ,
well I don't know what will output
vararrayof([1,1,1])?
can you give me some explanation about vararrayof([1,1,1])?
Forum: General 12-16-2008, 01:37 AM
Replies: 3
Views: 5,040
Posted By cuterita7
vararrayof

Hi

I have the following code written in Delphi7,I want to convert it to Delphi.NET

procedure TForm1.Button1Click(Sender: TObject);
var
ArrCol: array of integer;
s:String;
begin
s:='';
Forum: .NET 12-14-2008, 10:37 PM
Replies: 1
Views: 32,260
Posted By cuterita7
StrPas in VCL.NET

Hi

I have a project written in delphi 7 and I want to convert it to delphi for .NET

var
varsep: integer;

varsep := Pos(DateSeparator,StrPas(pChar(ShortDateFormat)+varsep));

How could I...
Forum: General 12-12-2008, 05:10 AM
Replies: 3
Views: 958
Posted By cuterita7
RE: TOleVarData

Hi mike

i tried your suggestion and i got the following error:

E2010 Incompatible types: 'Variant' and 'TOleVarData'
Forum: General 12-12-2008, 03:37 AM
Replies: 3
Views: 958
Posted By cuterita7
TOleVarData

Hi

This doesn't work in Delphi for .NET app:

if resObj.Fields[i].Value = null then
resObj.Fields[i].Value:= 0.00;

compile Errors are:
E2015 Operator not applicable to this operand...
Forum: .NET 12-11-2008, 06:56 AM
Replies: 9
Views: 5,445
Posted By cuterita7
RE: win32 with Delphi.NET

In delphi6 if we declare an array like
arr1 = array[1..10000000] of double;
we should use ReAllocMem to change the storage size of arr1.(The size may be smaller or bigger).

How can I achieve the...
Forum: .NET 12-11-2008, 04:41 AM
Replies: 9
Views: 5,445
Posted By cuterita7
RE: win32 with Delphi.NET

if so how can i rewrite the code for:

ReAllocMem(sname,(i + 1) * 19);

thanks
Forum: .NET 12-11-2008, 03:45 AM
Replies: 9
Views: 5,445
Posted By cuterita7
RE: win32 with Delphi.NET

thanks Mike for your response
In the same topic I have a Delphi6 project in which they used ReallocMem many time.
When I tried to open it in Delphi for .NET,the following error occured:
[DCC...
Forum: .NET 12-10-2008, 03:32 AM
Replies: 9
Views: 5,445
Posted By cuterita7
RE: win32 with Delphi.NET

To be more specific I'll give an example:
procedure TForm1.Button1Click(Sender: TObject);
var
myString : string;
myCharPtr : PChar;
i : Integer;

begin
// Create a string of...
Forum: .NET 12-10-2008, 03:24 AM
Replies: 9
Views: 5,445
Posted By cuterita7
RE: win32 with Delphi.NET

well,the project references a unit in which we define the types
suppose we have the following variable:
pNationalite : ^TTblOfStr10;

where TTblOfStr10 = array[0..10] of String[10];
Forum: .NET 12-09-2008, 11:52 PM
Replies: 9
Views: 5,445
Posted By cuterita7
win32 with Delphi.NET

Hi,

I have some Interfaces created with Delphi6.I have to a lot of variables declared as Pointer and when I try to compile,
some compile errors happens.
Error message:
"Unsafe pointer...
Forum: General 12-09-2008, 05:33 AM
Replies: 1
Views: 2,538
Posted By cuterita7
TPosition

Hi

I have Delphi6 unit and I want to be able to run it in Delphi 2007,when I build the project the following error occured:
Incompatible Types:'TPosition' and 'Pointer'

the error occured at...
Forum: .NET 12-05-2008, 10:55 PM
Replies: 5
Views: 6,520
Posted By cuterita7
RE: VCL.NET

Hi

In the following code:
procedure TFrmMain.TblInitialization(DataSet: TDataSet);
var
ds: TMSTable;
begin
ds := TMSTable(DataSet);
Settables(ds, sconn);
end;
Forum: .NET 12-05-2008, 09:48 PM
Replies: 5
Views: 6,520
Posted By cuterita7
RE: VCL.NET

Mike, I tried your suggestion but I still get the same error
'Constant object cannot be passed as var parameter'

any suggestion?
thanks
Forum: .NET 12-05-2008, 06:38 AM
Replies: 5
Views: 6,520
Posted By cuterita7
VCL.NET

Hi

I am migrating from VCL to VCL.NET,I got the following error "Constant object cannot be passed as var parameter" at the following line:
Settables(TMSTable(DataSet),sconn);

My code is:...
Forum: General 12-05-2008, 05:25 AM
Replies: 1
Views: 769
Posted By cuterita7
Variant type

Hi

I am using VCL.NET And I tried to declare a variable as Variant but I got the following error:
Undeclared identifier: 'Variant'

My code is:
var
v: Variant;

any help
Forum: .NET 08-21-2008, 12:54 AM
Replies: 1
Views: 4,313
Posted By cuterita7
Foreach in Delphi.NET

Hi

I am trying to convert a C# code to Delphi.NET but since there is no Foreach in Delphi.NET, I couldn't.

My code is:

private void cmd_CheckAllItems(object sender, RoutedEventArgs e)
...
Forum: General 07-11-2008, 12:46 AM
Replies: 2
Views: 908
Posted By cuterita7
get values from a string

Hi

I am using Delphi.NET
I have a String like "1-John".I want to place 1 in a variable and "John" in another variable,in other words the string before the "-" is placed into a variable and the...
Forum: General 07-07-2008, 01:36 AM
Replies: 1
Views: 2,075
Posted By cuterita7
convert string to array of Byte

Hi

I have a TextBox "Text1", I want to convert Text1.Text to ArrayOfByte

Any help?

thanks
Forum: General 06-10-2008, 06:24 AM
Replies: 2
Views: 748
Posted By cuterita7
Type of a file

Hi

I have a form in which the user choose a file using the opendialog and the path and name of the selected file are displayed in a textbox.

How can I know the type of the selected...
Forum: General 06-10-2008, 01:10 AM
Replies: 7
Views: 4,341
Posted By cuterita7
RE: convert binary to string

Hi

After trying I've come to that: I got

bb = {[0]=67 'C', [1]=58 ':', [2]=92 '\', [3]=120 'x', [4]=120 'x', [5]=120 'x', [6]=46 '.', [7]=120 'x', [8]=108 'l', [9]=115 's'}
bb is of type...
Forum: General 06-09-2008, 11:14 PM
Replies: 7
Views: 4,341
Posted By cuterita7
RE: convert binary to string

Hi
I do include System.Runtime.InteropServices But I got the following error

E2250 There is no overloaded version of 'Copy' that can be called with these arguments
Forum: General 06-09-2008, 06:35 AM
Replies: 7
Views: 4,341
Posted By cuterita7
RE: convert binary to string

thanks mike but I didn't catch your point

What do you mean by IMHO?

when I typed
Marshal.Copy(dr.Item('test'), 0, bb, SizeOf(dr.Item('test')));

I got the following error:
E2003 Undeclared...
Forum: General 06-09-2008, 06:20 AM
Replies: 7
Views: 4,341
Posted By cuterita7
RE: convert binary to string

Hi

(I use Delphi.NET)
can anyone help me in converting dr.Item('test') to array of Byte

When I write bb := dr.Item('test') a compiler error appears
E2010 Incompatible types: 'Dynamic array'...
Forum: General 06-09-2008, 04:14 AM
Replies: 7
Views: 4,341
Posted By cuterita7
convert binary to string

Hi

I have a TextBox that is bound to a field in a table which is of type varbinary,the textbox doesn't display anything even the field is not NULL.

How can I make this textbox display the...
Forum: General 06-05-2008, 10:53 PM
Replies: 1
Views: 720
Posted By cuterita7
embedded image

Hi

I have an embedded Image(Resource),I want to place it inside a button

My code is:

stm := Assembly.GetExecutingAssembly.GetManifestResourceStream('image.bmp');
img :=...
Forum: General 06-05-2008, 04:26 AM
Replies: 0
Views: 1,013
Posted By cuterita7
draw image in a button

Hi

I have an Image as a Resource and I want to draw it in a button.Here's my code:

procedure TFrm1.drawimage;
var
img: System.Drawing.Image;
stm: Stream;
gr: Graphics;
begin
Forum: General 06-04-2008, 06:17 AM
Replies: 2
Views: 1,037
Posted By cuterita7
RE: TextBox binding

HI

Do you have any function in Delphi that converts varbinary data to varchar

thanks
Forum: General 06-04-2008, 12:30 AM
Replies: 2
Views: 1,037
Posted By cuterita7
TextBox binding

Hi

I have a TextBox that is bound to a field in a table which is of type varbinary,so the textbox didn't show any data,the grid that contains this textbox is bound to a the table so I can't use...
Forum: General 05-27-2008, 10:20 PM
Replies: 11
Views: 1,598
Posted By cuterita7
RE: ExcelSheetnames

Hi mshkolnik

I tried your suggestion but it stills have compilation error

I have one under TString and under Type and also I have compilation error under OleVariant

thanks
Forum: General 05-27-2008, 06:30 AM
Replies: 11
Views: 1,598
Posted By cuterita7
RE: ExcelSheetnames

What should I include in the uses section?because I got red lines under txls: Type;
lst: TStrings
Forum: General 05-27-2008, 05:59 AM
Replies: 11
Views: 1,598
Posted By cuterita7
RE: ExcelSheetnames

Hi

I tried the following code:

function FillSheetNames(const AFileName: string; lst: TStrings);
var
xls, xlw: Variant;
j: Integer;
begin
lst.Clear;
Forum: General 05-27-2008, 03:07 AM
Replies: 11
Views: 1,598
Posted By cuterita7
RE: ExcelSheetnames

thanks Norrit but I still have one more question

the following procedure returns the ExcelSheet names followed by $,how can I only display the ExcelSheetname without $

procedure...
Forum: General 05-27-2008, 01:52 AM
Replies: 11
Views: 1,598
Posted By cuterita7
ExcelSheetnames

Hi

I want a function in Delphi that takes the path of an Excel file and returns the names of the Excel Sheets

For example if the Excel file contains 3 sheets:
Accounts,Payable,Receivables so I...
Showing results 1 to 50 of 92

 
Forum Jump

All times are GMT. The time now is 12:02 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.