Relative Content

Tag Archive for mfc

Điện năng từ nước tiểu

Lần đầu tiên các chuyên gia Anh đã thành công trong việc sử dụng nước tiểu để tạo ra điện, mở ra hướng phát triển mới cho ngành năng lượng thế giới trong tương lai.

Máy phát điện từ nước thải

Các nhà nghiên cứu Mỹ vừa giới thiệu nguyên mẫu thiết bị mà họ cho là có khả năng sản sinh dòng điện từ nước thải.

Visual C++, CMap object save to blob column

I have a MFC CMap object, each object stores 160K~ entries of long data. I need to store it on Oracle SQL. We decided to save it as a blob. Since we do not want to make additional table, we also thought about saving it as local file, with the SQL column pointing to that file. We would prefer to just keep it as blob on the server and clear the table every couple of weeks.

Database Facade to wrap our existing queries?

We have a very big application written in C++ using the MFC framework (millions of code lines). No need to say that it’s a legacy system, but it’s also heavily maintained and updated. This application lacks a lot of architecture. For example, we have a lot of classes that do queries directly to the database, which creates a lot of difficulty for unit testing.

MFC CDialog::Domodal returns -1 with exact error 1814

I’m trying to create a UI(dialog) in an existing dll using MFC where an application is supposed to call the method which should create this dialog(this can be any application. the dialog is specific to the dll, but the method is generic across multiple dlls). I’m using DoModal method here with a CDialog inherited class and the return value of the DoModal is -1 with result of getexacterror code 1814 which is ERROR_RESOURCE_NAME_NOT_FOUND according to the microsoft documentation. Has anyone faced similar situation and guide me through it. I’ve literally tried copying from a sample app and it still wouldn’t work.

MFC CDialog::Domodal returns -1 with exact error 1814

I’m trying to create a UI(dialog) in an existing dll using MFC where an application is supposed to call the method which should create this dialog(this can be any application. the dialog is specific to the dll, but the method is generic across multiple dlls). I’m using DoModal method here with a CDialog inherited class and the return value of the DoModal is -1 with result of getexacterror code 1814 which is ERROR_RESOURCE_NAME_NOT_FOUND according to the microsoft documentation. Has anyone faced similar situation and guide me through it. I’ve literally tried copying from a sample app and it still wouldn’t work.

Can’t get fopen_s to work in new VS MFC project

I am trying to use some code that works fine in an earlier VS MFC project, but I can not get fopen_s to work in a new VS MFC project. It refuses to open files. I can get a CFile operation to open files but I need fgetc function and don’t know how to achieve it with CFile. Solution?