I want to use the functions in my c# .net project without writing the logic again in Delphi5 project.
So I exposed this .NET assembly (DLL) as COM object using the regasm.exe tool and then I imported the tlb type library from Delphi5,but the component only have the class BUT without any method. the useless class.
What am I missing? Any help will be highly appreciated.
you can also call netsh command line to perform the connection. It's less flexible but easier to use this command line method than Native Wifi API, but you can decide which one is better based on your project.
There's a small bar with options above the forum, where you can change spacing, the amount of noise, the layout.. and the period from which you want to see the messages. I believe it defaults to 3 months. Change it to "all", and you'll see that this forum isn't empty.
Your might want to try this one[^], this one[^], or this one[^]. Some of them are free which means no warrant for your products, but they are good if you want to have some source codes first and grab some ideas before making decisions.
[plus] Have you considered making your own barcode generator?
Hello and thanks for these links, but as u mentioned
they don't work properly, I don't want to make my own
barcode, I need a profesional OCX to use it in my
project. I've found some of them, but they dont work
on all kind of printers.
By the way, if you want to buy a component, use trial version and prepare a bunch of technique questions (like Help! the code is not working! or It doesn't work on my printer!) for them before purchase, it will let you know how good their programmers are.
By "they don't work on all kind of printers", you mean they can't print the barcode out or the printout can't be scanned? And what type of barcode are you using?
Sorry about the delay, but better late than never I guess ... hehehe...
As mentioned by smags, there are several free and commercial barcode printing solutions. Another one that you might want to look at is the one that comes with tpsystools and is available here[^]
Plus you get the added benefit of getting some really cool tools with it as well. I must admit that I have not used the barcode components that come with it, but I have implemented most of the utilities/classes that come with the package. And it's free!!!
"You cannot code for stupidity"
hello guys... I was planning to learn a little about Delphi. With a little research , I could just figure out that
- There is no Delphi Platform for Delphi Development similar to VC# 2010 Express Edition for C# Development.
There is this Embercadero RAD Studio but it is a 30-Day trial and after that, we have to buy it. So what's the starting point and which book (or any online tutorial) you would suggest. Thanks for any heading.
This world is going to explode due to international politics, SOON.
If you want to be familiar the language first, there are some other pascal compilers available. but I would suggest you use this Embercadero RAD Studio, so that you can play around with Delphi language, IDE, VCL, etc. And you can also access to its big source code depository. You will learn a lot from it.
As for books. I don't have any for recommendation. (unless you want to do some COM programming in Delphi )
As mentioned by Eddy, a good place (if you just want to learn and play around with Delphi - or more specifically Pascal) to look at would be Lazarus, which uses FreePascal. It will get you on the right path and has the added benefit of being cross-platform as well..
Hope that helps
"You cannot code for stupidity"
function TAclasencode.BufToDataBIN(const Buf: TByteDynArray; iStartPos,
iLen, iDec: Integer): Variant;
DefaultLen = 8;
i : Integer;
iTmp : Int64;
arr : array[0..7]of Byte;
pInt64 : ^Int64;
fTmp : Double;
fTmp := 0;
if (Buf[iStartPos] and $80=$80) and (not IsCardinal) then
if Negative then
for I:=0 to iLen-2 do arr[I]:=(Buf[iStartPos+iLen-1-I] xor $FF);
for I:=0 to iLen-2 do arr[I]:=(Buf[iStartPos+iLen-1-I]);
for I:=0 to iLen-1 do arr[I]:=(Buf[iStartPos+iLen-1-I]);
Result := fTmp;
Ha, I wouldn't grab your thought if I didn't come across your post in Quick Answer section. Please edit your post here so that other people would understand.
Ok, first the function might have overflow issue, depending on the logic, and it is not exception safe, leading to unexpected results. But it's nothing to do with your question, so I will pass this part.
1. TByteDynArray is array of Byte. if it's not, the following might be useless.
2. and endian representation is the same on all machines where your codes will run.