c++builder

linker error with openssl (trying SH1 example)

纵饮孤独 提交于 2019-12-11 02:39:26
问题 I'm trying to compile an example of how to implement SHA1 but I keep getting this error: [Linker Error] Unresolved external '_SHA1' referenced from C:\PROGRAM FILES (X86)\BORLAND\CBUILDER6\PROJECTS\UNIT1.OBJ I downloaded openssl files from their website, I tried both copying the headers directory to my project directory and copying it to my includes directory, but nothing. here's the example code: #include <string.h> #include <openssl/sha.h> #include <stdio.h> int main(int argc, char* argv[])

Building with runtime packages. Which BPLs are needed?

柔情痞子 提交于 2019-12-11 01:59:35
问题 I want to compile my program with 'Link with runtime packages'. It tells me that I need some DB-related packages. But I don't use DB in my program. How do I figure out which BPLs are needed? There is some kind of dependencies viewer? 回答1: Another good tool if you use GExperts (RAD Studio IDE Expert) is the "PE information" included in this tools. Inside the IDE you can obtain the dependencies (BPL's and DLL's) of an EXE/BPL/DLL. And other information about the necessary pachages. If you

Send multiples Images to printer - C++

依然范特西╮ 提交于 2019-12-11 01:50:15
问题 I have a folder with .jpg files I want to send all this images to a printer. I tried with ShellExecute, with two files : UnicodeString filePath1 = "something1.jpg"; UnicodeString filePath2 = "something2.jpg"; UnicodeString cmd = "print"; ShellExecute(Form1->Handle, cmd.c_str(), filePath1.c_str(), NULL, NULL, SW_SHOWNORMAL); ShellExecute(Form1->Handle, cmd.c_str(), filePath2.c_str(), NULL, NULL, SW_SHOWNORMAL); But 2 instances of the Windows printer are created. One for each file. I would like

(Virtual) ListView items get wrong content when hovering over them, from bottom to top

喜你入骨 提交于 2019-12-11 00:11:30
问题 I use C++ Builder 2009 and have implemented a Listview virtually. Recently I learned of an issue that (so far) only happens for 3 people out of thousands. (Obviously there must be more instances, but they remain unreported so far). What happens is that when the user hovers over the items in the ListView control, from bottom to top, the items in the list change. Since the control is implemented virtually the software provides the information via an event and for 'a' reason the software gets

Build from command line in Codegear 2009 IDE

对着背影说爱祢 提交于 2019-12-10 20:52:15
问题 Is it possible to automagically generate a MAKEFILE from the Codegear 2009 IDE? Or build a project from the command line? 回答1: No, but depending on your objective, you may be able to do what you want. If you simply want to do a build from a command line, this is possible. Because CB2009 uses msbuild, you can drive a build which uses all the same options and settings as an IDE build. There is a rsvars.bat file which sets all the environment variables you need and a shortcut to this batch file

Implement derived copy and move constructor for std::string?

穿精又带淫゛_ 提交于 2019-12-10 19:17:06
问题 I'm trying to compile the VTK (7.0) library using Embarcaderos clang 32bit compiler. However, I get a link error at the end that looks like this: [ 56%] Linking CXX shared library ..\..\bin\vtkCommonDataModel-7.0.dll Embarcadero C++ 7.30 for Win32 Copyright (c) 2012-2017 Embarcadero Technologies, Inc. bcc32c.exe: warning: argument unused during compilation: '-auto-dependency-output' bcc32c.exe: warning: argument unused during compilation: '-sys-header-deps' bcc32c.exe: warning: argument

Block windows shutdown

感情迁移 提交于 2019-12-10 18:08:11
问题 I need execute some code before Windows shutdown process each time. So, I want block Windows shutdown process for some time. How can i do it from Java or C++ Builder ? Thanks. 回答1: Use a logoff or shutdown script to launch an exe? This can be set by Group Policy. Of course, I hope you have a good reason (like my corporate build) to do this. As mentioned in comments, what are you tring to do please? 回答2: See response on WM_POWERBROADCAST message. Also take into account that your ability to

C++ Builder vs Delphi vs MFC

白昼怎懂夜的黑 提交于 2019-12-10 17:23:44
问题 I am learning MFC and find it not that easy to use. I've heard a lot about Delphi . researching on Delphi lead me to C++ Builder. does C++ Builder offer a serious and good alternative to C++/MFC ? is C++ Builder better than MFC ? is C++ Builder better than Delphi ? (I've heard many goood things about Delphi) can any one give me a comparison between C++/MFC, Delphi and C++ Builder ? Thanks for the help. 回答1: I'd suggest you go Delphi. My pros for it would be Syntax wise it is very easy and

What is causing desktop shield icon overlay on *SOME* desktops

只谈情不闲聊 提交于 2019-12-10 15:54:48
问题 I have a C++ Builder/Delphi application. It has the following manifest embedded as a resource: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity type="win32" processorArchitecture="*" version="1.0.0.0" name="Manufacturer.Division.MyName" /> <description>MyName</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0"

Application->Processmessages in QT?

淺唱寂寞╮ 提交于 2019-12-10 15:28:39
问题 In Borland 6 I often use this to unstuck program action: Application->Processmessages(); Now, with QT 4.8.1, I don't have found in this foreign (for me) documentation of QT. Can anyone help me? 回答1: In Qt, you'd use the static function QApplication::processEvents() . Alas, your issue is that the design of your code is broken. You should never need to call processEvents simply to "unstuck" things. All of your GUI code should consist of run-to-completion methods that take a short time (on the