| |

VerySource

 Forgot password?
 Register
Search
View: 547|Reply: 4

Dll and dll.exe issues.

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-5 17:00:01
| Show all posts |Read mode
I dynamically load a DLL for fingerprint verification.
int IFV_Verify (unsigned char * pFeatureS, unsigned int nSizeOfS,
unsigned char * pFeatureT, unsigned int nSizeOfT, int nLevel);
There is no problem in loading and using in DLL, but it cannot be verified successfully in DLL.exe.
I don't know why, DLL and DLL.exe have something to say thank you.
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-26 15:15:01
| Show all posts
ATL I chose not DLL but EXE
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-27 17:00:01
| Show all posts
If you are doing a COM server in an EXE, you can debug it. You can set breakpoints for tracking.
But I suggest that you still don't use ATL and implement IUnknown interface directly in C ++! [This is what someone suggested to me]
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-28 08:15:02
| Show all posts
Is that a change in the parameters passed in when the DLL is called in the EXE.
Why is it no problem to call in ATL DLL.
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-29 00:15:01
| Show all posts
It stands to reason that your problem should not arise now.
Errors that appear in COM are often hard to say. The COM component in DLL form is changed to a component in EXE only to modify the export function and component registration of DLL accordingly. It should not affect the code related to your business.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list