Saturday, May 9, 2009

Error in borland c++ builder?

[Linker Error] Unresolved external 'hasp_login' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\DONGLEP...

Error in borland c++ builder?
Well to find out the exact problem we'd have to know whats after the ...
Reply:you have to link against the hasp library. look at the hasp samples, they have a borland sample. it comes with a makefile or a batch file, which links the hasp library.
Reply:Maybe your setup of your compiler is wrong. patch up this codes.





#include %26lt;iostream%26gt;


using namespace std;





int main()





{


cout %26lt;%26lt; "Hello World" %26lt;%26lt; endl;





return 0;





}





If you can compile and run this, then your compiler is working properly.


Using communication ports on Windows XP with Borlad Builder C++... Please HELPPPP!!!!!?

I need to be able to control a device via the parallel and the serial port. The platform is Windows XP and the compiler I'm using is Borland Builder C++. How can I do this if importb and outportb are no longer supported? I know I have to use the CreateFile function. How does this work? Any help will be appreciated!!!

Using communication ports on Windows XP with Borlad Builder C++... Please HELPPPP!!!!!?
try searching for some code on http://www.codeproject.com I dont know borland c++, but I found some code for doing it in vc++.

wedding floral centerpieces

How do i connect and add info in a database using c++builder 6.0?

i have to make a project in c++ builder and my teacher isn't helping me , or any of my classmates.

How do i connect and add info in a database using c++builder 6.0?
ask your teracher why s/he is not helping you:-)


How to attach needed DLL files in Borland C++ Builder 6?

I wrote a program in Borland C++ Builder 6, but I can run the compiled application just on my own computer, on other computers it asks for some dll files !


How I can attach these files automatically to my application ?

How to attach needed DLL files in Borland C++ Builder 6?
Been there done that. Fortunately, there is an easy solution here.





On your computer with the compilier, open up the project.





Go to "Project-%26gt;Options..."





Click on the "Packages" tab and unclick "Build with runtime packages" checkbox.





Click on the "Linker" tab and unclick the "Use dynamic RTL" checkbox.





Save all and compile. The resulting executable will be bigger, but will not give you the same problems.





The reason that this is happening is that the default behavior of the compiler is to use DLL's for the C/C++ runtime library. Your computer, since it has the compiler installed has these DLL's. If you just copy the executable, the runtime DLL's don't get copied, and the program won't run on a machine that does not have the compiler installed.





The instructions that I have given tell the compiler to directly link in the runtime library so that you program will stand on its own.
Reply:when you transfert the application transfert the DLL files


How I can integrate the project developed and compiled by C++ Builder to the J2EE API – compiling it as DLL?

how I can integrate the project developed and compiled by C++ Builder to the J2EE API – compiling it as DLL, Lib or there is third, better way? And how can I use DLL, compiled by C++ Builder, in J2EE API?

How I can integrate the project developed and compiled by C++ Builder to the J2EE API – compiling it as DLL?
To call a c++ DLL from Java, you need to use the Java Native Interface (JNI).





http://java.sun.com/j2se/1.5.0/docs/guid...


http://en.wikipedia.org/wiki/Java_Native...


Need help how to use the C++ builder compiler v5.5?

help me to those using the latest c++ builder of borland.. i dont still get it of how to enter code to make some programs and run it.. please i badly need this program....

Need help how to use the C++ builder compiler v5.5?
Ok, if you want to know how to make the source code, you just use a text editor like notepad. Then save the file with a ".cpp" extension. If notepad makes the file have a ".txt" extension, you will have to remove that, as the compiler will not recognise it.





If you need to know how to use the compiler and associated tools, have a look at the "readme.txt" file in the "BCC55" folder. That is where you installed the compiler, if you installed in a different place, you will find it there.

bouquet

Borland C Builder 2006 Error on load "QR4RunC2006.bpl can't be installed because it is not a design time ..."

I'm using C++ Builder 2006 Enterprise with Quick Report. Install folders are all 'default'. QR4RunC2006.bpl is a runtime bpl and is located in the System32 folder.

Borland C Builder 2006 Error on load "QR4RunC2006.bpl can't be installed because it is not a design time ..."
At least you solved it all yourself


With C++ Builder, how could you get the color of any pixel of the screen ?

Hi,





For a C++ Builder project, I need to be able to get the color of any given pixel of the screen (especially including the portions of the desktop visible around my application). So far, by using the GetPixel method in the TForm1::MouseMove event, I have been able to get the color of the pixels within my form, but not outside of it (i.e. the desktop surrounding my application). Any idea or code that could help me solving that problem would be very welcome.





Thanks!

With C++ Builder, how could you get the color of any pixel of the screen ?
HDC hDC;


hDC = GetDC(NULL);


COLORREF clr = GetPixel(hDC, x, y);


ReleaseDC(hDC);


My bewilderment about C++ Builder's VCL?

I have learned C and C++ myself ,but not use them adeptly.Now I begin to learn C++ Builder,I was deeply attracted by the VCL's progamming style,it's wonderful!


I am puzzled by some...,so does VCL have some differences with VB?I means the programing work method,is VCL's componet the same as VB's component?


Or VCL is another packing way the same as MFC?


but I can't even see a single word like "virtual"


And I want to know do people in software company like use C++ Builder or Visual Studio,I mean which is more popular?


Thank you!

My bewilderment about C++ Builder's VCL?
I am a Builder fan.





You will generally find that Visual Studio is much more popular than Builder. That said, I have given a quick tutorial on builder to a number of Studio users and have had 100% of them fall in love with Builder within a couple of minutes. Borland just cannot compete with Microsoft's marketing or name despite the fact that their compilers have been significantly better for most of the last 25 years.





Builder is much closer to VB than Visual Studio is. Builder's components are very similar to VB's, but Borland did not go out of their way to copy VB's set.





If you want to get a good start, I highly recommend the Sam's "Teach Yourself Borland Builder" books. You get lots of examples, and even if you do not read the whole book, you will find that it makes a very good reference.


Convert Borland C++ Builder to Visual C++ or C#?

Is there a tool to convert Borland C++ Builder projects to Visual C++ (.net or 6.0 is the same for me) or even C#?





Thanks a lot

Convert Borland C++ Builder to Visual C++ or C#?
Not that I know of. The best you can do is start a blank project and import your source and header files into it, then re compile. You may get errors though, because VC++ may not recognize key words that BC++ does.
Reply:just open the c++ file in visual c++ by specifying the path and file name %26amp; compile it


i think this just works


but there are some commnds in vc++ that may not b supportd by borland(depend on version used)


C++ Builder Executable problem?

My problem seems complicated but I will try to explain it.





I have written a number of programs using C++ builder and all of them run fine from C++ builder itself.





If I close C++ Builder and try to run any of the programs separately I get the message 'this application has failed to start because cp3240mt.dll was not found.Re-installing the application may fix this problem'.





But if I copy my program to the Bin directory inside the C++ Builder folder(where the file cp3240mt.dll is located) the program runs fine.They seem to only run inside the Bin directory.





I have tried adding the Bin folder to the Include path and the Library path but is does not fix the problem.Is it maybe another setting I have to change?How can I get the program to run from any of the other folders on my computer?

C++ Builder Executable problem?
Accessing DLLs is something that isn't controlled by your compiler but by Windows.





Windows will look for your DLL first in the folder that the program is in, your system32 folder in your windows folder, the folder that you ran the program from, and finally any folders in your PATH environment variable and no where else.
Reply:Does not look easy. May be you can contact a windows expert at websites like http://askexpert.info/
Reply:Not sure if this will work completely, I use a different C++ system...





However, the DLL should be in the same folder as the .exe





Try copying the DLL to another folder w/ the exe you are using. It should work. (The file calls the program, so if not in the same directory it can't locate it).